barmalei / zebkit

JavaScript library that follows easy OOP concept, provides HTML5 Canvas based Rich UI and includes Java to JavaScript converter tool
Apache License 2.0
931 stars 177 forks source link

When We create Object of new ui.zCanvas(element,width,height) except chrome other browser throw type undefine or null error. #182

Open mj21794 opened 4 years ago

mj21794 commented 4 years ago

$(3) pkg.HtmlElement<@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:899:121 a@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:46:49 $super@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:64:439 pkg.HtmlCanvas<@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:920:332 a@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:46:49 $super@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:64:439 pkg.zCanvas<@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:937:55 a@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:46:49 Class</classTemplate<@https://localhost:8443/DeepInsightWeb/api/other/zebkit/zebkit.min.js:71:138 executeFilter@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filterRenderer.js?v=v6.33:1897:31 init@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filterRenderer.js?v=v6.33:1873:30 renderer.addDiscreteFilter@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filterRenderer.js?v=v6.33:1866:13 renderer.initFilter@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filterRenderer.js?v=v6.33:109:26 filter.initFilter@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filter.js?v=v6.33:1064:27 filter.addFilterLegend@https://localhost:8443/DeepInsightWeb/js/chart/view/sheet/worksheet/filter.js?v=v6.33:653:16 FilterUI/filterUI.addFilter@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/worksheet/MDLFilter.js?v=v6.33:49:40 addFieldAt@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/worksheet/MDLFilter.js?v=v6.33:1536:15 MDLWorkSheet/worksheetModal.addFieldInternal@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/worksheet/MDLWorkSheet.js?v=v6.33:2405:65 MDLWorkSheet/worksheetModal.addFieldToModel@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/worksheet/MDLWorkSheet.js?v=v6.33:2273:48 fireModelUpdateInternal@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/MDLSheet.js?v=v6.33:234:58 fireModelUpdate@https://localhost:8443/DeepInsightWeb/js/chart/model/sheet/MDLSheet.js?v=v6.33:210:28 dropListener@https://localhost:8443/DeepInsightWeb/js/chart/eventing/dnd/drop/FieldDrop.js?v=v6.33:33:23 fire@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:70:30 fire@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:517:25 fireDropEvents@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:1842:24 [8]</<@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:1628:27 fire@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:5768:29 end@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:1072:25 pointerUp@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:1038:22 doOnInteractions/<@https://localhost:8443/DeepInsightWeb/api/other/interact/dist/interact.js:1233:38 zebkit.min.js:46:119

barmalei commented 4 years ago

Could you switch to zebkit.js (instead of zebkit.min.js) and re-run your app ? It helps to see better defined stack trace.

mj21794 commented 4 years ago

hello sir, I got below stack trace, but I didn't get the solution. and this problem occurs in the Firefox browser and IE Browser.

TypeError: zebkit.web.KeyEventUnifier is not a constructor zebkit.js:43349:17 $initListeners zebkit.js:43349 HtmlElement zebkit.js:41118 a zebkit.js:1969 $super zebkit.js:2833 HtmlCanvas zebkit.js:42000 a zebkit.js:1969 $super zebkit.js:2833 zCanvas zebkit.js:42766 a zebkit.js:1969 classTemplate zebkit.js:3035 executeFilter filterRenderer.js:1897 init filterRenderer.js:1873 addDiscreteFilter filterRenderer.js:1866 initFilter filterRenderer.js:109 initFilter filter.js:1064 addFilterLegend filter.js:653 addFilter MDLFilter.js:49 addFieldAt MDLFilter.js:1536 addFieldInternal MDLWorkSheet.js:2405 addFieldToModel MDLWorkSheet.js:2273 fireModelUpdateInternal MDLSheet.js:234 fireModelUpdate MDLSheet.js:210 dropListener FieldDrop.js:33 fire Eventable.js:29 fire Interactable.js:197 fireDropEvents drop.js:265 [8]</< drop.js:65 fire Signals.js:33 end Interaction.js:286 pointerUp Interaction.js:254 doOnInteractions Interaction.js:427

zebkitProblem