canvas-editor-engine 2.1.4 → 2.1.6

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.d.ts CHANGED
@@ -17,18 +17,16 @@ import ProjectsService from "./services/projects.service";
17
17
  import PullProjectService from "./services/pull-project.service";
18
18
  import AppStore from "./store/store";
19
19
  declare class CanvasEditorEngine {
20
- private appConfig;
21
- constructor(appConfig: AppConfig);
20
+ constructor();
22
21
  getInitial(): {
23
- tag: string;
24
22
  component: typeof WebComponent;
25
23
  };
26
24
  }
27
25
  declare class StaticCanvasEditorEngine extends CanvasEditorEngine {
28
- constructor(appConfig: AppConfig);
26
+ constructor();
29
27
  init(): void;
30
28
  }
31
29
  declare class VueCanvasEditorEngine extends CanvasEditorEngine {
32
- constructor(appConfig: AppConfig);
30
+ constructor();
33
31
  }
34
32
  export { AppConfig, PipetteComponent, CanvasComponent, ExcretionComponent, SlotComponent, LoadingComponent, ToolService, DrawService, LoggerService, CropService, DownloadService, ToolLayerService, EventService, ThroughHistoryService, ProjectsService, PullProjectService, StaticCanvasEditorEngine, VueCanvasEditorEngine, AppStore, };
package/dist/index.mjs CHANGED
@@ -2202,12 +2202,9 @@ var PullProjectService = function() {
2202
2202
  reflect();
2203
2203
 
2204
2204
  var CanvasEditorEngine = function() {
2205
- function CanvasEditorEngine(appConfig) {
2206
- this.appConfig = appConfig;
2207
- }
2205
+ function CanvasEditorEngine() {}
2208
2206
  CanvasEditorEngine.prototype.getInitial = function() {
2209
2207
  return {
2210
- tag: this.appConfig.WEB_COMPONENT_TAG_NAME,
2211
2208
  component: WebComponent
2212
2209
  };
2213
2210
  };
@@ -2216,21 +2213,21 @@ var CanvasEditorEngine = function() {
2216
2213
 
2217
2214
  var StaticCanvasEditorEngine = function(_super) {
2218
2215
  __extends(StaticCanvasEditorEngine, _super);
2219
- function StaticCanvasEditorEngine(appConfig) {
2220
- return _super.call(this, appConfig) || this;
2216
+ function StaticCanvasEditorEngine() {
2217
+ return _super.call(this) || this;
2221
2218
  }
2222
2219
  StaticCanvasEditorEngine.prototype.init = function() {
2223
2220
  var customElementRegistry = window.customElements;
2224
- var _a = this.getInitial(), tag = _a.tag, component = _a.component;
2225
- customElementRegistry.define(tag, component);
2221
+ var component = this.getInitial().component;
2222
+ customElementRegistry.define("canvas-editor-engine", component);
2226
2223
  };
2227
2224
  return StaticCanvasEditorEngine;
2228
2225
  }(CanvasEditorEngine);
2229
2226
 
2230
2227
  var VueCanvasEditorEngine = function(_super) {
2231
2228
  __extends(VueCanvasEditorEngine, _super);
2232
- function VueCanvasEditorEngine(appConfig) {
2233
- return _super.call(this, appConfig) || this;
2229
+ function VueCanvasEditorEngine() {
2230
+ return _super.call(this) || this;
2234
2231
  }
2235
2232
  return VueCanvasEditorEngine;
2236
2233
  }(CanvasEditorEngine);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",