canvas-editor-engine 1.0.3 → 1.0.4

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.
@@ -1,5 +0,0 @@
1
- import ComponentService from "../services/component.service";
2
- export default class CropComponent extends ComponentService {
3
- private static template;
4
- private static css;
5
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const component_service_1 = require("../services/component.service");
4
- class CropComponent extends component_service_1.default {
5
- }
6
- CropComponent.template = '';
7
- CropComponent.css = '';
8
- exports.default = CropComponent;
File without changes
File without changes
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import SlotComponent from "./components/slot.component";
7
7
  import DrawService from "./services/draw.service";
8
8
  import ToolService from "./services/tool.service";
9
9
  import LoggerService from "./services/logger.service";
10
+ import CropService from "./services/crop.service";
10
11
  declare class CanvasEditorEngine {
11
12
  constructor(webComponentTagName?: string);
12
13
  getInitial(): {
@@ -23,4 +24,4 @@ declare class VueCanvasEditorEngine extends CanvasEditorEngine {
23
24
  getContext2D(): CanvasRenderingContext2D;
24
25
  getCanvas(): HTMLCanvasElement;
25
26
  }
26
- export { AppConfig, PipetteComponent, CanvasComponent, ExcretionComponent, SlotComponent, ToolService, DrawService, LoggerService, StaticCanvasEditorEngine, VueCanvasEditorEngine, };
27
+ export { AppConfig, PipetteComponent, CanvasComponent, ExcretionComponent, SlotComponent, ToolService, DrawService, LoggerService, CropService, StaticCanvasEditorEngine, VueCanvasEditorEngine, };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VueCanvasEditorEngine = exports.StaticCanvasEditorEngine = exports.LoggerService = exports.DrawService = exports.ToolService = exports.SlotComponent = exports.ExcretionComponent = exports.CanvasComponent = exports.PipetteComponent = exports.AppConfig = void 0;
3
+ exports.VueCanvasEditorEngine = exports.StaticCanvasEditorEngine = exports.CropService = exports.LoggerService = exports.DrawService = exports.ToolService = exports.SlotComponent = exports.ExcretionComponent = exports.CanvasComponent = exports.PipetteComponent = exports.AppConfig = void 0;
4
4
  const config_1 = require("./config");
5
5
  exports.AppConfig = config_1.default;
6
6
  const web_component_1 = require("./web-component");
@@ -18,6 +18,8 @@ const tool_service_1 = require("./services/tool.service");
18
18
  exports.ToolService = tool_service_1.default;
19
19
  const logger_service_1 = require("./services/logger.service");
20
20
  exports.LoggerService = logger_service_1.default;
21
+ const crop_service_1 = require("./services/crop.service");
22
+ exports.CropService = crop_service_1.default;
21
23
  class CanvasEditorEngine {
22
24
  constructor(webComponentTagName) {
23
25
  config_1.default.WEB_COMPONENT_TAG_NAME = webComponentTagName;
@@ -0,0 +1,3 @@
1
+ export default class CropService {
2
+ static crop(): void;
3
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const excretions_component_1 = require("../components/excretions.component");
4
+ class CropService {
5
+ static crop() {
6
+ excretions_component_1.default.style = 'crop';
7
+ console.log('ExcretionComponent.excretionsCoords', excretions_component_1.default.excretionsCoords);
8
+ }
9
+ }
10
+ exports.default = CropService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",