@pooder/kit 5.3.1 → 5.4.0
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +243 -36
- package/dist/index.d.ts +243 -36
- package/dist/index.js +2278 -1041
- package/dist/index.mjs +2278 -1041
- package/package.json +1 -1
- package/src/coordinate.ts +106 -106
- package/src/extensions/background.ts +323 -230
- package/src/extensions/bridgeSelection.ts +17 -17
- package/src/extensions/constraints.ts +322 -322
- package/src/extensions/dieline.ts +1149 -1076
- package/src/extensions/dielineShape.ts +109 -0
- package/src/extensions/edgeScale.ts +19 -19
- package/src/extensions/feature.ts +1137 -1021
- package/src/extensions/featureComplete.ts +46 -46
- package/src/extensions/film.ts +266 -194
- package/src/extensions/geometry.ts +885 -752
- package/src/extensions/image.ts +2054 -1926
- package/src/extensions/index.ts +11 -11
- package/src/extensions/maskOps.ts +283 -283
- package/src/extensions/mirror.ts +128 -128
- package/src/extensions/ruler.ts +654 -451
- package/src/extensions/sceneLayout.ts +140 -140
- package/src/extensions/sceneLayoutModel.ts +364 -352
- package/src/extensions/sceneVisibility.ts +64 -71
- package/src/extensions/size.ts +389 -389
- package/src/extensions/tracer.ts +1019 -1019
- package/src/extensions/white-ink.ts +1567 -1514
- package/src/extensions/wrappedOffsets.ts +33 -33
- package/src/index.ts +2 -2
- package/src/services/CanvasService.ts +832 -300
- package/src/services/ViewportSystem.ts +95 -95
- package/src/services/index.ts +3 -3
- package/src/services/renderSpec.ts +53 -18
- package/src/units.ts +27 -27
- package/tests/run.ts +118 -118
- package/tsconfig.test.json +15 -15
- package/.test-dist/src/CanvasService.js +0 -249
- package/.test-dist/src/ViewportSystem.js +0 -75
- package/.test-dist/src/background.js +0 -203
- package/.test-dist/src/bridgeSelection.js +0 -20
- package/.test-dist/src/constraints.js +0 -237
- package/.test-dist/src/coordinate.js +0 -74
- package/.test-dist/src/dieline.js +0 -818
- package/.test-dist/src/edgeScale.js +0 -12
- package/.test-dist/src/extensions/background.js +0 -203
- package/.test-dist/src/extensions/bridgeSelection.js +0 -20
- package/.test-dist/src/extensions/constraints.js +0 -237
- package/.test-dist/src/extensions/dieline.js +0 -828
- package/.test-dist/src/extensions/edgeScale.js +0 -12
- package/.test-dist/src/extensions/feature.js +0 -825
- package/.test-dist/src/extensions/featureComplete.js +0 -32
- package/.test-dist/src/extensions/film.js +0 -167
- package/.test-dist/src/extensions/geometry.js +0 -545
- package/.test-dist/src/extensions/image.js +0 -1529
- package/.test-dist/src/extensions/index.js +0 -30
- package/.test-dist/src/extensions/maskOps.js +0 -279
- package/.test-dist/src/extensions/mirror.js +0 -104
- package/.test-dist/src/extensions/ruler.js +0 -345
- package/.test-dist/src/extensions/sceneLayout.js +0 -96
- package/.test-dist/src/extensions/sceneLayoutModel.js +0 -196
- package/.test-dist/src/extensions/sceneVisibility.js +0 -62
- package/.test-dist/src/extensions/size.js +0 -331
- package/.test-dist/src/extensions/tracer.js +0 -538
- package/.test-dist/src/extensions/white-ink.js +0 -1190
- package/.test-dist/src/extensions/wrappedOffsets.js +0 -33
- package/.test-dist/src/feature.js +0 -826
- package/.test-dist/src/featureComplete.js +0 -32
- package/.test-dist/src/film.js +0 -167
- package/.test-dist/src/geometry.js +0 -506
- package/.test-dist/src/image.js +0 -1250
- package/.test-dist/src/index.js +0 -18
- package/.test-dist/src/maskOps.js +0 -270
- package/.test-dist/src/mirror.js +0 -104
- package/.test-dist/src/renderSpec.js +0 -2
- package/.test-dist/src/ruler.js +0 -343
- package/.test-dist/src/sceneLayout.js +0 -99
- package/.test-dist/src/sceneLayoutModel.js +0 -196
- package/.test-dist/src/sceneView.js +0 -40
- package/.test-dist/src/sceneVisibility.js +0 -42
- package/.test-dist/src/services/CanvasService.js +0 -249
- package/.test-dist/src/services/ViewportSystem.js +0 -76
- package/.test-dist/src/services/index.js +0 -24
- package/.test-dist/src/services/renderSpec.js +0 -2
- package/.test-dist/src/size.js +0 -332
- package/.test-dist/src/tracer.js +0 -544
- package/.test-dist/src/units.js +0 -30
- package/.test-dist/src/white-ink.js +0 -829
- package/.test-dist/src/wrappedOffsets.js +0 -33
- package/.test-dist/tests/run.js +0 -94
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SceneVisibilityService = void 0;
|
|
4
|
-
class SceneVisibilityService {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.id = "pooder.kit.sceneVisibility";
|
|
7
|
-
this.metadata = {
|
|
8
|
-
name: "SceneVisibilityService",
|
|
9
|
-
};
|
|
10
|
-
this.activeToolId = null;
|
|
11
|
-
this.onToolActivated = (e) => {
|
|
12
|
-
this.activeToolId = e.id;
|
|
13
|
-
this.apply();
|
|
14
|
-
};
|
|
15
|
-
this.onObjectAdded = () => {
|
|
16
|
-
this.apply();
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
activate(context) {
|
|
20
|
-
this.canvasService = context.services.get("CanvasService");
|
|
21
|
-
context.eventBus.on("tool:activated", this.onToolActivated);
|
|
22
|
-
context.eventBus.on("object:added", this.onObjectAdded);
|
|
23
|
-
}
|
|
24
|
-
deactivate(context) {
|
|
25
|
-
context.eventBus.off("tool:activated", this.onToolActivated);
|
|
26
|
-
context.eventBus.off("object:added", this.onObjectAdded);
|
|
27
|
-
this.activeToolId = null;
|
|
28
|
-
this.canvasService = undefined;
|
|
29
|
-
}
|
|
30
|
-
apply() {
|
|
31
|
-
if (!this.canvasService)
|
|
32
|
-
return;
|
|
33
|
-
const dielineLayer = this.canvasService.getLayer("dieline-overlay");
|
|
34
|
-
if (dielineLayer) {
|
|
35
|
-
const visible = this.activeToolId !== "pooder.kit.image" &&
|
|
36
|
-
this.activeToolId !== "pooder.kit.white-ink";
|
|
37
|
-
dielineLayer.set({ visible });
|
|
38
|
-
}
|
|
39
|
-
this.canvasService.requestRenderAll();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.SceneVisibilityService = SceneVisibilityService;
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const fabric_1 = require("fabric");
|
|
4
|
-
const ViewportSystem_1 = require("./ViewportSystem");
|
|
5
|
-
class CanvasService {
|
|
6
|
-
constructor(el, options) {
|
|
7
|
-
if (el instanceof fabric_1.Canvas) {
|
|
8
|
-
this.canvas = el;
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
this.canvas = new fabric_1.Canvas(el, {
|
|
12
|
-
preserveObjectStacking: true,
|
|
13
|
-
...options,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
this.viewport = new ViewportSystem_1.ViewportSystem();
|
|
17
|
-
if (this.canvas.width !== undefined && this.canvas.height !== undefined) {
|
|
18
|
-
this.viewport.updateContainer(this.canvas.width, this.canvas.height);
|
|
19
|
-
}
|
|
20
|
-
if (options?.eventBus) {
|
|
21
|
-
this.setEventBus(options.eventBus);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
setEventBus(eventBus) {
|
|
25
|
-
this.eventBus = eventBus;
|
|
26
|
-
this.setupEvents();
|
|
27
|
-
}
|
|
28
|
-
setupEvents() {
|
|
29
|
-
if (!this.eventBus)
|
|
30
|
-
return;
|
|
31
|
-
const bus = this.eventBus;
|
|
32
|
-
const forward = (name) => (e) => bus.emit(name, e);
|
|
33
|
-
this.canvas.on("selection:created", forward("selection:created"));
|
|
34
|
-
this.canvas.on("selection:updated", forward("selection:updated"));
|
|
35
|
-
this.canvas.on("selection:cleared", forward("selection:cleared"));
|
|
36
|
-
this.canvas.on("object:modified", forward("object:modified"));
|
|
37
|
-
this.canvas.on("object:added", forward("object:added"));
|
|
38
|
-
this.canvas.on("object:removed", forward("object:removed"));
|
|
39
|
-
}
|
|
40
|
-
dispose() {
|
|
41
|
-
this.canvas.dispose();
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get a layer (Group) by its ID.
|
|
45
|
-
* We assume layers are Groups directly on the canvas with a data.id property.
|
|
46
|
-
*/
|
|
47
|
-
getLayer(id) {
|
|
48
|
-
return this.canvas.getObjects().find((obj) => obj.data?.id === id);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Create a layer (Group) with the given ID if it doesn't exist.
|
|
52
|
-
*/
|
|
53
|
-
createLayer(id, options = {}) {
|
|
54
|
-
let layer = this.getLayer(id);
|
|
55
|
-
if (!layer) {
|
|
56
|
-
const defaultOptions = {
|
|
57
|
-
selectable: false,
|
|
58
|
-
evented: false,
|
|
59
|
-
...options,
|
|
60
|
-
data: { ...options.data, id },
|
|
61
|
-
};
|
|
62
|
-
layer = new fabric_1.Group([], defaultOptions);
|
|
63
|
-
this.canvas.add(layer);
|
|
64
|
-
}
|
|
65
|
-
return layer;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Find an object by ID, optionally within a specific layer.
|
|
69
|
-
*/
|
|
70
|
-
getObject(id, layerId) {
|
|
71
|
-
if (layerId) {
|
|
72
|
-
const layer = this.getLayer(layerId);
|
|
73
|
-
if (!layer)
|
|
74
|
-
return undefined;
|
|
75
|
-
return layer.getObjects().find((obj) => obj.data?.id === id);
|
|
76
|
-
}
|
|
77
|
-
return this.canvas.getObjects().find((obj) => obj.data?.id === id);
|
|
78
|
-
}
|
|
79
|
-
requestRenderAll() {
|
|
80
|
-
this.canvas.requestRenderAll();
|
|
81
|
-
}
|
|
82
|
-
resize(width, height) {
|
|
83
|
-
this.canvas.setDimensions({ width, height });
|
|
84
|
-
this.viewport.updateContainer(width, height);
|
|
85
|
-
this.eventBus?.emit("canvas:resized", { width, height });
|
|
86
|
-
this.requestRenderAll();
|
|
87
|
-
}
|
|
88
|
-
async applyLayerSpec(spec) {
|
|
89
|
-
const layer = this.createLayer(spec.id, spec.props || {});
|
|
90
|
-
await this.applyObjectSpecsToContainer(layer, spec.objects);
|
|
91
|
-
}
|
|
92
|
-
async applyObjectSpecsToLayer(layerId, objects) {
|
|
93
|
-
const layer = this.createLayer(layerId, {});
|
|
94
|
-
await this.applyObjectSpecsToContainer(layer, objects);
|
|
95
|
-
}
|
|
96
|
-
getRootLayerObjects(layerId) {
|
|
97
|
-
return this.canvas
|
|
98
|
-
.getObjects()
|
|
99
|
-
.filter((obj) => obj?.data?.layerId === layerId);
|
|
100
|
-
}
|
|
101
|
-
async applyObjectSpecsToRootLayer(layerId, specs) {
|
|
102
|
-
const desiredIds = new Set(specs.map((s) => s.id));
|
|
103
|
-
const existing = this.getRootLayerObjects(layerId);
|
|
104
|
-
existing.forEach((obj) => {
|
|
105
|
-
const id = obj?.data?.id;
|
|
106
|
-
if (typeof id === "string" && !desiredIds.has(id)) {
|
|
107
|
-
this.canvas.remove(obj);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
const byId = new Map();
|
|
111
|
-
this.getRootLayerObjects(layerId).forEach((obj) => {
|
|
112
|
-
const id = obj?.data?.id;
|
|
113
|
-
if (typeof id === "string")
|
|
114
|
-
byId.set(id, obj);
|
|
115
|
-
});
|
|
116
|
-
for (let index = 0; index < specs.length; index += 1) {
|
|
117
|
-
const spec = specs[index];
|
|
118
|
-
let current = byId.get(spec.id);
|
|
119
|
-
if (current &&
|
|
120
|
-
spec.type === "image" &&
|
|
121
|
-
spec.src &&
|
|
122
|
-
current.getSrc &&
|
|
123
|
-
current.getSrc() !== spec.src) {
|
|
124
|
-
this.canvas.remove(current);
|
|
125
|
-
byId.delete(spec.id);
|
|
126
|
-
current = undefined;
|
|
127
|
-
}
|
|
128
|
-
if (!current) {
|
|
129
|
-
const created = await this.createFabricObject(spec);
|
|
130
|
-
if (!created)
|
|
131
|
-
continue;
|
|
132
|
-
this.patchFabricObject(created, spec, { layerId });
|
|
133
|
-
this.canvas.add(created);
|
|
134
|
-
byId.set(spec.id, created);
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
this.patchFabricObject(current, spec, { layerId });
|
|
138
|
-
}
|
|
139
|
-
this.requestRenderAll();
|
|
140
|
-
}
|
|
141
|
-
async applyObjectSpecsToContainer(container, specs) {
|
|
142
|
-
const desiredIds = new Set(specs.map((s) => s.id));
|
|
143
|
-
const existing = container.getObjects();
|
|
144
|
-
existing.forEach((obj) => {
|
|
145
|
-
const id = obj?.data?.id;
|
|
146
|
-
if (typeof id === "string" && !desiredIds.has(id)) {
|
|
147
|
-
container.remove(obj);
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
const byId = new Map();
|
|
151
|
-
container.getObjects().forEach((obj) => {
|
|
152
|
-
const id = obj?.data?.id;
|
|
153
|
-
if (typeof id === "string")
|
|
154
|
-
byId.set(id, obj);
|
|
155
|
-
});
|
|
156
|
-
for (let index = 0; index < specs.length; index += 1) {
|
|
157
|
-
const spec = specs[index];
|
|
158
|
-
let current = byId.get(spec.id);
|
|
159
|
-
if (current &&
|
|
160
|
-
spec.type === "image" &&
|
|
161
|
-
spec.src &&
|
|
162
|
-
current.getSrc &&
|
|
163
|
-
current.getSrc() !== spec.src) {
|
|
164
|
-
container.remove(current);
|
|
165
|
-
byId.delete(spec.id);
|
|
166
|
-
current = undefined;
|
|
167
|
-
}
|
|
168
|
-
if (!current) {
|
|
169
|
-
const created = await this.createFabricObject(spec);
|
|
170
|
-
if (!created)
|
|
171
|
-
continue;
|
|
172
|
-
container.add(created);
|
|
173
|
-
current = created;
|
|
174
|
-
byId.set(spec.id, current);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
this.patchFabricObject(current, spec);
|
|
178
|
-
}
|
|
179
|
-
this.moveObjectInContainer(container, current, index);
|
|
180
|
-
}
|
|
181
|
-
container.dirty = true;
|
|
182
|
-
this.requestRenderAll();
|
|
183
|
-
}
|
|
184
|
-
patchFabricObject(obj, spec, extraData) {
|
|
185
|
-
const nextData = {
|
|
186
|
-
...(obj.data || {}),
|
|
187
|
-
...(spec.data || {}),
|
|
188
|
-
...(extraData || {}),
|
|
189
|
-
id: spec.id,
|
|
190
|
-
};
|
|
191
|
-
obj.set({ ...(spec.props || {}), data: nextData });
|
|
192
|
-
obj.setCoords();
|
|
193
|
-
}
|
|
194
|
-
moveObjectInContainer(container, obj, index) {
|
|
195
|
-
if (!obj)
|
|
196
|
-
return;
|
|
197
|
-
const moveObjectTo = container.moveObjectTo;
|
|
198
|
-
if (typeof moveObjectTo === "function") {
|
|
199
|
-
moveObjectTo.call(container, obj, index);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
const list = container._objects;
|
|
203
|
-
if (!Array.isArray(list))
|
|
204
|
-
return;
|
|
205
|
-
const from = list.indexOf(obj);
|
|
206
|
-
if (from < 0 || from === index)
|
|
207
|
-
return;
|
|
208
|
-
list.splice(from, 1);
|
|
209
|
-
const target = Math.max(0, Math.min(index, list.length));
|
|
210
|
-
list.splice(target, 0, obj);
|
|
211
|
-
if (typeof container._onStackOrderChanged === "function") {
|
|
212
|
-
container._onStackOrderChanged();
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
async createFabricObject(spec) {
|
|
216
|
-
if (spec.type === "rect") {
|
|
217
|
-
const rect = new fabric_1.Rect({
|
|
218
|
-
...(spec.props || {}),
|
|
219
|
-
data: { ...(spec.data || {}), id: spec.id },
|
|
220
|
-
});
|
|
221
|
-
rect.setCoords();
|
|
222
|
-
return rect;
|
|
223
|
-
}
|
|
224
|
-
if (spec.type === "path") {
|
|
225
|
-
const pathData = spec.props?.path || spec.props?.pathData;
|
|
226
|
-
if (!pathData)
|
|
227
|
-
return undefined;
|
|
228
|
-
const path = new fabric_1.Path(pathData, {
|
|
229
|
-
...(spec.props || {}),
|
|
230
|
-
data: { ...(spec.data || {}), id: spec.id },
|
|
231
|
-
});
|
|
232
|
-
path.setCoords();
|
|
233
|
-
return path;
|
|
234
|
-
}
|
|
235
|
-
if (spec.type === "image") {
|
|
236
|
-
if (!spec.src)
|
|
237
|
-
return undefined;
|
|
238
|
-
const image = await fabric_1.Image.fromURL(spec.src, { crossOrigin: "anonymous" });
|
|
239
|
-
image.set({
|
|
240
|
-
...(spec.props || {}),
|
|
241
|
-
data: { ...(spec.data || {}), id: spec.id },
|
|
242
|
-
});
|
|
243
|
-
image.setCoords();
|
|
244
|
-
return image;
|
|
245
|
-
}
|
|
246
|
-
return undefined;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
exports.default = CanvasService;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViewportSystem = void 0;
|
|
4
|
-
const coordinate_1 = require("../coordinate");
|
|
5
|
-
class ViewportSystem {
|
|
6
|
-
constructor(containerSize = { width: 0, height: 0 }, physicalSize = { width: 0, height: 0 }, padding = 40) {
|
|
7
|
-
this._containerSize = { width: 0, height: 0 };
|
|
8
|
-
this._physicalSize = { width: 0, height: 0 };
|
|
9
|
-
this._padding = 0;
|
|
10
|
-
this._layout = {
|
|
11
|
-
scale: 1,
|
|
12
|
-
offsetX: 0,
|
|
13
|
-
offsetY: 0,
|
|
14
|
-
width: 0,
|
|
15
|
-
height: 0,
|
|
16
|
-
};
|
|
17
|
-
this._containerSize = containerSize;
|
|
18
|
-
this._physicalSize = physicalSize;
|
|
19
|
-
this._padding = padding;
|
|
20
|
-
this.updateLayout();
|
|
21
|
-
}
|
|
22
|
-
get layout() {
|
|
23
|
-
return this._layout;
|
|
24
|
-
}
|
|
25
|
-
get scale() {
|
|
26
|
-
return this._layout.scale;
|
|
27
|
-
}
|
|
28
|
-
get offset() {
|
|
29
|
-
return { x: this._layout.offsetX, y: this._layout.offsetY };
|
|
30
|
-
}
|
|
31
|
-
updateContainer(width, height) {
|
|
32
|
-
if (this._containerSize.width === width &&
|
|
33
|
-
this._containerSize.height === height)
|
|
34
|
-
return;
|
|
35
|
-
this._containerSize = { width, height };
|
|
36
|
-
this.updateLayout();
|
|
37
|
-
}
|
|
38
|
-
updatePhysical(width, height) {
|
|
39
|
-
if (this._physicalSize.width === width &&
|
|
40
|
-
this._physicalSize.height === height)
|
|
41
|
-
return;
|
|
42
|
-
this._physicalSize = { width, height };
|
|
43
|
-
this.updateLayout();
|
|
44
|
-
}
|
|
45
|
-
setPadding(padding) {
|
|
46
|
-
if (this._padding === padding)
|
|
47
|
-
return;
|
|
48
|
-
this._padding = padding;
|
|
49
|
-
this.updateLayout();
|
|
50
|
-
}
|
|
51
|
-
updateLayout() {
|
|
52
|
-
this._layout = coordinate_1.Coordinate.calculateLayout(this._containerSize, this._physicalSize, this._padding);
|
|
53
|
-
}
|
|
54
|
-
toPixel(value) {
|
|
55
|
-
return value * this._layout.scale;
|
|
56
|
-
}
|
|
57
|
-
toPhysical(value) {
|
|
58
|
-
return this._layout.scale === 0 ? 0 : value / this._layout.scale;
|
|
59
|
-
}
|
|
60
|
-
toPixelPoint(point) {
|
|
61
|
-
return {
|
|
62
|
-
x: point.x * this._layout.scale + this._layout.offsetX,
|
|
63
|
-
y: point.y * this._layout.scale + this._layout.offsetY,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
// Convert screen coordinate (e.g. mouse event) to physical coordinate (relative to content origin)
|
|
67
|
-
toPhysicalPoint(point) {
|
|
68
|
-
if (this._layout.scale === 0)
|
|
69
|
-
return { x: 0, y: 0 };
|
|
70
|
-
return {
|
|
71
|
-
x: (point.x - this._layout.offsetX) / this._layout.scale,
|
|
72
|
-
y: (point.y - this._layout.offsetY) / this._layout.scale,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
exports.ViewportSystem = ViewportSystem;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.CanvasService = void 0;
|
|
21
|
-
var CanvasService_1 = require("./CanvasService");
|
|
22
|
-
Object.defineProperty(exports, "CanvasService", { enumerable: true, get: function () { return __importDefault(CanvasService_1).default; } });
|
|
23
|
-
__exportStar(require("./renderSpec"), exports);
|
|
24
|
-
__exportStar(require("./ViewportSystem"), exports);
|