canvas-editor-engine 1.0.55 → 1.0.57

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ const excretions_component_1 = require("./components/excretions.component");
12
12
  exports.ExcretionComponent = excretions_component_1.default;
13
13
  const slot_component_1 = require("./components/slot.component");
14
14
  exports.SlotComponent = slot_component_1.default;
15
+ // import LoadingComponent from "./components/loading.component";
15
16
  const draw_service_1 = require("./services/draw.service");
16
17
  exports.DrawService = draw_service_1.default;
17
18
  const tool_service_1 = require("./services/tool.service");
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebComponentWrapper = void 0;
4
4
  const canvas_component_1 = require("./components/canvas.component");
5
5
  const excretions_component_1 = require("./components/excretions.component");
6
- const loading_component_1 = require("./components/loading.component");
6
+ // import LoadingComponent from "./components/loading.component";
7
7
  const pipette_component_1 = require("./components/pipette.component");
8
8
  const slot_component_1 = require("./components/slot.component");
9
+ const event_service_1 = require("./services/event.service");
9
10
  class WebComponentWrapper {
10
11
  baseElement;
11
12
  editorWrapElement;
@@ -89,12 +90,12 @@ class WebComponent extends HTMLElement {
89
90
  webComponentWrapper.toolsWrap.add(slotTemplate, slotStyle);
90
91
  const { excretionsTemplate, excretionsStyle } = excretions_component_1.default.getComponent();
91
92
  webComponentWrapper.editorWrap.add(excretionsTemplate, excretionsStyle);
92
- const { loadingTemplate, loadingStyle } = loading_component_1.default.getComponent();
93
- webComponentWrapper.editorWrap.add(loadingTemplate, loadingStyle);
93
+ // const { loadingTemplate, loadingStyle } = LoadingComponent.getComponent();
94
+ // webComponentWrapper.editorWrap.add(loadingTemplate, loadingStyle);
94
95
  shadowRoot.appendChild(webComponentWrapper.baseElement);
95
96
  canvas_component_1.default.simulateSubscriptions();
96
- // const eventService = new EventService(webComponentWrapper.baseElement);
97
- // eventService.applyEvents();
97
+ const eventService = new event_service_1.default(webComponentWrapper.baseElement);
98
+ eventService.applyEvents();
98
99
  this.addEventListener('initial', () => {
99
100
  this.dispatchEvent(new CustomEvent('get-editor-element', {
100
101
  detail: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",