canvas-editor-engine 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/crop.component.d.ts +0 -5
- package/dist/components/crop.component.js +0 -8
- package/dist/components/crop.service.d.ts +0 -0
- package/dist/components/crop.service.js +0 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/services/crop.service.d.ts +3 -0
- package/dist/services/crop.service.js +10 -0
- package/package.json +1 -1
@@ -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,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;
|