canvas-editor-engine 1.0.56 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/dist/web-component.js +6 -5
- package/package.json +1 -1
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");
|
package/dist/web-component.js
CHANGED
@@ -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
|
-
|
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 } =
|
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
|
-
|
97
|
-
|
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: {
|