modern-canvas 0.4.52 → 0.4.54
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.cjs +435 -470
- package/dist/index.d.cts +23 -27
- package/dist/index.d.mts +23 -27
- package/dist/index.d.ts +23 -27
- package/dist/index.js +44 -43
- package/dist/index.mjs +286 -318
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const modernIdoc = require('modern-idoc');
|
|
3
4
|
const colord = require('colord');
|
|
4
5
|
const namesPlugin = require('colord/plugins/names');
|
|
5
|
-
const modernIdoc = require('modern-idoc');
|
|
6
6
|
const modernPath2d = require('modern-path2d');
|
|
7
7
|
const modernText = require('modern-text');
|
|
8
8
|
const load = require('yoga-layout/load');
|
|
@@ -11,270 +11,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
const namesPlugin__default = /*#__PURE__*/_interopDefaultCompat(namesPlugin);
|
|
13
13
|
|
|
14
|
-
const PI = Math.PI;
|
|
15
|
-
const PI_2 = PI * 2;
|
|
16
|
-
let UID$1 = 0;
|
|
17
|
-
function uid(object) {
|
|
18
|
-
return object?.__SPECTOR_Object_TAG?.id ?? ++UID$1;
|
|
19
|
-
}
|
|
20
|
-
function isPow2(v) {
|
|
21
|
-
return !(v & v - 1) && !!v;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const FUNCTIONS_RE = /([\w-]+)\((.+?)\)/g;
|
|
25
|
-
const ARGS_RE = /[^,]+/g;
|
|
26
|
-
const ARG_RE = /([-e.\d]+)(.*)/;
|
|
27
|
-
function getDefaultCssPropertyValue(value) {
|
|
28
|
-
if (Array.isArray(value)) {
|
|
29
|
-
return value.map((func) => {
|
|
30
|
-
return {
|
|
31
|
-
name: func.name,
|
|
32
|
-
args: func.args.map((arg) => {
|
|
33
|
-
return {
|
|
34
|
-
...arg,
|
|
35
|
-
normalizedIntValue: arg.normalizedDefaultIntValue
|
|
36
|
-
};
|
|
37
|
-
})
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
} else {
|
|
41
|
-
return {
|
|
42
|
-
...value,
|
|
43
|
-
normalizedIntValue: value.normalizedDefaultIntValue
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function parseCssProperty(name, propertyValue, context = {}) {
|
|
48
|
-
const functions = parseCssFunctions(propertyValue, context);
|
|
49
|
-
return functions.length ? functions : parseArgument(name, propertyValue, context);
|
|
50
|
-
}
|
|
51
|
-
function parseCssFunctions(propertyValue, context = {}) {
|
|
52
|
-
const functions = [];
|
|
53
|
-
let match;
|
|
54
|
-
while ((match = FUNCTIONS_RE.exec(propertyValue)) !== null) {
|
|
55
|
-
const [, name, value] = match;
|
|
56
|
-
if (name) {
|
|
57
|
-
functions.push({
|
|
58
|
-
name,
|
|
59
|
-
args: parseArguments(name, value, context)
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return functions;
|
|
64
|
-
}
|
|
65
|
-
function parseArguments(name, value, context = {}) {
|
|
66
|
-
const values = [];
|
|
67
|
-
let match;
|
|
68
|
-
let i = 0;
|
|
69
|
-
while ((match = ARGS_RE.exec(value)) !== null) {
|
|
70
|
-
values.push(
|
|
71
|
-
parseArgument(name, match[0], {
|
|
72
|
-
...context,
|
|
73
|
-
index: i++
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
return values;
|
|
78
|
-
}
|
|
79
|
-
function parseArgument(name, value, context = {}) {
|
|
80
|
-
const { width = 1, height = 1, index = 0 } = context;
|
|
81
|
-
const matched = value.match(ARG_RE);
|
|
82
|
-
const result = {
|
|
83
|
-
unit: matched?.[2] ?? null,
|
|
84
|
-
value,
|
|
85
|
-
intValue: Number(matched?.[1]),
|
|
86
|
-
normalizedIntValue: 0,
|
|
87
|
-
normalizedDefaultIntValue: 0
|
|
88
|
-
};
|
|
89
|
-
switch (name) {
|
|
90
|
-
case "scale":
|
|
91
|
-
case "scaleX":
|
|
92
|
-
case "scaleY":
|
|
93
|
-
case "scale3d":
|
|
94
|
-
result.normalizedDefaultIntValue = 1;
|
|
95
|
-
break;
|
|
96
|
-
}
|
|
97
|
-
switch (result.unit) {
|
|
98
|
-
case "%":
|
|
99
|
-
result.normalizedIntValue = result.intValue / 100;
|
|
100
|
-
break;
|
|
101
|
-
case "rad":
|
|
102
|
-
result.normalizedIntValue = result.intValue / PI_2;
|
|
103
|
-
break;
|
|
104
|
-
case "deg":
|
|
105
|
-
result.normalizedIntValue = result.intValue / 360;
|
|
106
|
-
break;
|
|
107
|
-
case "px":
|
|
108
|
-
switch (index) {
|
|
109
|
-
case 0:
|
|
110
|
-
result.normalizedIntValue = result.intValue / width;
|
|
111
|
-
break;
|
|
112
|
-
case 1:
|
|
113
|
-
result.normalizedIntValue = result.intValue / height;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
case "turn":
|
|
118
|
-
case "em":
|
|
119
|
-
// div fontSize
|
|
120
|
-
case "rem":
|
|
121
|
-
// div fontSize
|
|
122
|
-
default:
|
|
123
|
-
result.normalizedIntValue = result.intValue;
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
return result;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const SUPPORTS_WEBGL2 = "WebGL2RenderingContext" in globalThis;
|
|
130
|
-
const SUPPORTS_IMAGE_BITMAP = "ImageBitmap" in globalThis;
|
|
131
|
-
const SUPPORTS_RESIZE_OBSERVER = "ResizeObserver" in globalThis;
|
|
132
|
-
const SUPPORTS_POINTER_EVENTS = "PointerEvent" in globalThis;
|
|
133
|
-
const SUPPORTS_WHEEL_EVENTS = "WheelEvent" in globalThis;
|
|
134
|
-
const SUPPORTS_MOUSE_EVENTS = "MouseEvent" in globalThis;
|
|
135
|
-
const SUPPORTS_TOUCH_EVENTS = "ontouchstart" in globalThis;
|
|
136
|
-
const SUPPORTS_CLICK_EVENTS = "onclick" in globalThis;
|
|
137
|
-
const SUPPORTS_CREATE_IMAGE_BITMAP = "createImageBitmap" in globalThis;
|
|
138
|
-
const SUPPORTS_AUDIO_CONTEXT = "AudioContext" in globalThis;
|
|
139
|
-
const SUPPORTS_WEBKIT_AUDIO_CONTEXT = "webkitAudioContext" in globalThis;
|
|
140
|
-
const SUPPORTS_OFFLINE_AUDIO_CONTEXT = "OfflineAudioContext" in globalThis;
|
|
141
|
-
const SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT = "webkitOfflineAudioContext" in globalThis;
|
|
142
|
-
const SUPPORTS_WEB_AUDIO = SUPPORTS_AUDIO_CONTEXT || SUPPORTS_WEBKIT_AUDIO_CONTEXT;
|
|
143
|
-
const IN_BROWSER = typeof window !== "undefined";
|
|
144
|
-
const DEVICE_PIXEL_RATIO = globalThis.devicePixelRatio || 1;
|
|
145
|
-
const isElementNode = (node) => node !== null && typeof node === "object" && node.nodeType === 1;
|
|
146
|
-
const isVideoElement = (node) => isElementNode(node) && node.tagName === "VIDEO";
|
|
147
|
-
const isImageElement = (node) => isElementNode(node) && node.tagName === "IMG";
|
|
148
|
-
function isCanvasElement(node) {
|
|
149
|
-
return typeof node === "object" && node !== null && node.nodeType === 1 && node.tagName === "CANVAS";
|
|
150
|
-
}
|
|
151
|
-
function isWebgl2(gl) {
|
|
152
|
-
return SUPPORTS_WEBGL2 && gl instanceof globalThis.WebGL2RenderingContext;
|
|
153
|
-
}
|
|
154
|
-
function createHTMLCanvas() {
|
|
155
|
-
if (IN_BROWSER) {
|
|
156
|
-
return globalThis.document.createElement("canvas");
|
|
157
|
-
}
|
|
158
|
-
return void 0;
|
|
159
|
-
}
|
|
160
|
-
function determineCrossOrigin(url, loc = globalThis.location) {
|
|
161
|
-
if (url.startsWith("data:")) {
|
|
162
|
-
return "";
|
|
163
|
-
}
|
|
164
|
-
loc = loc || globalThis.location;
|
|
165
|
-
const parsedUrl = new URL(url, document.baseURI);
|
|
166
|
-
if (parsedUrl.hostname !== loc.hostname || parsedUrl.port !== loc.port || parsedUrl.protocol !== loc.protocol) {
|
|
167
|
-
return "anonymous";
|
|
168
|
-
}
|
|
169
|
-
return "";
|
|
170
|
-
}
|
|
171
|
-
function crossOrigin(element, url, crossorigin) {
|
|
172
|
-
if (crossorigin === null && !url.startsWith("data:")) {
|
|
173
|
-
element.crossOrigin = determineCrossOrigin(url);
|
|
174
|
-
} else if (crossorigin !== false) {
|
|
175
|
-
element.crossOrigin = typeof crossorigin === "string" ? crossorigin : "anonymous";
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
class RawWeakMap {
|
|
180
|
-
_map = /* @__PURE__ */ new WeakMap();
|
|
181
|
-
// fix: vue reactive object
|
|
182
|
-
_toRaw(value) {
|
|
183
|
-
if (value && typeof value === "object") {
|
|
184
|
-
const raw = value.__v_raw;
|
|
185
|
-
if (raw) {
|
|
186
|
-
value = this._toRaw(raw);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return value;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Removes the specified element from the WeakMap.
|
|
193
|
-
* @returns true if the element was successfully removed, or false if it was not present.
|
|
194
|
-
*/
|
|
195
|
-
delete(key) {
|
|
196
|
-
return this._map.delete(this._toRaw(key));
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @returns a specified element.
|
|
200
|
-
*/
|
|
201
|
-
get(key) {
|
|
202
|
-
return this._map.get(this._toRaw(key));
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
206
|
-
*/
|
|
207
|
-
has(key) {
|
|
208
|
-
return this._map.has(this._toRaw(key));
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Adds a new element with a specified key and value.
|
|
212
|
-
* @param key Must be an object or symbol.
|
|
213
|
-
*/
|
|
214
|
-
set(key, value) {
|
|
215
|
-
this._map.set(this._toRaw(key), this._toRaw(value));
|
|
216
|
-
return this;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const declarationMap = new RawWeakMap();
|
|
221
|
-
function getDeclarations(constructor) {
|
|
222
|
-
let declarations = declarationMap.get(constructor);
|
|
223
|
-
if (!declarations) {
|
|
224
|
-
const superConstructor = Object.getPrototypeOf(constructor);
|
|
225
|
-
declarations = new Map(superConstructor ? getDeclarations(superConstructor) : void 0);
|
|
226
|
-
declarationMap.set(constructor, declarations);
|
|
227
|
-
}
|
|
228
|
-
return declarations;
|
|
229
|
-
}
|
|
230
|
-
function defineProperty(constructor, name, declaration = {}) {
|
|
231
|
-
getDeclarations(constructor).set(name, declaration);
|
|
232
|
-
const {
|
|
233
|
-
default: defaultValue,
|
|
234
|
-
alias
|
|
235
|
-
} = declaration;
|
|
236
|
-
let descriptor = Object.getOwnPropertyDescriptor(constructor.prototype, name);
|
|
237
|
-
if (!descriptor) {
|
|
238
|
-
const key = alias ?? Symbol.for(String(name));
|
|
239
|
-
descriptor = {
|
|
240
|
-
get() {
|
|
241
|
-
return this[key];
|
|
242
|
-
},
|
|
243
|
-
set(v) {
|
|
244
|
-
this[key] = v;
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
const getDefaultValue = () => typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
249
|
-
Object.defineProperty(constructor.prototype, name, {
|
|
250
|
-
get() {
|
|
251
|
-
let value = descriptor.get?.call(this);
|
|
252
|
-
if (value === void 0) {
|
|
253
|
-
value = getDefaultValue();
|
|
254
|
-
if (value !== void 0) {
|
|
255
|
-
descriptor.set?.call(this, value);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
return value;
|
|
259
|
-
},
|
|
260
|
-
set(value) {
|
|
261
|
-
let oldValue = descriptor.get?.call(this);
|
|
262
|
-
if (oldValue === void 0) {
|
|
263
|
-
oldValue = getDefaultValue();
|
|
264
|
-
}
|
|
265
|
-
descriptor.set?.call(this, value);
|
|
266
|
-
this.requestUpdate?.(name, oldValue, declaration);
|
|
267
|
-
},
|
|
268
|
-
configurable: true,
|
|
269
|
-
enumerable: true
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
function property(options) {
|
|
273
|
-
return function(proto, name) {
|
|
274
|
-
defineProperty(proto.constructor, name, options);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
|
|
278
14
|
const customNodes = /* @__PURE__ */ new Map();
|
|
279
15
|
function customNode(tag, defaultProperties) {
|
|
280
16
|
return function(constructor) {
|
|
@@ -285,7 +21,7 @@ function customNode(tag, defaultProperties) {
|
|
|
285
21
|
});
|
|
286
22
|
if (defaultProperties) {
|
|
287
23
|
Object.keys(defaultProperties).forEach((key) => {
|
|
288
|
-
defineProperty(constructor, key, { default: defaultProperties[key] });
|
|
24
|
+
modernIdoc.defineProperty(constructor, key, { default: defaultProperties[key] });
|
|
289
25
|
});
|
|
290
26
|
}
|
|
291
27
|
customNodes.set(tag, constructor);
|
|
@@ -293,7 +29,7 @@ function customNode(tag, defaultProperties) {
|
|
|
293
29
|
}
|
|
294
30
|
|
|
295
31
|
function protectedProperty(options) {
|
|
296
|
-
return property({ ...options, protected: true });
|
|
32
|
+
return modernIdoc.property({ ...options, protected: true });
|
|
297
33
|
}
|
|
298
34
|
|
|
299
35
|
function createNode(tag = "node", options = {}) {
|
|
@@ -474,9 +210,9 @@ class EventEmitter {
|
|
|
474
210
|
}
|
|
475
211
|
}
|
|
476
212
|
|
|
477
|
-
let UID = 0;
|
|
213
|
+
let UID$1 = 0;
|
|
478
214
|
class CoreObject extends EventEmitter {
|
|
479
|
-
instanceId = ++UID;
|
|
215
|
+
instanceId = ++UID$1;
|
|
480
216
|
_defaultProperties;
|
|
481
217
|
_updatedProperties = /* @__PURE__ */ new Map();
|
|
482
218
|
_changedProperties = /* @__PURE__ */ new Set();
|
|
@@ -512,7 +248,7 @@ class CoreObject extends EventEmitter {
|
|
|
512
248
|
return this._updatedProperties.has(key);
|
|
513
249
|
}
|
|
514
250
|
getPropertyDeclarations() {
|
|
515
|
-
return getDeclarations(this.constructor);
|
|
251
|
+
return modernIdoc.getDeclarations(this.constructor);
|
|
516
252
|
}
|
|
517
253
|
getPropertyDeclaration(key) {
|
|
518
254
|
return this.getPropertyDeclarations().get(key);
|
|
@@ -560,9 +296,8 @@ class CoreObject extends EventEmitter {
|
|
|
560
296
|
}
|
|
561
297
|
return this;
|
|
562
298
|
}
|
|
563
|
-
requestUpdate(key, oldValue, declaration) {
|
|
299
|
+
requestUpdate(key, newValue, oldValue, declaration) {
|
|
564
300
|
if (key !== void 0) {
|
|
565
|
-
const newValue = this[key];
|
|
566
301
|
if (!Object.is(newValue, oldValue)) {
|
|
567
302
|
this._updatedProperties.set(key, oldValue);
|
|
568
303
|
this._changedProperties.add(key);
|
|
@@ -606,6 +341,212 @@ class RefCounted extends CoreObject {
|
|
|
606
341
|
//
|
|
607
342
|
}
|
|
608
343
|
|
|
344
|
+
const PI = Math.PI;
|
|
345
|
+
const PI_2 = PI * 2;
|
|
346
|
+
let UID = 0;
|
|
347
|
+
function uid(object) {
|
|
348
|
+
return object?.__SPECTOR_Object_TAG?.id ?? ++UID;
|
|
349
|
+
}
|
|
350
|
+
function isPow2(v) {
|
|
351
|
+
return !(v & v - 1) && !!v;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
const FUNCTIONS_RE = /([\w-]+)\((.+?)\)/g;
|
|
355
|
+
const ARGS_RE = /[^,]+/g;
|
|
356
|
+
const ARG_RE = /([-e.\d]+)(.*)/;
|
|
357
|
+
function getDefaultCssPropertyValue(value) {
|
|
358
|
+
if (Array.isArray(value)) {
|
|
359
|
+
return value.map((func) => {
|
|
360
|
+
return {
|
|
361
|
+
name: func.name,
|
|
362
|
+
args: func.args.map((arg) => {
|
|
363
|
+
return {
|
|
364
|
+
...arg,
|
|
365
|
+
normalizedIntValue: arg.normalizedDefaultIntValue
|
|
366
|
+
};
|
|
367
|
+
})
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
} else {
|
|
371
|
+
return {
|
|
372
|
+
...value,
|
|
373
|
+
normalizedIntValue: value.normalizedDefaultIntValue
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function parseCssProperty(name, propertyValue, context = {}) {
|
|
378
|
+
const functions = parseCssFunctions(propertyValue, context);
|
|
379
|
+
return functions.length ? functions : parseArgument(name, propertyValue, context);
|
|
380
|
+
}
|
|
381
|
+
function parseCssFunctions(propertyValue, context = {}) {
|
|
382
|
+
const functions = [];
|
|
383
|
+
let match;
|
|
384
|
+
while ((match = FUNCTIONS_RE.exec(propertyValue)) !== null) {
|
|
385
|
+
const [, name, value] = match;
|
|
386
|
+
if (name) {
|
|
387
|
+
functions.push({
|
|
388
|
+
name,
|
|
389
|
+
args: parseArguments(name, value, context)
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return functions;
|
|
394
|
+
}
|
|
395
|
+
function parseArguments(name, value, context = {}) {
|
|
396
|
+
const values = [];
|
|
397
|
+
let match;
|
|
398
|
+
let i = 0;
|
|
399
|
+
while ((match = ARGS_RE.exec(value)) !== null) {
|
|
400
|
+
values.push(
|
|
401
|
+
parseArgument(name, match[0], {
|
|
402
|
+
...context,
|
|
403
|
+
index: i++
|
|
404
|
+
})
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
return values;
|
|
408
|
+
}
|
|
409
|
+
function parseArgument(name, value, context = {}) {
|
|
410
|
+
const { width = 1, height = 1, index = 0 } = context;
|
|
411
|
+
const matched = value.match(ARG_RE);
|
|
412
|
+
const result = {
|
|
413
|
+
unit: matched?.[2] ?? null,
|
|
414
|
+
value,
|
|
415
|
+
intValue: Number(matched?.[1]),
|
|
416
|
+
normalizedIntValue: 0,
|
|
417
|
+
normalizedDefaultIntValue: 0
|
|
418
|
+
};
|
|
419
|
+
switch (name) {
|
|
420
|
+
case "scale":
|
|
421
|
+
case "scaleX":
|
|
422
|
+
case "scaleY":
|
|
423
|
+
case "scale3d":
|
|
424
|
+
result.normalizedDefaultIntValue = 1;
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
switch (result.unit) {
|
|
428
|
+
case "%":
|
|
429
|
+
result.normalizedIntValue = result.intValue / 100;
|
|
430
|
+
break;
|
|
431
|
+
case "rad":
|
|
432
|
+
result.normalizedIntValue = result.intValue / PI_2;
|
|
433
|
+
break;
|
|
434
|
+
case "deg":
|
|
435
|
+
result.normalizedIntValue = result.intValue / 360;
|
|
436
|
+
break;
|
|
437
|
+
case "px":
|
|
438
|
+
switch (index) {
|
|
439
|
+
case 0:
|
|
440
|
+
result.normalizedIntValue = result.intValue / width;
|
|
441
|
+
break;
|
|
442
|
+
case 1:
|
|
443
|
+
result.normalizedIntValue = result.intValue / height;
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
break;
|
|
447
|
+
case "turn":
|
|
448
|
+
case "em":
|
|
449
|
+
// div fontSize
|
|
450
|
+
case "rem":
|
|
451
|
+
// div fontSize
|
|
452
|
+
default:
|
|
453
|
+
result.normalizedIntValue = result.intValue;
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
return result;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const SUPPORTS_WEBGL2 = "WebGL2RenderingContext" in globalThis;
|
|
460
|
+
const SUPPORTS_IMAGE_BITMAP = "ImageBitmap" in globalThis;
|
|
461
|
+
const SUPPORTS_RESIZE_OBSERVER = "ResizeObserver" in globalThis;
|
|
462
|
+
const SUPPORTS_POINTER_EVENTS = "PointerEvent" in globalThis;
|
|
463
|
+
const SUPPORTS_WHEEL_EVENTS = "WheelEvent" in globalThis;
|
|
464
|
+
const SUPPORTS_MOUSE_EVENTS = "MouseEvent" in globalThis;
|
|
465
|
+
const SUPPORTS_TOUCH_EVENTS = "ontouchstart" in globalThis;
|
|
466
|
+
const SUPPORTS_CLICK_EVENTS = "onclick" in globalThis;
|
|
467
|
+
const SUPPORTS_CREATE_IMAGE_BITMAP = "createImageBitmap" in globalThis;
|
|
468
|
+
const SUPPORTS_AUDIO_CONTEXT = "AudioContext" in globalThis;
|
|
469
|
+
const SUPPORTS_WEBKIT_AUDIO_CONTEXT = "webkitAudioContext" in globalThis;
|
|
470
|
+
const SUPPORTS_OFFLINE_AUDIO_CONTEXT = "OfflineAudioContext" in globalThis;
|
|
471
|
+
const SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT = "webkitOfflineAudioContext" in globalThis;
|
|
472
|
+
const SUPPORTS_WEB_AUDIO = SUPPORTS_AUDIO_CONTEXT || SUPPORTS_WEBKIT_AUDIO_CONTEXT;
|
|
473
|
+
const IN_BROWSER = typeof window !== "undefined";
|
|
474
|
+
const DEVICE_PIXEL_RATIO = globalThis.devicePixelRatio || 1;
|
|
475
|
+
const isElementNode = (node) => node !== null && typeof node === "object" && node.nodeType === 1;
|
|
476
|
+
const isVideoElement = (node) => isElementNode(node) && node.tagName === "VIDEO";
|
|
477
|
+
const isImageElement = (node) => isElementNode(node) && node.tagName === "IMG";
|
|
478
|
+
function isCanvasElement(node) {
|
|
479
|
+
return typeof node === "object" && node !== null && node.nodeType === 1 && node.tagName === "CANVAS";
|
|
480
|
+
}
|
|
481
|
+
function isWebgl2(gl) {
|
|
482
|
+
return SUPPORTS_WEBGL2 && gl instanceof globalThis.WebGL2RenderingContext;
|
|
483
|
+
}
|
|
484
|
+
function createHTMLCanvas() {
|
|
485
|
+
if (IN_BROWSER) {
|
|
486
|
+
return globalThis.document.createElement("canvas");
|
|
487
|
+
}
|
|
488
|
+
return void 0;
|
|
489
|
+
}
|
|
490
|
+
function determineCrossOrigin(url, loc = globalThis.location) {
|
|
491
|
+
if (url.startsWith("data:")) {
|
|
492
|
+
return "";
|
|
493
|
+
}
|
|
494
|
+
loc = loc || globalThis.location;
|
|
495
|
+
const parsedUrl = new URL(url, document.baseURI);
|
|
496
|
+
if (parsedUrl.hostname !== loc.hostname || parsedUrl.port !== loc.port || parsedUrl.protocol !== loc.protocol) {
|
|
497
|
+
return "anonymous";
|
|
498
|
+
}
|
|
499
|
+
return "";
|
|
500
|
+
}
|
|
501
|
+
function crossOrigin(element, url, crossorigin) {
|
|
502
|
+
if (crossorigin === null && !url.startsWith("data:")) {
|
|
503
|
+
element.crossOrigin = determineCrossOrigin(url);
|
|
504
|
+
} else if (crossorigin !== false) {
|
|
505
|
+
element.crossOrigin = typeof crossorigin === "string" ? crossorigin : "anonymous";
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
class RawWeakMap {
|
|
510
|
+
_map = /* @__PURE__ */ new WeakMap();
|
|
511
|
+
// fix: vue reactive object
|
|
512
|
+
_toRaw(value) {
|
|
513
|
+
if (value && typeof value === "object") {
|
|
514
|
+
const raw = value.__v_raw;
|
|
515
|
+
if (raw) {
|
|
516
|
+
value = this._toRaw(raw);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return value;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Removes the specified element from the WeakMap.
|
|
523
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
524
|
+
*/
|
|
525
|
+
delete(key) {
|
|
526
|
+
return this._map.delete(this._toRaw(key));
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @returns a specified element.
|
|
530
|
+
*/
|
|
531
|
+
get(key) {
|
|
532
|
+
return this._map.get(this._toRaw(key));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
536
|
+
*/
|
|
537
|
+
has(key) {
|
|
538
|
+
return this._map.has(this._toRaw(key));
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Adds a new element with a specified key and value.
|
|
542
|
+
* @param key Must be an object or symbol.
|
|
543
|
+
*/
|
|
544
|
+
set(key, value) {
|
|
545
|
+
this._map.set(this._toRaw(key), this._toRaw(value));
|
|
546
|
+
return this;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
609
550
|
class InputEvent {
|
|
610
551
|
bubbles = true;
|
|
611
552
|
cancelable = false;
|
|
@@ -1502,18 +1443,18 @@ class ColorMatrix extends Matrix {
|
|
|
1502
1443
|
const lumG = 0.715;
|
|
1503
1444
|
const lumB = 0.072;
|
|
1504
1445
|
return this.multiply([
|
|
1505
|
-
lumR + cos * (1 - lumR) + sin * -
|
|
1506
|
-
lumG + cos * -
|
|
1507
|
-
lumB + cos * -
|
|
1446
|
+
lumR + cos * (1 - lumR) + sin * -lumR,
|
|
1447
|
+
lumG + cos * -lumG + sin * -lumG,
|
|
1448
|
+
lumB + cos * -lumB + sin * (1 - lumB),
|
|
1508
1449
|
0,
|
|
1509
1450
|
0,
|
|
1510
|
-
lumR + cos * -
|
|
1451
|
+
lumR + cos * -lumR + sin * 0.143,
|
|
1511
1452
|
lumG + cos * (1 - lumG) + sin * 0.14,
|
|
1512
|
-
lumB + cos * -
|
|
1453
|
+
lumB + cos * -lumB + sin * -0.283,
|
|
1513
1454
|
0,
|
|
1514
1455
|
0,
|
|
1515
|
-
lumR + cos * -
|
|
1516
|
-
lumG + cos * -
|
|
1456
|
+
lumR + cos * -lumR + sin * -0.787,
|
|
1457
|
+
lumG + cos * -lumG + sin * lumG,
|
|
1517
1458
|
lumB + cos * (1 - lumB) + sin * lumB,
|
|
1518
1459
|
0,
|
|
1519
1460
|
0,
|
|
@@ -2230,10 +2171,10 @@ class MainLoop extends CoreObject {
|
|
|
2230
2171
|
}
|
|
2231
2172
|
}
|
|
2232
2173
|
__decorateClass$Y([
|
|
2233
|
-
property({ default: 24 })
|
|
2174
|
+
modernIdoc.property({ default: 24 })
|
|
2234
2175
|
], MainLoop.prototype, "fps");
|
|
2235
2176
|
__decorateClass$Y([
|
|
2236
|
-
property({ default: 1 })
|
|
2177
|
+
modernIdoc.property({ default: 1 })
|
|
2237
2178
|
], MainLoop.prototype, "speed");
|
|
2238
2179
|
|
|
2239
2180
|
class Renderer {
|
|
@@ -3324,7 +3265,7 @@ class WebGLProgramModule extends WebGLModule {
|
|
|
3324
3265
|
return {
|
|
3325
3266
|
attributes: /* @__PURE__ */ new Map(),
|
|
3326
3267
|
uniforms: /* @__PURE__ */ new Map(),
|
|
3327
|
-
boundUniforms: new RawWeakMap()
|
|
3268
|
+
boundUniforms: new modernIdoc.RawWeakMap()
|
|
3328
3269
|
};
|
|
3329
3270
|
});
|
|
3330
3271
|
}
|
|
@@ -5089,19 +5030,19 @@ __decorateClass$U([
|
|
|
5089
5030
|
protectedProperty()
|
|
5090
5031
|
], Texture2D.prototype, "source");
|
|
5091
5032
|
__decorateClass$U([
|
|
5092
|
-
property({ default: 0 })
|
|
5033
|
+
modernIdoc.property({ default: 0 })
|
|
5093
5034
|
], Texture2D.prototype, "width");
|
|
5094
5035
|
__decorateClass$U([
|
|
5095
|
-
property({ default: 0 })
|
|
5036
|
+
modernIdoc.property({ default: 0 })
|
|
5096
5037
|
], Texture2D.prototype, "height");
|
|
5097
5038
|
__decorateClass$U([
|
|
5098
|
-
property({ default: "linear" })
|
|
5039
|
+
modernIdoc.property({ default: "linear" })
|
|
5099
5040
|
], Texture2D.prototype, "filterMode");
|
|
5100
5041
|
__decorateClass$U([
|
|
5101
|
-
property({ default: "clamp_to_edge" })
|
|
5042
|
+
modernIdoc.property({ default: "clamp_to_edge" })
|
|
5102
5043
|
], Texture2D.prototype, "wrapMode");
|
|
5103
5044
|
__decorateClass$U([
|
|
5104
|
-
property({ default: 1 })
|
|
5045
|
+
modernIdoc.property({ default: 1 })
|
|
5105
5046
|
], Texture2D.prototype, "pixelRatio");
|
|
5106
5047
|
|
|
5107
5048
|
class AnimatedTexture extends Resource {
|
|
@@ -5156,7 +5097,7 @@ class CanvasTexture extends Texture2D {
|
|
|
5156
5097
|
}
|
|
5157
5098
|
}
|
|
5158
5099
|
__decorateClass$T([
|
|
5159
|
-
property({ default: 2 })
|
|
5100
|
+
modernIdoc.property({ default: 2 })
|
|
5160
5101
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5161
5102
|
|
|
5162
5103
|
class ColorTexture extends Texture2D {
|
|
@@ -6140,25 +6081,25 @@ exports.Node = class Node extends CoreObject {
|
|
|
6140
6081
|
}
|
|
6141
6082
|
};
|
|
6142
6083
|
__decorateClass$R([
|
|
6143
|
-
property()
|
|
6084
|
+
modernIdoc.property()
|
|
6144
6085
|
], exports.Node.prototype, "name", 2);
|
|
6145
6086
|
__decorateClass$R([
|
|
6146
|
-
property()
|
|
6087
|
+
modernIdoc.property()
|
|
6147
6088
|
], exports.Node.prototype, "mask", 2);
|
|
6148
6089
|
__decorateClass$R([
|
|
6149
|
-
property({ default: "inherit" })
|
|
6090
|
+
modernIdoc.property({ default: "inherit" })
|
|
6150
6091
|
], exports.Node.prototype, "processMode", 2);
|
|
6151
6092
|
__decorateClass$R([
|
|
6152
|
-
property({ default: "default" })
|
|
6093
|
+
modernIdoc.property({ default: "default" })
|
|
6153
6094
|
], exports.Node.prototype, "processSortMode", 2);
|
|
6154
6095
|
__decorateClass$R([
|
|
6155
|
-
property({ default: "inherit" })
|
|
6096
|
+
modernIdoc.property({ default: "inherit" })
|
|
6156
6097
|
], exports.Node.prototype, "renderMode", 2);
|
|
6157
6098
|
__decorateClass$R([
|
|
6158
|
-
property({ default: "default" })
|
|
6099
|
+
modernIdoc.property({ default: "default" })
|
|
6159
6100
|
], exports.Node.prototype, "internalMode", 2);
|
|
6160
6101
|
__decorateClass$R([
|
|
6161
|
-
property({ default: () => ({}) })
|
|
6102
|
+
modernIdoc.property({ default: () => ({}) })
|
|
6162
6103
|
], exports.Node.prototype, "meta", 2);
|
|
6163
6104
|
exports.Node = __decorateClass$R([
|
|
6164
6105
|
customNode("Node")
|
|
@@ -6232,13 +6173,13 @@ exports.TimelineNode = class TimelineNode extends exports.Node {
|
|
|
6232
6173
|
}
|
|
6233
6174
|
};
|
|
6234
6175
|
__decorateClass$Q([
|
|
6235
|
-
property({ default: 0 })
|
|
6176
|
+
modernIdoc.property({ default: 0 })
|
|
6236
6177
|
], exports.TimelineNode.prototype, "delay", 2);
|
|
6237
6178
|
__decorateClass$Q([
|
|
6238
|
-
property({ default: 0 })
|
|
6179
|
+
modernIdoc.property({ default: 0 })
|
|
6239
6180
|
], exports.TimelineNode.prototype, "duration", 2);
|
|
6240
6181
|
__decorateClass$Q([
|
|
6241
|
-
property({ default: false })
|
|
6182
|
+
modernIdoc.property({ default: false })
|
|
6242
6183
|
], exports.TimelineNode.prototype, "paused", 2);
|
|
6243
6184
|
__decorateClass$Q([
|
|
6244
6185
|
protectedProperty()
|
|
@@ -6393,16 +6334,16 @@ exports.Viewport = class Viewport extends exports.Node {
|
|
|
6393
6334
|
}
|
|
6394
6335
|
};
|
|
6395
6336
|
__decorateClass$P([
|
|
6396
|
-
property({ default: 0 })
|
|
6337
|
+
modernIdoc.property({ default: 0 })
|
|
6397
6338
|
], exports.Viewport.prototype, "x", 2);
|
|
6398
6339
|
__decorateClass$P([
|
|
6399
|
-
property({ default: 0 })
|
|
6340
|
+
modernIdoc.property({ default: 0 })
|
|
6400
6341
|
], exports.Viewport.prototype, "y", 2);
|
|
6401
6342
|
__decorateClass$P([
|
|
6402
|
-
property({ default: 0 })
|
|
6343
|
+
modernIdoc.property({ default: 0 })
|
|
6403
6344
|
], exports.Viewport.prototype, "width", 2);
|
|
6404
6345
|
__decorateClass$P([
|
|
6405
|
-
property({ default: 0 })
|
|
6346
|
+
modernIdoc.property({ default: 0 })
|
|
6406
6347
|
], exports.Viewport.prototype, "height", 2);
|
|
6407
6348
|
exports.Viewport = __decorateClass$P([
|
|
6408
6349
|
customNode("Viewport")
|
|
@@ -6660,13 +6601,13 @@ __decorateClass$O([
|
|
|
6660
6601
|
protectedProperty()
|
|
6661
6602
|
], exports.Effect.prototype, "material", 2);
|
|
6662
6603
|
__decorateClass$O([
|
|
6663
|
-
property()
|
|
6604
|
+
modernIdoc.property()
|
|
6664
6605
|
], exports.Effect.prototype, "effectMode", 2);
|
|
6665
6606
|
__decorateClass$O([
|
|
6666
|
-
property({ default: "" })
|
|
6607
|
+
modernIdoc.property({ default: "" })
|
|
6667
6608
|
], exports.Effect.prototype, "glsl", 2);
|
|
6668
6609
|
__decorateClass$O([
|
|
6669
|
-
property({ default: "" })
|
|
6610
|
+
modernIdoc.property({ default: "" })
|
|
6670
6611
|
], exports.Effect.prototype, "glslSrc", 2);
|
|
6671
6612
|
exports.Effect = __decorateClass$O([
|
|
6672
6613
|
customNode("Effect")
|
|
@@ -6741,28 +6682,28 @@ void main(void) {
|
|
|
6741
6682
|
}`
|
|
6742
6683
|
}));
|
|
6743
6684
|
__decorateClass$N([
|
|
6744
|
-
property({ default: 1 })
|
|
6685
|
+
modernIdoc.property({ default: 1 })
|
|
6745
6686
|
], exports.ColorAdjustEffect.prototype, "saturation", 2);
|
|
6746
6687
|
__decorateClass$N([
|
|
6747
|
-
property({ default: 1 })
|
|
6688
|
+
modernIdoc.property({ default: 1 })
|
|
6748
6689
|
], exports.ColorAdjustEffect.prototype, "contrast", 2);
|
|
6749
6690
|
__decorateClass$N([
|
|
6750
|
-
property({ default: 1 })
|
|
6691
|
+
modernIdoc.property({ default: 1 })
|
|
6751
6692
|
], exports.ColorAdjustEffect.prototype, "brightness", 2);
|
|
6752
6693
|
__decorateClass$N([
|
|
6753
|
-
property({ default: 1 })
|
|
6694
|
+
modernIdoc.property({ default: 1 })
|
|
6754
6695
|
], exports.ColorAdjustEffect.prototype, "red", 2);
|
|
6755
6696
|
__decorateClass$N([
|
|
6756
|
-
property({ default: 1 })
|
|
6697
|
+
modernIdoc.property({ default: 1 })
|
|
6757
6698
|
], exports.ColorAdjustEffect.prototype, "green", 2);
|
|
6758
6699
|
__decorateClass$N([
|
|
6759
|
-
property({ default: 1 })
|
|
6700
|
+
modernIdoc.property({ default: 1 })
|
|
6760
6701
|
], exports.ColorAdjustEffect.prototype, "blue", 2);
|
|
6761
6702
|
__decorateClass$N([
|
|
6762
|
-
property({ default: 1 })
|
|
6703
|
+
modernIdoc.property({ default: 1 })
|
|
6763
6704
|
], exports.ColorAdjustEffect.prototype, "alpha", 2);
|
|
6764
6705
|
__decorateClass$N([
|
|
6765
|
-
property({ default: 1 })
|
|
6706
|
+
modernIdoc.property({ default: 1 })
|
|
6766
6707
|
], exports.ColorAdjustEffect.prototype, "gamma", 2);
|
|
6767
6708
|
exports.ColorAdjustEffect = __decorateClass$N([
|
|
6768
6709
|
customNode("ColorAdjustEffect")
|
|
@@ -6857,7 +6798,7 @@ void main(void) {
|
|
|
6857
6798
|
}`
|
|
6858
6799
|
}));
|
|
6859
6800
|
__decorateClass$M([
|
|
6860
|
-
property()
|
|
6801
|
+
modernIdoc.property()
|
|
6861
6802
|
], exports.ColorFilterEffect.prototype, "filter", 2);
|
|
6862
6803
|
exports.ColorFilterEffect = __decorateClass$M([
|
|
6863
6804
|
customNode("ColorFilterEffect")
|
|
@@ -6948,10 +6889,10 @@ void main(void) {
|
|
|
6948
6889
|
}`
|
|
6949
6890
|
}));
|
|
6950
6891
|
__decorateClass$L([
|
|
6951
|
-
property({ default: () => [] })
|
|
6892
|
+
modernIdoc.property({ default: () => [] })
|
|
6952
6893
|
], exports.ColorOverlayEffect.prototype, "colors", 2);
|
|
6953
6894
|
__decorateClass$L([
|
|
6954
|
-
property({ default: 0.5 })
|
|
6895
|
+
modernIdoc.property({ default: 0.5 })
|
|
6955
6896
|
], exports.ColorOverlayEffect.prototype, "alpha", 2);
|
|
6956
6897
|
exports.ColorOverlayEffect = __decorateClass$L([
|
|
6957
6898
|
customNode("ColorOverlayEffect")
|
|
@@ -7033,10 +6974,10 @@ void main(void) {
|
|
|
7033
6974
|
}`
|
|
7034
6975
|
}));
|
|
7035
6976
|
__decorateClass$K([
|
|
7036
|
-
property({ default: () => [] })
|
|
6977
|
+
modernIdoc.property({ default: () => [] })
|
|
7037
6978
|
], exports.ColorRemoveEffect.prototype, "colors", 2);
|
|
7038
6979
|
__decorateClass$K([
|
|
7039
|
-
property({ default: 0.5 })
|
|
6980
|
+
modernIdoc.property({ default: 0.5 })
|
|
7040
6981
|
], exports.ColorRemoveEffect.prototype, "epsilon", 2);
|
|
7041
6982
|
exports.ColorRemoveEffect = __decorateClass$K([
|
|
7042
6983
|
customNode("ColorRemoveEffect")
|
|
@@ -7140,10 +7081,10 @@ void main(void) {
|
|
|
7140
7081
|
}`
|
|
7141
7082
|
}));
|
|
7142
7083
|
__decorateClass$J([
|
|
7143
|
-
property({ default: [] })
|
|
7084
|
+
modernIdoc.property({ default: [] })
|
|
7144
7085
|
], exports.ColorReplaceEffect.prototype, "colors", 2);
|
|
7145
7086
|
__decorateClass$J([
|
|
7146
|
-
property({ default: 0.05 })
|
|
7087
|
+
modernIdoc.property({ default: 0.05 })
|
|
7147
7088
|
], exports.ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7148
7089
|
exports.ColorReplaceEffect = __decorateClass$J([
|
|
7149
7090
|
customNode("ColorReplaceEffect")
|
|
@@ -7422,7 +7363,8 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7422
7363
|
this.requestUpdate();
|
|
7423
7364
|
}
|
|
7424
7365
|
}
|
|
7425
|
-
_update() {
|
|
7366
|
+
_update(changed) {
|
|
7367
|
+
super._update(changed);
|
|
7426
7368
|
const parent = this.getParent();
|
|
7427
7369
|
if (this._parentGlobalVisible !== parent?.globalVisible) {
|
|
7428
7370
|
this._updateGlobalVisible();
|
|
@@ -7469,10 +7411,10 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7469
7411
|
}
|
|
7470
7412
|
};
|
|
7471
7413
|
__decorateClass$I([
|
|
7472
|
-
property()
|
|
7414
|
+
modernIdoc.property()
|
|
7473
7415
|
], exports.CanvasItem.prototype, "modulate", 2);
|
|
7474
7416
|
__decorateClass$I([
|
|
7475
|
-
property()
|
|
7417
|
+
modernIdoc.property()
|
|
7476
7418
|
], exports.CanvasItem.prototype, "blendMode", 2);
|
|
7477
7419
|
__decorateClass$I([
|
|
7478
7420
|
protectedProperty({ default: true })
|
|
@@ -7563,16 +7505,16 @@ exports.Timeline = class Timeline extends exports.Node {
|
|
|
7563
7505
|
}
|
|
7564
7506
|
};
|
|
7565
7507
|
__decorateClass$H([
|
|
7566
|
-
property({ default: 0 })
|
|
7508
|
+
modernIdoc.property({ default: 0 })
|
|
7567
7509
|
], exports.Timeline.prototype, "startTime", 2);
|
|
7568
7510
|
__decorateClass$H([
|
|
7569
|
-
property({ default: 0 })
|
|
7511
|
+
modernIdoc.property({ default: 0 })
|
|
7570
7512
|
], exports.Timeline.prototype, "currentTime", 2);
|
|
7571
7513
|
__decorateClass$H([
|
|
7572
|
-
property({ default: Number.MAX_SAFE_INTEGER })
|
|
7514
|
+
modernIdoc.property({ default: Number.MAX_SAFE_INTEGER })
|
|
7573
7515
|
], exports.Timeline.prototype, "endTime", 2);
|
|
7574
7516
|
__decorateClass$H([
|
|
7575
|
-
property({ default: false })
|
|
7517
|
+
modernIdoc.property({ default: false })
|
|
7576
7518
|
], exports.Timeline.prototype, "loop", 2);
|
|
7577
7519
|
exports.Timeline = __decorateClass$H([
|
|
7578
7520
|
customNode("Timeline")
|
|
@@ -7658,10 +7600,10 @@ class SceneTree extends MainLoop {
|
|
|
7658
7600
|
}
|
|
7659
7601
|
}
|
|
7660
7602
|
__decorateClass$G([
|
|
7661
|
-
property({ default: false })
|
|
7603
|
+
modernIdoc.property({ default: false })
|
|
7662
7604
|
], SceneTree.prototype, "processPaused");
|
|
7663
7605
|
__decorateClass$G([
|
|
7664
|
-
property()
|
|
7606
|
+
modernIdoc.property()
|
|
7665
7607
|
], SceneTree.prototype, "backgroundColor");
|
|
7666
7608
|
__decorateClass$G([
|
|
7667
7609
|
protectedProperty({ default: false })
|
|
@@ -7804,10 +7746,10 @@ void main(void) {
|
|
|
7804
7746
|
frag: frag$2
|
|
7805
7747
|
}));
|
|
7806
7748
|
__decorateClass$E([
|
|
7807
|
-
property({ default: 4 })
|
|
7749
|
+
modernIdoc.property({ default: 4 })
|
|
7808
7750
|
], exports.GaussianBlurEffect.prototype, "strength", 2);
|
|
7809
7751
|
__decorateClass$E([
|
|
7810
|
-
property({ default: 3 })
|
|
7752
|
+
modernIdoc.property({ default: 3 })
|
|
7811
7753
|
], exports.GaussianBlurEffect.prototype, "quality", 2);
|
|
7812
7754
|
exports.GaussianBlurEffect = __decorateClass$E([
|
|
7813
7755
|
customNode("GaussianBlurEffect")
|
|
@@ -7886,19 +7828,19 @@ void main(void) {
|
|
|
7886
7828
|
}`
|
|
7887
7829
|
}));
|
|
7888
7830
|
__decorateClass$D([
|
|
7889
|
-
property({ default: 0 })
|
|
7831
|
+
modernIdoc.property({ default: 0 })
|
|
7890
7832
|
], exports.DropShadowEffect.prototype, "color", 2);
|
|
7891
7833
|
__decorateClass$D([
|
|
7892
|
-
property({ default: 4 })
|
|
7834
|
+
modernIdoc.property({ default: 4 })
|
|
7893
7835
|
], exports.DropShadowEffect.prototype, "blur", 2);
|
|
7894
7836
|
__decorateClass$D([
|
|
7895
|
-
property({ default: 4 })
|
|
7837
|
+
modernIdoc.property({ default: 4 })
|
|
7896
7838
|
], exports.DropShadowEffect.prototype, "offsetX", 2);
|
|
7897
7839
|
__decorateClass$D([
|
|
7898
|
-
property({ default: 4 })
|
|
7840
|
+
modernIdoc.property({ default: 4 })
|
|
7899
7841
|
], exports.DropShadowEffect.prototype, "offsetY", 2);
|
|
7900
7842
|
__decorateClass$D([
|
|
7901
|
-
property({ default: false })
|
|
7843
|
+
modernIdoc.property({ default: false })
|
|
7902
7844
|
], exports.DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7903
7845
|
exports.DropShadowEffect = __decorateClass$D([
|
|
7904
7846
|
customNode("DropShadowEffect")
|
|
@@ -7958,7 +7900,7 @@ void main(void) {
|
|
|
7958
7900
|
}`
|
|
7959
7901
|
}));
|
|
7960
7902
|
__decorateClass$C([
|
|
7961
|
-
property({ default: 5 })
|
|
7903
|
+
modernIdoc.property({ default: 5 })
|
|
7962
7904
|
], exports.EmbossEffect.prototype, "strength", 2);
|
|
7963
7905
|
exports.EmbossEffect = __decorateClass$C([
|
|
7964
7906
|
customNode("EmbossEffect")
|
|
@@ -8147,31 +8089,31 @@ void main(void) {
|
|
|
8147
8089
|
}`
|
|
8148
8090
|
}));
|
|
8149
8091
|
__decorateClass$B([
|
|
8150
|
-
property({ default: 10 })
|
|
8092
|
+
modernIdoc.property({ default: 10 })
|
|
8151
8093
|
], exports.GlitchEffect.prototype, "slices", 2);
|
|
8152
8094
|
__decorateClass$B([
|
|
8153
|
-
property({ default: 512 })
|
|
8095
|
+
modernIdoc.property({ default: 512 })
|
|
8154
8096
|
], exports.GlitchEffect.prototype, "sampleSize", 2);
|
|
8155
8097
|
__decorateClass$B([
|
|
8156
|
-
property({ default: 100 })
|
|
8098
|
+
modernIdoc.property({ default: 100 })
|
|
8157
8099
|
], exports.GlitchEffect.prototype, "offset", 2);
|
|
8158
8100
|
__decorateClass$B([
|
|
8159
|
-
property({ default: 0 })
|
|
8101
|
+
modernIdoc.property({ default: 0 })
|
|
8160
8102
|
], exports.GlitchEffect.prototype, "direction", 2);
|
|
8161
8103
|
__decorateClass$B([
|
|
8162
|
-
property({ default: 2 })
|
|
8104
|
+
modernIdoc.property({ default: 2 })
|
|
8163
8105
|
], exports.GlitchEffect.prototype, "fillMode", 2);
|
|
8164
8106
|
__decorateClass$B([
|
|
8165
|
-
property({ default: 0 })
|
|
8107
|
+
modernIdoc.property({ default: 0 })
|
|
8166
8108
|
], exports.GlitchEffect.prototype, "seed", 2);
|
|
8167
8109
|
__decorateClass$B([
|
|
8168
|
-
property({ default: [2, 2] })
|
|
8110
|
+
modernIdoc.property({ default: [2, 2] })
|
|
8169
8111
|
], exports.GlitchEffect.prototype, "red", 2);
|
|
8170
8112
|
__decorateClass$B([
|
|
8171
|
-
property({ default: [-10, 4] })
|
|
8113
|
+
modernIdoc.property({ default: [-10, 4] })
|
|
8172
8114
|
], exports.GlitchEffect.prototype, "green", 2);
|
|
8173
8115
|
__decorateClass$B([
|
|
8174
|
-
property({ default: [10, -4] })
|
|
8116
|
+
modernIdoc.property({ default: [10, -4] })
|
|
8175
8117
|
], exports.GlitchEffect.prototype, "blue", 2);
|
|
8176
8118
|
exports.GlitchEffect = __decorateClass$B([
|
|
8177
8119
|
customNode("GlitchEffect")
|
|
@@ -8364,25 +8306,25 @@ void main(void) {
|
|
|
8364
8306
|
}`
|
|
8365
8307
|
}));
|
|
8366
8308
|
__decorateClass$A([
|
|
8367
|
-
property({ default: 0 })
|
|
8309
|
+
modernIdoc.property({ default: 0 })
|
|
8368
8310
|
], exports.GodrayEffect.prototype, "time", 2);
|
|
8369
8311
|
__decorateClass$A([
|
|
8370
|
-
property({ default: 30 })
|
|
8312
|
+
modernIdoc.property({ default: 30 })
|
|
8371
8313
|
], exports.GodrayEffect.prototype, "angle", 2);
|
|
8372
8314
|
__decorateClass$A([
|
|
8373
|
-
property({ default: 0.5 })
|
|
8315
|
+
modernIdoc.property({ default: 0.5 })
|
|
8374
8316
|
], exports.GodrayEffect.prototype, "gain", 2);
|
|
8375
8317
|
__decorateClass$A([
|
|
8376
|
-
property({ default: 2.5 })
|
|
8318
|
+
modernIdoc.property({ default: 2.5 })
|
|
8377
8319
|
], exports.GodrayEffect.prototype, "lacunarity", 2);
|
|
8378
8320
|
__decorateClass$A([
|
|
8379
|
-
property({ default: true })
|
|
8321
|
+
modernIdoc.property({ default: true })
|
|
8380
8322
|
], exports.GodrayEffect.prototype, "parallel", 2);
|
|
8381
8323
|
__decorateClass$A([
|
|
8382
|
-
property({ default: () => [0, 0] })
|
|
8324
|
+
modernIdoc.property({ default: () => [0, 0] })
|
|
8383
8325
|
], exports.GodrayEffect.prototype, "center", 2);
|
|
8384
8326
|
__decorateClass$A([
|
|
8385
|
-
property({ default: 1 })
|
|
8327
|
+
modernIdoc.property({ default: 1 })
|
|
8386
8328
|
], exports.GodrayEffect.prototype, "alpha", 2);
|
|
8387
8329
|
exports.GodrayEffect = __decorateClass$A([
|
|
8388
8330
|
customNode("GodrayEffect")
|
|
@@ -8487,13 +8429,13 @@ void main() {
|
|
|
8487
8429
|
}
|
|
8488
8430
|
};
|
|
8489
8431
|
__decorateClass$z([
|
|
8490
|
-
property({ default: 4 })
|
|
8432
|
+
modernIdoc.property({ default: 4 })
|
|
8491
8433
|
], exports.KawaseBlurEffect.prototype, "strength", 2);
|
|
8492
8434
|
__decorateClass$z([
|
|
8493
|
-
property({ default: 3 })
|
|
8435
|
+
modernIdoc.property({ default: 3 })
|
|
8494
8436
|
], exports.KawaseBlurEffect.prototype, "quality", 2);
|
|
8495
8437
|
__decorateClass$z([
|
|
8496
|
-
property({ default: [1, 1] })
|
|
8438
|
+
modernIdoc.property({ default: [1, 1] })
|
|
8497
8439
|
], exports.KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8498
8440
|
exports.KawaseBlurEffect = __decorateClass$z([
|
|
8499
8441
|
customNode("KawaseBlurEffect")
|
|
@@ -8600,7 +8542,7 @@ __decorateClass$y([
|
|
|
8600
8542
|
protectedProperty()
|
|
8601
8543
|
], exports.MaskEffect.prototype, "texture", 2);
|
|
8602
8544
|
__decorateClass$y([
|
|
8603
|
-
property({ default: "" })
|
|
8545
|
+
modernIdoc.property({ default: "" })
|
|
8604
8546
|
], exports.MaskEffect.prototype, "src", 2);
|
|
8605
8547
|
exports.MaskEffect = __decorateClass$y([
|
|
8606
8548
|
customNode("MaskEffect")
|
|
@@ -8703,25 +8645,25 @@ void main() {
|
|
|
8703
8645
|
__publicField$7(exports.OutlineEffect, "MIN_SAMPLES", 1);
|
|
8704
8646
|
__publicField$7(exports.OutlineEffect, "MAX_SAMPLES", 100);
|
|
8705
8647
|
__decorateClass$x([
|
|
8706
|
-
property({ default: 0 })
|
|
8648
|
+
modernIdoc.property({ default: 0 })
|
|
8707
8649
|
], exports.OutlineEffect.prototype, "color", 2);
|
|
8708
8650
|
__decorateClass$x([
|
|
8709
|
-
property({ default: 1 })
|
|
8651
|
+
modernIdoc.property({ default: 1 })
|
|
8710
8652
|
], exports.OutlineEffect.prototype, "width", 2);
|
|
8711
8653
|
__decorateClass$x([
|
|
8712
|
-
property({ default: "solid" })
|
|
8654
|
+
modernIdoc.property({ default: "solid" })
|
|
8713
8655
|
], exports.OutlineEffect.prototype, "style", 2);
|
|
8714
8656
|
__decorateClass$x([
|
|
8715
|
-
property()
|
|
8657
|
+
modernIdoc.property()
|
|
8716
8658
|
], exports.OutlineEffect.prototype, "image", 2);
|
|
8717
8659
|
__decorateClass$x([
|
|
8718
|
-
property({ default: 1 })
|
|
8660
|
+
modernIdoc.property({ default: 1 })
|
|
8719
8661
|
], exports.OutlineEffect.prototype, "opacity", 2);
|
|
8720
8662
|
__decorateClass$x([
|
|
8721
|
-
property({ default: 0.1 })
|
|
8663
|
+
modernIdoc.property({ default: 0.1 })
|
|
8722
8664
|
], exports.OutlineEffect.prototype, "quality", 2);
|
|
8723
8665
|
__decorateClass$x([
|
|
8724
|
-
property({ default: false })
|
|
8666
|
+
modernIdoc.property({ default: false })
|
|
8725
8667
|
], exports.OutlineEffect.prototype, "knockout", 2);
|
|
8726
8668
|
exports.OutlineEffect = __decorateClass$x([
|
|
8727
8669
|
customNode("OutlineEffect")
|
|
@@ -8792,7 +8734,7 @@ void main(void) {
|
|
|
8792
8734
|
}`
|
|
8793
8735
|
}));
|
|
8794
8736
|
__decorateClass$w([
|
|
8795
|
-
property({ default: 10 })
|
|
8737
|
+
modernIdoc.property({ default: 10 })
|
|
8796
8738
|
], exports.PixelateEffect.prototype, "strength", 2);
|
|
8797
8739
|
exports.PixelateEffect = __decorateClass$w([
|
|
8798
8740
|
customNode("PixelateEffect")
|
|
@@ -8920,16 +8862,16 @@ void main() {
|
|
|
8920
8862
|
}`
|
|
8921
8863
|
}));
|
|
8922
8864
|
__decorateClass$v([
|
|
8923
|
-
property()
|
|
8865
|
+
modernIdoc.property()
|
|
8924
8866
|
], exports.ZoomBlurEffect.prototype, "center", 2);
|
|
8925
8867
|
__decorateClass$v([
|
|
8926
|
-
property({ default: 20 })
|
|
8868
|
+
modernIdoc.property({ default: 20 })
|
|
8927
8869
|
], exports.ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8928
8870
|
__decorateClass$v([
|
|
8929
|
-
property({ default: -1 })
|
|
8871
|
+
modernIdoc.property({ default: -1 })
|
|
8930
8872
|
], exports.ZoomBlurEffect.prototype, "radius", 2);
|
|
8931
8873
|
__decorateClass$v([
|
|
8932
|
-
property({ default: 0.1 })
|
|
8874
|
+
modernIdoc.property({ default: 0.1 })
|
|
8933
8875
|
], exports.ZoomBlurEffect.prototype, "strength", 2);
|
|
8934
8876
|
exports.ZoomBlurEffect = __decorateClass$v([
|
|
8935
8877
|
customNode("ZoomBlurEffect")
|
|
@@ -8968,6 +8910,7 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8968
8910
|
case "rotateWithShape":
|
|
8969
8911
|
case "tile":
|
|
8970
8912
|
case "opacity":
|
|
8913
|
+
case "enabled":
|
|
8971
8914
|
this.parent.requestRedraw();
|
|
8972
8915
|
break;
|
|
8973
8916
|
case "image":
|
|
@@ -8996,7 +8939,7 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8996
8939
|
}
|
|
8997
8940
|
canDraw() {
|
|
8998
8941
|
return Boolean(
|
|
8999
|
-
this._texture || this.color
|
|
8942
|
+
this.enabled && (this._texture || this.color)
|
|
9000
8943
|
);
|
|
9001
8944
|
}
|
|
9002
8945
|
_getDrawOptions() {
|
|
@@ -9048,34 +8991,37 @@ class BaseElement2DFill extends CoreObject {
|
|
|
9048
8991
|
}
|
|
9049
8992
|
}
|
|
9050
8993
|
__decorateClass$u([
|
|
9051
|
-
property()
|
|
8994
|
+
modernIdoc.property({ default: true })
|
|
8995
|
+
], BaseElement2DFill.prototype, "enabled");
|
|
8996
|
+
__decorateClass$u([
|
|
8997
|
+
modernIdoc.property()
|
|
9052
8998
|
], BaseElement2DFill.prototype, "color");
|
|
9053
8999
|
__decorateClass$u([
|
|
9054
|
-
property()
|
|
9000
|
+
modernIdoc.property()
|
|
9055
9001
|
], BaseElement2DFill.prototype, "image");
|
|
9056
9002
|
__decorateClass$u([
|
|
9057
|
-
property()
|
|
9003
|
+
modernIdoc.property()
|
|
9058
9004
|
], BaseElement2DFill.prototype, "linearGradient");
|
|
9059
9005
|
__decorateClass$u([
|
|
9060
|
-
property()
|
|
9006
|
+
modernIdoc.property()
|
|
9061
9007
|
], BaseElement2DFill.prototype, "radialGradient");
|
|
9062
9008
|
__decorateClass$u([
|
|
9063
|
-
property()
|
|
9009
|
+
modernIdoc.property()
|
|
9064
9010
|
], BaseElement2DFill.prototype, "cropRect");
|
|
9065
9011
|
__decorateClass$u([
|
|
9066
|
-
property()
|
|
9012
|
+
modernIdoc.property()
|
|
9067
9013
|
], BaseElement2DFill.prototype, "stretchRect");
|
|
9068
9014
|
__decorateClass$u([
|
|
9069
|
-
property()
|
|
9015
|
+
modernIdoc.property()
|
|
9070
9016
|
], BaseElement2DFill.prototype, "dpi");
|
|
9071
9017
|
__decorateClass$u([
|
|
9072
|
-
property()
|
|
9018
|
+
modernIdoc.property()
|
|
9073
9019
|
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
9074
9020
|
__decorateClass$u([
|
|
9075
|
-
property()
|
|
9021
|
+
modernIdoc.property()
|
|
9076
9022
|
], BaseElement2DFill.prototype, "tile");
|
|
9077
9023
|
__decorateClass$u([
|
|
9078
|
-
property()
|
|
9024
|
+
modernIdoc.property()
|
|
9079
9025
|
], BaseElement2DFill.prototype, "opacity");
|
|
9080
9026
|
|
|
9081
9027
|
var __defProp$m = Object.defineProperty;
|
|
@@ -9095,7 +9041,7 @@ class BaseElement2DBackground extends BaseElement2DFill {
|
|
|
9095
9041
|
}
|
|
9096
9042
|
}
|
|
9097
9043
|
__decorateClass$t([
|
|
9098
|
-
property()
|
|
9044
|
+
modernIdoc.property()
|
|
9099
9045
|
], BaseElement2DBackground.prototype, "fillWithShape");
|
|
9100
9046
|
|
|
9101
9047
|
var __defProp$l = Object.defineProperty;
|
|
@@ -9115,7 +9061,7 @@ class BaseElement2DForeground extends BaseElement2DFill {
|
|
|
9115
9061
|
}
|
|
9116
9062
|
}
|
|
9117
9063
|
__decorateClass$s([
|
|
9118
|
-
property()
|
|
9064
|
+
modernIdoc.property()
|
|
9119
9065
|
], BaseElement2DForeground.prototype, "fillWithShape");
|
|
9120
9066
|
|
|
9121
9067
|
var __defProp$k = Object.defineProperty;
|
|
@@ -9138,13 +9084,14 @@ class BaseElement2DOutline extends BaseElement2DFill {
|
|
|
9138
9084
|
switch (key) {
|
|
9139
9085
|
case "width":
|
|
9140
9086
|
case "style":
|
|
9087
|
+
case "enabled":
|
|
9141
9088
|
this.parent.requestRedraw();
|
|
9142
9089
|
break;
|
|
9143
9090
|
}
|
|
9144
9091
|
}
|
|
9145
9092
|
canDraw() {
|
|
9146
9093
|
return Boolean(
|
|
9147
|
-
this.width || this.color || super.canDraw()
|
|
9094
|
+
this.enabled && (this.width || this.color || super.canDraw())
|
|
9148
9095
|
);
|
|
9149
9096
|
}
|
|
9150
9097
|
draw() {
|
|
@@ -9157,13 +9104,16 @@ class BaseElement2DOutline extends BaseElement2DFill {
|
|
|
9157
9104
|
}
|
|
9158
9105
|
}
|
|
9159
9106
|
__decorateClass$r([
|
|
9160
|
-
property({ default:
|
|
9107
|
+
modernIdoc.property({ default: true })
|
|
9108
|
+
], BaseElement2DOutline.prototype, "enabled");
|
|
9109
|
+
__decorateClass$r([
|
|
9110
|
+
modernIdoc.property({ default: 0 })
|
|
9161
9111
|
], BaseElement2DOutline.prototype, "color");
|
|
9162
9112
|
__decorateClass$r([
|
|
9163
|
-
property({ default: 0 })
|
|
9113
|
+
modernIdoc.property({ default: 0 })
|
|
9164
9114
|
], BaseElement2DOutline.prototype, "width");
|
|
9165
9115
|
__decorateClass$r([
|
|
9166
|
-
property({ default: "solid" })
|
|
9116
|
+
modernIdoc.property({ default: "solid" })
|
|
9167
9117
|
], BaseElement2DOutline.prototype, "style");
|
|
9168
9118
|
|
|
9169
9119
|
var __defProp$j = Object.defineProperty;
|
|
@@ -9213,16 +9163,19 @@ class BaseElement2DShadow extends CoreObject {
|
|
|
9213
9163
|
}
|
|
9214
9164
|
}
|
|
9215
9165
|
__decorateClass$q([
|
|
9216
|
-
property({ default:
|
|
9166
|
+
modernIdoc.property({ default: true })
|
|
9167
|
+
], BaseElement2DShadow.prototype, "enabled");
|
|
9168
|
+
__decorateClass$q([
|
|
9169
|
+
modernIdoc.property({ default: "#000000" })
|
|
9217
9170
|
], BaseElement2DShadow.prototype, "color");
|
|
9218
9171
|
__decorateClass$q([
|
|
9219
|
-
property({ default: 0 })
|
|
9172
|
+
modernIdoc.property({ default: 0 })
|
|
9220
9173
|
], BaseElement2DShadow.prototype, "blur");
|
|
9221
9174
|
__decorateClass$q([
|
|
9222
|
-
property({ default: 0 })
|
|
9175
|
+
modernIdoc.property({ default: 0 })
|
|
9223
9176
|
], BaseElement2DShadow.prototype, "offsetY");
|
|
9224
9177
|
__decorateClass$q([
|
|
9225
|
-
property({ default: 0 })
|
|
9178
|
+
modernIdoc.property({ default: 0 })
|
|
9226
9179
|
], BaseElement2DShadow.prototype, "offsetX");
|
|
9227
9180
|
|
|
9228
9181
|
var __defProp$i = Object.defineProperty;
|
|
@@ -9252,6 +9205,7 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9252
9205
|
case "svg":
|
|
9253
9206
|
case "paths":
|
|
9254
9207
|
case "viewBox":
|
|
9208
|
+
case "enabled":
|
|
9255
9209
|
this._updatePath2DSet();
|
|
9256
9210
|
this.parent.requestRedraw();
|
|
9257
9211
|
break;
|
|
@@ -9282,7 +9236,7 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9282
9236
|
});
|
|
9283
9237
|
}
|
|
9284
9238
|
draw() {
|
|
9285
|
-
if (this._path2DSet.paths.length) {
|
|
9239
|
+
if (this.enabled && this._path2DSet.paths.length) {
|
|
9286
9240
|
const ctx = this.parent.context;
|
|
9287
9241
|
const { width, height } = this.parent.size;
|
|
9288
9242
|
this._path2DSet.paths.forEach((path) => {
|
|
@@ -9306,16 +9260,19 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9306
9260
|
}
|
|
9307
9261
|
}
|
|
9308
9262
|
__decorateClass$p([
|
|
9309
|
-
property()
|
|
9263
|
+
modernIdoc.property({ default: true })
|
|
9264
|
+
], BaseElement2DShape.prototype, "enabled");
|
|
9265
|
+
__decorateClass$p([
|
|
9266
|
+
modernIdoc.property()
|
|
9310
9267
|
], BaseElement2DShape.prototype, "preset");
|
|
9311
9268
|
__decorateClass$p([
|
|
9312
|
-
property()
|
|
9269
|
+
modernIdoc.property()
|
|
9313
9270
|
], BaseElement2DShape.prototype, "svg");
|
|
9314
9271
|
__decorateClass$p([
|
|
9315
|
-
property()
|
|
9272
|
+
modernIdoc.property()
|
|
9316
9273
|
], BaseElement2DShape.prototype, "viewBox");
|
|
9317
9274
|
__decorateClass$p([
|
|
9318
|
-
property({ default: () => [] })
|
|
9275
|
+
modernIdoc.property({ default: () => [] })
|
|
9319
9276
|
], BaseElement2DShape.prototype, "paths");
|
|
9320
9277
|
|
|
9321
9278
|
class BaseElement2DStyle extends Resource {
|
|
@@ -9330,7 +9287,7 @@ delete defaultStyles$1.left;
|
|
|
9330
9287
|
delete defaultStyles$1.width;
|
|
9331
9288
|
delete defaultStyles$1.height;
|
|
9332
9289
|
for (const key in defaultStyles$1) {
|
|
9333
|
-
defineProperty(BaseElement2DStyle, key, {
|
|
9290
|
+
modernIdoc.defineProperty(BaseElement2DStyle, key, {
|
|
9334
9291
|
default: defaultStyles$1[key]
|
|
9335
9292
|
});
|
|
9336
9293
|
}
|
|
@@ -9349,11 +9306,8 @@ class BaseElement2DText extends CoreObject {
|
|
|
9349
9306
|
super();
|
|
9350
9307
|
this.parent = parent;
|
|
9351
9308
|
}
|
|
9352
|
-
|
|
9353
|
-
measureDom;
|
|
9354
|
-
fonts;
|
|
9309
|
+
base = new modernText.Text();
|
|
9355
9310
|
texture = new CanvasTexture();
|
|
9356
|
-
baseText = new modernText.Text();
|
|
9357
9311
|
measureResult;
|
|
9358
9312
|
setProperties(properties) {
|
|
9359
9313
|
return super.setProperties(
|
|
@@ -9365,29 +9319,26 @@ class BaseElement2DText extends CoreObject {
|
|
|
9365
9319
|
switch (key) {
|
|
9366
9320
|
case "content":
|
|
9367
9321
|
case "effects":
|
|
9368
|
-
case "
|
|
9322
|
+
case "measureDOM":
|
|
9369
9323
|
case "fonts":
|
|
9370
9324
|
case "split":
|
|
9325
|
+
case "enabled":
|
|
9371
9326
|
this.parent.requestRedraw();
|
|
9372
9327
|
break;
|
|
9373
9328
|
}
|
|
9374
9329
|
}
|
|
9375
9330
|
_updateText() {
|
|
9376
|
-
this.
|
|
9331
|
+
this.base.style = {
|
|
9377
9332
|
justifyContent: "center",
|
|
9378
9333
|
alignItems: "center",
|
|
9379
9334
|
textAlign: "center",
|
|
9380
9335
|
...this.parent.style.toJSON()
|
|
9381
9336
|
};
|
|
9382
|
-
this.
|
|
9383
|
-
this.baseText.effects = this.effects;
|
|
9384
|
-
this.baseText.fonts = this.fonts;
|
|
9385
|
-
this.baseText.measureDom = this.measureDom;
|
|
9386
|
-
this.baseText.requestUpdate();
|
|
9337
|
+
this.base.requestUpdate();
|
|
9387
9338
|
}
|
|
9388
9339
|
measure() {
|
|
9389
9340
|
this._updateText();
|
|
9390
|
-
return this.
|
|
9341
|
+
return this.base.measure();
|
|
9391
9342
|
}
|
|
9392
9343
|
updateMeasure() {
|
|
9393
9344
|
this.measureResult = this.measure();
|
|
@@ -9395,11 +9346,11 @@ class BaseElement2DText extends CoreObject {
|
|
|
9395
9346
|
}
|
|
9396
9347
|
canDraw() {
|
|
9397
9348
|
return Boolean(
|
|
9398
|
-
this.
|
|
9349
|
+
this.enabled && !/^\s*$/.test(this.base.toString()) && this.texture?.valid
|
|
9399
9350
|
);
|
|
9400
9351
|
}
|
|
9401
9352
|
draw() {
|
|
9402
|
-
this.
|
|
9353
|
+
this.base.render({
|
|
9403
9354
|
pixelRatio: this.texture.pixelRatio,
|
|
9404
9355
|
view: this.texture.source
|
|
9405
9356
|
});
|
|
@@ -9421,16 +9372,19 @@ class BaseElement2DText extends CoreObject {
|
|
|
9421
9372
|
}
|
|
9422
9373
|
}
|
|
9423
9374
|
__decorateClass$o([
|
|
9424
|
-
property({ default:
|
|
9375
|
+
modernIdoc.property({ default: true })
|
|
9376
|
+
], BaseElement2DText.prototype, "enabled");
|
|
9377
|
+
__decorateClass$o([
|
|
9378
|
+
modernIdoc.property({ alias: "base.content" })
|
|
9425
9379
|
], BaseElement2DText.prototype, "content");
|
|
9426
9380
|
__decorateClass$o([
|
|
9427
|
-
property()
|
|
9381
|
+
modernIdoc.property({ alias: "base.effects" })
|
|
9428
9382
|
], BaseElement2DText.prototype, "effects");
|
|
9429
9383
|
__decorateClass$o([
|
|
9430
|
-
protectedProperty()
|
|
9431
|
-
], BaseElement2DText.prototype, "
|
|
9384
|
+
protectedProperty({ alias: "base.measureDOM" })
|
|
9385
|
+
], BaseElement2DText.prototype, "measureDOM");
|
|
9432
9386
|
__decorateClass$o([
|
|
9433
|
-
protectedProperty()
|
|
9387
|
+
protectedProperty({ alias: "base.fonts" })
|
|
9434
9388
|
], BaseElement2DText.prototype, "fonts");
|
|
9435
9389
|
|
|
9436
9390
|
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
@@ -9905,7 +9859,7 @@ const defaultStyles = {
|
|
|
9905
9859
|
height: 0
|
|
9906
9860
|
};
|
|
9907
9861
|
for (const key in defaultStyles) {
|
|
9908
|
-
defineProperty(Element2DStyle, key, { default: defaultStyles[key] });
|
|
9862
|
+
modernIdoc.defineProperty(Element2DStyle, key, { default: defaultStyles[key] });
|
|
9909
9863
|
}
|
|
9910
9864
|
|
|
9911
9865
|
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
@@ -10549,13 +10503,13 @@ __decorateClass$i([
|
|
|
10549
10503
|
protectedProperty()
|
|
10550
10504
|
], exports.Image2D.prototype, "texture", 2);
|
|
10551
10505
|
__decorateClass$i([
|
|
10552
|
-
property({ default: "" })
|
|
10506
|
+
modernIdoc.property({ default: "" })
|
|
10553
10507
|
], exports.Image2D.prototype, "src", 2);
|
|
10554
10508
|
__decorateClass$i([
|
|
10555
|
-
property()
|
|
10509
|
+
modernIdoc.property()
|
|
10556
10510
|
], exports.Image2D.prototype, "srcRect", 2);
|
|
10557
10511
|
__decorateClass$i([
|
|
10558
|
-
property({ default: false })
|
|
10512
|
+
modernIdoc.property({ default: false })
|
|
10559
10513
|
], exports.Image2D.prototype, "gif", 2);
|
|
10560
10514
|
exports.Image2D = __decorateClass$i([
|
|
10561
10515
|
customNode("Image2D")
|
|
@@ -10632,7 +10586,7 @@ exports.Lottie2D = class Lottie2D extends TextureRect2D {
|
|
|
10632
10586
|
}
|
|
10633
10587
|
};
|
|
10634
10588
|
__decorateClass$h([
|
|
10635
|
-
property({ default: "" })
|
|
10589
|
+
modernIdoc.property({ default: "" })
|
|
10636
10590
|
], exports.Lottie2D.prototype, "src", 2);
|
|
10637
10591
|
exports.Lottie2D = __decorateClass$h([
|
|
10638
10592
|
customNode("Lottie2D")
|
|
@@ -10669,7 +10623,7 @@ exports.Text2D = class Text2D extends TextureRect2D {
|
|
|
10669
10623
|
switch (key) {
|
|
10670
10624
|
case "content":
|
|
10671
10625
|
case "effects":
|
|
10672
|
-
case "
|
|
10626
|
+
case "measureDOM":
|
|
10673
10627
|
case "fonts":
|
|
10674
10628
|
case "split":
|
|
10675
10629
|
this._updateSplit();
|
|
@@ -10684,10 +10638,6 @@ exports.Text2D = class Text2D extends TextureRect2D {
|
|
|
10684
10638
|
}
|
|
10685
10639
|
_updateBase() {
|
|
10686
10640
|
this.base.style = this.style.toJSON();
|
|
10687
|
-
this.base.content = this.content ?? "";
|
|
10688
|
-
this.base.effects = this.effects;
|
|
10689
|
-
this.base.fonts = this.fonts;
|
|
10690
|
-
this.base.measureDom = this.measureDom;
|
|
10691
10641
|
this.emit("updateBase", this.base);
|
|
10692
10642
|
this.base.requestUpdate();
|
|
10693
10643
|
}
|
|
@@ -10800,19 +10750,19 @@ exports.Text2D = class Text2D extends TextureRect2D {
|
|
|
10800
10750
|
}
|
|
10801
10751
|
};
|
|
10802
10752
|
__decorateClass$g([
|
|
10803
|
-
property({ default: false })
|
|
10753
|
+
modernIdoc.property({ default: false })
|
|
10804
10754
|
], exports.Text2D.prototype, "split", 2);
|
|
10805
10755
|
__decorateClass$g([
|
|
10806
|
-
property({
|
|
10756
|
+
modernIdoc.property({ alias: "base.content" })
|
|
10807
10757
|
], exports.Text2D.prototype, "content", 2);
|
|
10808
10758
|
__decorateClass$g([
|
|
10809
|
-
property()
|
|
10759
|
+
modernIdoc.property({ alias: "base.effects" })
|
|
10810
10760
|
], exports.Text2D.prototype, "effects", 2);
|
|
10811
10761
|
__decorateClass$g([
|
|
10812
|
-
protectedProperty()
|
|
10813
|
-
], exports.Text2D.prototype, "
|
|
10762
|
+
protectedProperty({ alias: "base.measureDOM" })
|
|
10763
|
+
], exports.Text2D.prototype, "measureDOM", 2);
|
|
10814
10764
|
__decorateClass$g([
|
|
10815
|
-
protectedProperty()
|
|
10765
|
+
protectedProperty({ alias: "base.fonts" })
|
|
10816
10766
|
], exports.Text2D.prototype, "fonts", 2);
|
|
10817
10767
|
exports.Text2D = __decorateClass$g([
|
|
10818
10768
|
customNode("Text2D")
|
|
@@ -10871,7 +10821,7 @@ class TransformRect2D extends exports.Element2D {
|
|
|
10871
10821
|
}
|
|
10872
10822
|
}
|
|
10873
10823
|
__decorateClass$f([
|
|
10874
|
-
property({ default: 6 })
|
|
10824
|
+
modernIdoc.property({ default: 6 })
|
|
10875
10825
|
], TransformRect2D.prototype, "handleSize");
|
|
10876
10826
|
|
|
10877
10827
|
var __defProp$b = Object.defineProperty;
|
|
@@ -10935,7 +10885,7 @@ exports.Video2D = class Video2D extends TextureRect2D {
|
|
|
10935
10885
|
}
|
|
10936
10886
|
};
|
|
10937
10887
|
__decorateClass$e([
|
|
10938
|
-
property({ default: "" })
|
|
10888
|
+
modernIdoc.property({ default: "" })
|
|
10939
10889
|
], exports.Video2D.prototype, "src", 2);
|
|
10940
10890
|
exports.Video2D = __decorateClass$e([
|
|
10941
10891
|
customNode("Video2D")
|
|
@@ -11012,7 +10962,7 @@ exports.Animation = class Animation extends exports.TimelineNode {
|
|
|
11012
10962
|
easing;
|
|
11013
10963
|
_keyframes = [];
|
|
11014
10964
|
_isFirstUpdatePosition = false;
|
|
11015
|
-
_cachedProps = new RawWeakMap();
|
|
10965
|
+
_cachedProps = new modernIdoc.RawWeakMap();
|
|
11016
10966
|
_stoped = false;
|
|
11017
10967
|
constructor(properties, children = []) {
|
|
11018
10968
|
super();
|
|
@@ -11269,16 +11219,16 @@ exports.Animation = class Animation extends exports.TimelineNode {
|
|
|
11269
11219
|
}
|
|
11270
11220
|
};
|
|
11271
11221
|
__decorateClass$d([
|
|
11272
|
-
property({ default: "parent" })
|
|
11222
|
+
modernIdoc.property({ default: "parent" })
|
|
11273
11223
|
], exports.Animation.prototype, "effectMode", 2);
|
|
11274
11224
|
__decorateClass$d([
|
|
11275
|
-
property({ default: false })
|
|
11225
|
+
modernIdoc.property({ default: false })
|
|
11276
11226
|
], exports.Animation.prototype, "loop", 2);
|
|
11277
11227
|
__decorateClass$d([
|
|
11278
|
-
property({ default: () => [] })
|
|
11228
|
+
modernIdoc.property({ default: () => [] })
|
|
11279
11229
|
], exports.Animation.prototype, "keyframes", 2);
|
|
11280
11230
|
__decorateClass$d([
|
|
11281
|
-
property()
|
|
11231
|
+
modernIdoc.property()
|
|
11282
11232
|
], exports.Animation.prototype, "easing", 2);
|
|
11283
11233
|
exports.Animation = __decorateClass$d([
|
|
11284
11234
|
customNode("Animation", {
|
|
@@ -12489,13 +12439,13 @@ exports.AudioWaveform = class AudioWaveform extends exports.Element2D {
|
|
|
12489
12439
|
}
|
|
12490
12440
|
};
|
|
12491
12441
|
__decorateClass$b([
|
|
12492
|
-
property()
|
|
12442
|
+
modernIdoc.property()
|
|
12493
12443
|
], exports.AudioWaveform.prototype, "src", 2);
|
|
12494
12444
|
__decorateClass$b([
|
|
12495
|
-
property()
|
|
12445
|
+
modernIdoc.property()
|
|
12496
12446
|
], exports.AudioWaveform.prototype, "gap", 2);
|
|
12497
12447
|
__decorateClass$b([
|
|
12498
|
-
property()
|
|
12448
|
+
modernIdoc.property()
|
|
12499
12449
|
], exports.AudioWaveform.prototype, "color", 2);
|
|
12500
12450
|
exports.AudioWaveform = __decorateClass$b([
|
|
12501
12451
|
customNode("AudioWaveform")
|
|
@@ -12585,25 +12535,25 @@ exports.Range = class Range extends exports.Control {
|
|
|
12585
12535
|
}
|
|
12586
12536
|
};
|
|
12587
12537
|
__decorateClass$9([
|
|
12588
|
-
property({ default: false })
|
|
12538
|
+
modernIdoc.property({ default: false })
|
|
12589
12539
|
], exports.Range.prototype, "allowGreater", 2);
|
|
12590
12540
|
__decorateClass$9([
|
|
12591
|
-
property({ default: false })
|
|
12541
|
+
modernIdoc.property({ default: false })
|
|
12592
12542
|
], exports.Range.prototype, "allowLesser", 2);
|
|
12593
12543
|
__decorateClass$9([
|
|
12594
|
-
property({ default: 1 })
|
|
12544
|
+
modernIdoc.property({ default: 1 })
|
|
12595
12545
|
], exports.Range.prototype, "page", 2);
|
|
12596
12546
|
__decorateClass$9([
|
|
12597
|
-
property({ default: 0 })
|
|
12547
|
+
modernIdoc.property({ default: 0 })
|
|
12598
12548
|
], exports.Range.prototype, "minValue", 2);
|
|
12599
12549
|
__decorateClass$9([
|
|
12600
|
-
property({ default: 100 })
|
|
12550
|
+
modernIdoc.property({ default: 100 })
|
|
12601
12551
|
], exports.Range.prototype, "maxValue", 2);
|
|
12602
12552
|
__decorateClass$9([
|
|
12603
|
-
property({ default: 0.01 })
|
|
12553
|
+
modernIdoc.property({ default: 0.01 })
|
|
12604
12554
|
], exports.Range.prototype, "step", 2);
|
|
12605
12555
|
__decorateClass$9([
|
|
12606
|
-
property({ default: 0 })
|
|
12556
|
+
modernIdoc.property({ default: 0 })
|
|
12607
12557
|
], exports.Range.prototype, "value", 2);
|
|
12608
12558
|
exports.Range = __decorateClass$9([
|
|
12609
12559
|
customNode("Range")
|
|
@@ -12765,31 +12715,31 @@ exports.Ruler = class Ruler extends exports.Control {
|
|
|
12765
12715
|
}
|
|
12766
12716
|
};
|
|
12767
12717
|
__decorateClass$8([
|
|
12768
|
-
property({ default: 0 })
|
|
12718
|
+
modernIdoc.property({ default: 0 })
|
|
12769
12719
|
], exports.Ruler.prototype, "offsetX", 2);
|
|
12770
12720
|
__decorateClass$8([
|
|
12771
|
-
property({ default: 0 })
|
|
12721
|
+
modernIdoc.property({ default: 0 })
|
|
12772
12722
|
], exports.Ruler.prototype, "offsetY", 2);
|
|
12773
12723
|
__decorateClass$8([
|
|
12774
|
-
property({ default: 20 })
|
|
12724
|
+
modernIdoc.property({ default: 20 })
|
|
12775
12725
|
], exports.Ruler.prototype, "thickness", 2);
|
|
12776
12726
|
__decorateClass$8([
|
|
12777
|
-
property({ default: 3 })
|
|
12727
|
+
modernIdoc.property({ default: 3 })
|
|
12778
12728
|
], exports.Ruler.prototype, "markHeight", 2);
|
|
12779
12729
|
__decorateClass$8([
|
|
12780
|
-
property({ default: "#b2b6bc" })
|
|
12730
|
+
modernIdoc.property({ default: "#b2b6bc" })
|
|
12781
12731
|
], exports.Ruler.prototype, "color", 2);
|
|
12782
12732
|
__decorateClass$8([
|
|
12783
|
-
property({ default: "#f9f9fa" })
|
|
12733
|
+
modernIdoc.property({ default: "#f9f9fa" })
|
|
12784
12734
|
], exports.Ruler.prototype, "markBackgroundColor", 2);
|
|
12785
12735
|
__decorateClass$8([
|
|
12786
|
-
property({ default: "#b2b6bc" })
|
|
12736
|
+
modernIdoc.property({ default: "#b2b6bc" })
|
|
12787
12737
|
], exports.Ruler.prototype, "markColor", 2);
|
|
12788
12738
|
__decorateClass$8([
|
|
12789
|
-
property({ default: 300 })
|
|
12739
|
+
modernIdoc.property({ default: 300 })
|
|
12790
12740
|
], exports.Ruler.prototype, "gap", 2);
|
|
12791
12741
|
__decorateClass$8([
|
|
12792
|
-
property({ default: 1 })
|
|
12742
|
+
modernIdoc.property({ default: 1 })
|
|
12793
12743
|
], exports.Ruler.prototype, "gapScale", 2);
|
|
12794
12744
|
exports.Ruler = __decorateClass$8([
|
|
12795
12745
|
customNode("Ruler")
|
|
@@ -12862,7 +12812,7 @@ exports.ScrollBar = class ScrollBar extends exports.Range {
|
|
|
12862
12812
|
}
|
|
12863
12813
|
};
|
|
12864
12814
|
__decorateClass$7([
|
|
12865
|
-
property({ default: "vertical" })
|
|
12815
|
+
modernIdoc.property({ default: "vertical" })
|
|
12866
12816
|
], exports.ScrollBar.prototype, "direction", 2);
|
|
12867
12817
|
exports.ScrollBar = __decorateClass$7([
|
|
12868
12818
|
customNode("ScrollBar")
|
|
@@ -12973,13 +12923,13 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12973
12923
|
}
|
|
12974
12924
|
};
|
|
12975
12925
|
__decorateClass$4([
|
|
12976
|
-
property({ default: 1 })
|
|
12926
|
+
modernIdoc.property({ default: 1 })
|
|
12977
12927
|
], exports.Scaler.prototype, "value", 2);
|
|
12978
12928
|
__decorateClass$4([
|
|
12979
|
-
property({ default: 0.05 })
|
|
12929
|
+
modernIdoc.property({ default: 0.05 })
|
|
12980
12930
|
], exports.Scaler.prototype, "minValue", 2);
|
|
12981
12931
|
__decorateClass$4([
|
|
12982
|
-
property({ default: 10 })
|
|
12932
|
+
modernIdoc.property({ default: 10 })
|
|
12983
12933
|
], exports.Scaler.prototype, "maxValue", 2);
|
|
12984
12934
|
exports.Scaler = __decorateClass$4([
|
|
12985
12935
|
customNode("Scaler", {
|
|
@@ -13591,9 +13541,26 @@ class Assets {
|
|
|
13591
13541
|
return fetch(url);
|
|
13592
13542
|
}
|
|
13593
13543
|
_fixSVG(dataURI) {
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13544
|
+
let xml;
|
|
13545
|
+
if (dataURI.includes(";base64,")) {
|
|
13546
|
+
xml = atob(dataURI.split(",")[1]);
|
|
13547
|
+
} else {
|
|
13548
|
+
xml = decodeURIComponent(dataURI.split(",")[1]);
|
|
13549
|
+
}
|
|
13550
|
+
const svg = new DOMParser().parseFromString(xml, "image/svg+xml").documentElement;
|
|
13551
|
+
const width = svg.getAttribute("width");
|
|
13552
|
+
const height = svg.getAttribute("height");
|
|
13553
|
+
const isValidWidth = width && /^[\d.]+$/.test(width);
|
|
13554
|
+
const isValidHeight = height && /^[\d.]+$/.test(height);
|
|
13555
|
+
if (!isValidWidth || !isValidHeight) {
|
|
13556
|
+
const viewBox = svg.getAttribute("viewBox")?.split(" ").map((v) => Number(v));
|
|
13557
|
+
if (!isValidWidth) {
|
|
13558
|
+
svg.setAttribute("width", String(viewBox ? viewBox[2] - viewBox[0] : 512));
|
|
13559
|
+
}
|
|
13560
|
+
if (!isValidHeight) {
|
|
13561
|
+
svg.setAttribute("height", String(viewBox ? viewBox[3] - viewBox[1] : 512));
|
|
13562
|
+
}
|
|
13563
|
+
}
|
|
13597
13564
|
return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg.outerHTML)}`;
|
|
13598
13565
|
}
|
|
13599
13566
|
async fetchImageBitmap(url, options) {
|
|
@@ -13610,7 +13577,7 @@ class Assets {
|
|
|
13610
13577
|
return createImageBitmap(blob, options);
|
|
13611
13578
|
});
|
|
13612
13579
|
} else {
|
|
13613
|
-
if (url.startsWith("data:image/svg+xml;
|
|
13580
|
+
if (url.startsWith("data:image/svg+xml;")) {
|
|
13614
13581
|
url = this._fixSVG(url);
|
|
13615
13582
|
}
|
|
13616
13583
|
return new Promise((resolve) => {
|
|
@@ -13688,7 +13655,7 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13688
13655
|
style: {
|
|
13689
13656
|
visibility: "hidden",
|
|
13690
13657
|
outlineStyle: "solid",
|
|
13691
|
-
outlineColor:
|
|
13658
|
+
outlineColor: "#00FF00FF",
|
|
13692
13659
|
outlineWidth: 2,
|
|
13693
13660
|
pointerEvents: "none"
|
|
13694
13661
|
}
|
|
@@ -13725,7 +13692,7 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13725
13692
|
style: {
|
|
13726
13693
|
width: 500,
|
|
13727
13694
|
height: 500,
|
|
13728
|
-
backgroundColor:
|
|
13695
|
+
backgroundColor: "#FFFFFFFF",
|
|
13729
13696
|
overflow: "hidden",
|
|
13730
13697
|
pointerEvents: "none",
|
|
13731
13698
|
boxShadow: "2px 2px 2px 1px rgba(0, 0, 0, 0.2)"
|
|
@@ -14085,6 +14052,7 @@ async function task(options) {
|
|
|
14085
14052
|
engine.resize(width, height, true);
|
|
14086
14053
|
(Array.isArray(data) ? data : [data]).forEach((v) => {
|
|
14087
14054
|
if (v instanceof exports.Node) {
|
|
14055
|
+
v.parent = void 0;
|
|
14088
14056
|
engine.root.appendChild(v);
|
|
14089
14057
|
} else {
|
|
14090
14058
|
engine.root.appendChild(exports.Node.parse(v));
|
|
@@ -14227,14 +14195,12 @@ exports.curves = curves;
|
|
|
14227
14195
|
exports.customNode = customNode;
|
|
14228
14196
|
exports.customNodes = customNodes;
|
|
14229
14197
|
exports.defaultOptions = defaultOptions;
|
|
14230
|
-
exports.defineProperty = defineProperty;
|
|
14231
14198
|
exports.determineCrossOrigin = determineCrossOrigin;
|
|
14232
14199
|
exports.ease = ease;
|
|
14233
14200
|
exports.easeIn = easeIn;
|
|
14234
14201
|
exports.easeInOut = easeInOut;
|
|
14235
14202
|
exports.easeOut = easeOut;
|
|
14236
14203
|
exports.frag = frag$1;
|
|
14237
|
-
exports.getDeclarations = getDeclarations;
|
|
14238
14204
|
exports.getDefaultCssPropertyValue = getDefaultCssPropertyValue;
|
|
14239
14205
|
exports.isCanvasElement = isCanvasElement;
|
|
14240
14206
|
exports.isElementNode = isElementNode;
|
|
@@ -14253,7 +14219,6 @@ exports.parseCSSTransform = parseCSSTransform;
|
|
|
14253
14219
|
exports.parseCSSTransformOrigin = parseCSSTransformOrigin;
|
|
14254
14220
|
exports.parseCssFunctions = parseCssFunctions;
|
|
14255
14221
|
exports.parseCssProperty = parseCssProperty;
|
|
14256
|
-
exports.property = property;
|
|
14257
14222
|
exports.protectedProperty = protectedProperty;
|
|
14258
14223
|
exports.render = render;
|
|
14259
14224
|
exports.timingFunctions = timingFunctions;
|