@antv/g-lite 2.0.8 → 2.0.10-alpha.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/dist/Canvas.d.ts +0 -1
- package/dist/css/cssom/CSSMathOperator.d.ts +1 -1
- package/dist/css/cssom/CSSNumericValue.d.ts +0 -1
- package/dist/css/cssom/CSSStyleValue.d.ts +3 -3
- package/dist/css/parser/transform.d.ts +3 -2
- package/dist/display-objects/HTML.d.ts +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +220 -139
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +220 -138
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/plugins/PrepareRendererPlugin.d.ts +0 -1
- package/dist/preset.d.ts +1 -0
- package/dist/services/RenderingService.d.ts +6 -1
- package/dist/services/SceneGraphService.d.ts +3 -1
- package/dist/services/aabb/HTMLUpdater.d.ts +10 -0
- package/dist/services/aabb/index.d.ts +1 -0
- package/dist/services/interfaces.d.ts +1 -1
- package/dist/types.d.ts +61 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { glMatrix, mat4, vec4, vec3, mat3, quat as quat$1, vec2 } from 'gl-matrix';
|
|
1
2
|
import { __assign, __read, __extends, __spreadArray, __awaiter, __generator, __values, __rest } from 'tslib';
|
|
2
3
|
import EventEmitter from 'eventemitter3';
|
|
3
|
-
import { mat4, vec4, vec3, mat3, quat as quat$1, vec2 } from 'gl-matrix';
|
|
4
4
|
import { isNumber, distanceSquareRoot, isString, isNil, clamp, getTotalLength, min, max, isNumberEqual, mod, normalizePath, path2Curve, equalizeSegments, getDrawDirection, reverseCurve, clonePath, getRotatedCurve, isUndefined, isArray, isBoolean, isObject, getPointAtLength } from '@antv/util';
|
|
5
5
|
import * as d3 from 'd3-color';
|
|
6
6
|
import { polylineLength, arcBox, cubicBox, quadBox, linePointAt, lineLength } from '@antv/g-math';
|
|
7
7
|
|
|
8
|
+
glMatrix.setMatrixArrayType(Array);
|
|
9
|
+
|
|
8
10
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
11
|
|
|
10
12
|
var rbush = {exports: {}};
|
|
@@ -641,7 +643,7 @@ var AbstractRenderer = /** @class */ (function () {
|
|
|
641
643
|
/**
|
|
642
644
|
* enable dirty rectangle rendering by default
|
|
643
645
|
*/
|
|
644
|
-
enableDirtyRectangleRendering: true, enableDirtyRectangleRenderingDebug: false, enableSizeAttenuation: true }, config);
|
|
646
|
+
enableDirtyRectangleRendering: true, enableDirtyRectangleRenderingDebug: false, enableSizeAttenuation: true, imageSmoothingEnabled: true, imageSmoothingQuality: 'high' }, config);
|
|
645
647
|
}
|
|
646
648
|
AbstractRenderer.prototype.registerPlugin = function (plugin) {
|
|
647
649
|
var index = this.plugins.findIndex(function (p) { return p === plugin; });
|
|
@@ -3106,25 +3108,25 @@ var CSSUnitValue = /** @class */ (function (_super) {
|
|
|
3106
3108
|
case UnitType.kSeconds:
|
|
3107
3109
|
// case UnitType.kHertz:
|
|
3108
3110
|
// case UnitType.kKilohertz:
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
}
|
|
3120
|
-
else {
|
|
3121
|
-
text = value + (unit_1 || '');
|
|
3122
|
-
}
|
|
3111
|
+
// case UnitType.kContainerMax: { // case UnitType.kContainerMin: // case UnitType.kContainerBlockSize: // case UnitType.kContainerInlineSize: // case UnitType.kContainerHeight: // case UnitType.kContainerWidth: // case UnitType.kDynamicViewportMax: // case UnitType.kDynamicViewportMin: // case UnitType.kDynamicViewportBlockSize: // case UnitType.kDynamicViewportInlineSize: // case UnitType.kDynamicViewportHeight: // case UnitType.kDynamicViewportWidth: // case UnitType.kLargeViewportMax: // case UnitType.kLargeViewportMin: // case UnitType.kLargeViewportBlockSize: // case UnitType.kLargeViewportInlineSize: // case UnitType.kLargeViewportHeight: // case UnitType.kLargeViewportWidth: // case UnitType.kSmallViewportMax: // case UnitType.kSmallViewportMin: // case UnitType.kSmallViewportBlockSize: // case UnitType.kSmallViewportInlineSize: // case UnitType.kSmallViewportHeight: // case UnitType.kSmallViewportWidth: // case UnitType.kViewportMax: // case UnitType.kViewportMin: // case UnitType.kViewportBlockSize: // case UnitType.kViewportInlineSize: // case UnitType.kViewportHeight: // case UnitType.kViewportWidth: // case UnitType.kFraction:
|
|
3112
|
+
case UnitType.kTurns: {
|
|
3113
|
+
var kMinInteger = -999999;
|
|
3114
|
+
var kMaxInteger = 999999;
|
|
3115
|
+
var value = this.value;
|
|
3116
|
+
var unit = unitTypeToString(this.unit);
|
|
3117
|
+
if (value < kMinInteger || value > kMaxInteger) {
|
|
3118
|
+
var unit_1 = unitTypeToString(this.unit);
|
|
3119
|
+
if (!Number.isFinite(value) || Number.isNaN(value)) {
|
|
3120
|
+
text = formatInfinityOrNaN(value, unit_1);
|
|
3123
3121
|
}
|
|
3124
3122
|
else {
|
|
3125
|
-
text =
|
|
3123
|
+
text = value + (unit_1 || '');
|
|
3126
3124
|
}
|
|
3127
3125
|
}
|
|
3126
|
+
else {
|
|
3127
|
+
text = "".concat(value).concat(unit);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3128
3130
|
}
|
|
3129
3131
|
result += text;
|
|
3130
3132
|
return result;
|
|
@@ -3132,7 +3134,6 @@ var CSSUnitValue = /** @class */ (function (_super) {
|
|
|
3132
3134
|
return CSSUnitValue;
|
|
3133
3135
|
}(CSSStyleValue));
|
|
3134
3136
|
var Opx = new CSSUnitValue(0, 'px');
|
|
3135
|
-
new CSSUnitValue(1, 'px');
|
|
3136
3137
|
var Odeg = new CSSUnitValue(0, 'deg');
|
|
3137
3138
|
|
|
3138
3139
|
/**
|
|
@@ -5162,6 +5163,7 @@ function mergePoints(left, right) {
|
|
|
5162
5163
|
}
|
|
5163
5164
|
|
|
5164
5165
|
var _ = null;
|
|
5166
|
+
var TRANSFORM_REGEXP = /\s*(\w+)\(([^)]*)\)/g;
|
|
5165
5167
|
function cast(pattern) {
|
|
5166
5168
|
return function (contents) {
|
|
5167
5169
|
var i = 0;
|
|
@@ -5180,48 +5182,75 @@ var transformFunctions = {
|
|
|
5180
5182
|
matrix: ['NNNNNN', [_, _, 0, 0, _, _, 0, 0, 0, 0, 1, 0, _, _, 0, 1], id],
|
|
5181
5183
|
matrix3d: ['NNNNNNNNNNNNNNNN', id],
|
|
5182
5184
|
rotate: ['A'],
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5185
|
+
rotateX: ['A'],
|
|
5186
|
+
rotateY: ['A'],
|
|
5187
|
+
rotateZ: ['A'],
|
|
5186
5188
|
rotate3d: ['NNNA'],
|
|
5187
5189
|
perspective: ['L'],
|
|
5188
5190
|
scale: ['Nn', cast([_, _, new CSSUnitValue(1)]), id],
|
|
5189
|
-
|
|
5191
|
+
scaleX: [
|
|
5190
5192
|
'N',
|
|
5191
5193
|
cast([_, new CSSUnitValue(1), new CSSUnitValue(1)]),
|
|
5192
5194
|
cast([_, new CSSUnitValue(1)]),
|
|
5193
5195
|
],
|
|
5194
|
-
|
|
5196
|
+
scaleY: [
|
|
5195
5197
|
'N',
|
|
5196
5198
|
cast([new CSSUnitValue(1), _, new CSSUnitValue(1)]),
|
|
5197
5199
|
cast([new CSSUnitValue(1), _]),
|
|
5198
5200
|
],
|
|
5199
|
-
|
|
5201
|
+
scaleZ: ['N', cast([new CSSUnitValue(1), new CSSUnitValue(1), _])],
|
|
5200
5202
|
scale3d: ['NNN', id],
|
|
5201
5203
|
skew: ['Aa', null, id],
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
+
skewX: ['A', null, cast([_, Odeg])],
|
|
5205
|
+
skewY: ['A', null, cast([Odeg, _])],
|
|
5204
5206
|
translate: ['Tt', cast([_, _, Opx]), id],
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5207
|
+
translateX: ['T', cast([_, Opx, Opx]), cast([_, Opx])],
|
|
5208
|
+
translateY: ['T', cast([Opx, _, Opx]), cast([Opx, _])],
|
|
5209
|
+
translateZ: ['L', cast([Opx, Opx, _])],
|
|
5208
5210
|
translate3d: ['TTL', id],
|
|
5209
5211
|
};
|
|
5212
|
+
function parseArrayTransform(transform) {
|
|
5213
|
+
var result = [];
|
|
5214
|
+
var length = transform.length;
|
|
5215
|
+
for (var i = 0; i < length; i++) {
|
|
5216
|
+
var item = transform[i];
|
|
5217
|
+
var name_1 = item[0];
|
|
5218
|
+
var args = item.slice(1);
|
|
5219
|
+
// infer default value
|
|
5220
|
+
if (name_1 === 'translate' || name_1 === 'skew') {
|
|
5221
|
+
if (args.length === 1)
|
|
5222
|
+
args.push(0);
|
|
5223
|
+
}
|
|
5224
|
+
else if (name_1 === 'scale') {
|
|
5225
|
+
if (args.length === 1)
|
|
5226
|
+
args.push(args[0]);
|
|
5227
|
+
}
|
|
5228
|
+
var functionData = transformFunctions[name_1];
|
|
5229
|
+
if (!functionData)
|
|
5230
|
+
return [];
|
|
5231
|
+
var parsedArgs = args.map(function (value) { return getOrCreateUnitValue(value); });
|
|
5232
|
+
result.push({ t: name_1, d: parsedArgs });
|
|
5233
|
+
}
|
|
5234
|
+
return result;
|
|
5235
|
+
}
|
|
5210
5236
|
/**
|
|
5211
5237
|
* none
|
|
5212
5238
|
* scale(1) scale(1, 2)
|
|
5213
5239
|
* scaleX(1)
|
|
5214
5240
|
*/
|
|
5215
|
-
function parseTransform(
|
|
5216
|
-
|
|
5217
|
-
|
|
5241
|
+
function parseTransform(transform) {
|
|
5242
|
+
if (Array.isArray(transform)) {
|
|
5243
|
+
return parseArrayTransform(transform);
|
|
5244
|
+
}
|
|
5245
|
+
transform = (transform || 'none').trim();
|
|
5246
|
+
if (transform === 'none') {
|
|
5218
5247
|
return [];
|
|
5219
5248
|
}
|
|
5220
|
-
var transformRegExp = /\s*(\w+)\(([^)]*)\)/g;
|
|
5221
5249
|
var result = [];
|
|
5222
5250
|
var match;
|
|
5223
5251
|
var prevLastIndex = 0;
|
|
5224
|
-
|
|
5252
|
+
TRANSFORM_REGEXP.lastIndex = 0;
|
|
5253
|
+
while ((match = TRANSFORM_REGEXP.exec(transform))) {
|
|
5225
5254
|
if (match.index !== prevLastIndex) {
|
|
5226
5255
|
return [];
|
|
5227
5256
|
}
|
|
@@ -5268,22 +5297,24 @@ function parseTransform(string) {
|
|
|
5268
5297
|
parsedArgs.push(parsedArg);
|
|
5269
5298
|
}
|
|
5270
5299
|
result.push({ t: functionName, d: parsedArgs }); // { t: scale, d: [1, 2] }
|
|
5271
|
-
if (
|
|
5300
|
+
if (TRANSFORM_REGEXP.lastIndex === transform.length) {
|
|
5272
5301
|
return result;
|
|
5273
5302
|
}
|
|
5274
5303
|
}
|
|
5275
5304
|
return [];
|
|
5276
5305
|
}
|
|
5277
|
-
function parseTransformUnmemoize(
|
|
5278
|
-
|
|
5279
|
-
|
|
5306
|
+
function parseTransformUnmemoize(transform) {
|
|
5307
|
+
if (Array.isArray(transform)) {
|
|
5308
|
+
return parseArrayTransform(transform);
|
|
5309
|
+
}
|
|
5310
|
+
transform = (transform || 'none').trim();
|
|
5311
|
+
if (transform === 'none') {
|
|
5280
5312
|
return [];
|
|
5281
5313
|
}
|
|
5282
|
-
var transformRegExp = /\s*(\w+)\(([^)]*)\)/g;
|
|
5283
5314
|
var result = [];
|
|
5284
5315
|
var match;
|
|
5285
5316
|
var prevLastIndex = 0;
|
|
5286
|
-
while ((match =
|
|
5317
|
+
while ((match = TRANSFORM_REGEXP.exec(transform))) {
|
|
5287
5318
|
if (match.index !== prevLastIndex) {
|
|
5288
5319
|
return [];
|
|
5289
5320
|
}
|
|
@@ -5330,7 +5361,7 @@ function parseTransformUnmemoize(string) {
|
|
|
5330
5361
|
parsedArgs.push(parsedArg);
|
|
5331
5362
|
}
|
|
5332
5363
|
result.push({ t: functionName, d: parsedArgs }); // { t: scale, d: [1, 2] }
|
|
5333
|
-
if (
|
|
5364
|
+
if (TRANSFORM_REGEXP.lastIndex === transform.length) {
|
|
5334
5365
|
return result;
|
|
5335
5366
|
}
|
|
5336
5367
|
}
|
|
@@ -5342,7 +5373,7 @@ function convertItemToMatrix(item) {
|
|
|
5342
5373
|
var z;
|
|
5343
5374
|
var angle;
|
|
5344
5375
|
switch (item.t) {
|
|
5345
|
-
case '
|
|
5376
|
+
case 'rotateX':
|
|
5346
5377
|
angle = deg2rad(convertAngleUnit(item.d[0]));
|
|
5347
5378
|
return [
|
|
5348
5379
|
1,
|
|
@@ -5362,7 +5393,7 @@ function convertItemToMatrix(item) {
|
|
|
5362
5393
|
0,
|
|
5363
5394
|
1,
|
|
5364
5395
|
];
|
|
5365
|
-
case '
|
|
5396
|
+
case 'rotateY':
|
|
5366
5397
|
angle = deg2rad(convertAngleUnit(item.d[0]));
|
|
5367
5398
|
return [
|
|
5368
5399
|
Math.cos(angle),
|
|
@@ -5383,7 +5414,7 @@ function convertItemToMatrix(item) {
|
|
|
5383
5414
|
1,
|
|
5384
5415
|
];
|
|
5385
5416
|
case 'rotate':
|
|
5386
|
-
case '
|
|
5417
|
+
case 'rotateZ':
|
|
5387
5418
|
angle = deg2rad(convertAngleUnit(item.d[0]));
|
|
5388
5419
|
return [
|
|
5389
5420
|
Math.cos(angle),
|
|
@@ -5460,11 +5491,11 @@ function convertItemToMatrix(item) {
|
|
|
5460
5491
|
0,
|
|
5461
5492
|
1,
|
|
5462
5493
|
];
|
|
5463
|
-
case '
|
|
5494
|
+
case 'scaleX':
|
|
5464
5495
|
return [item.d[0].value, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
5465
|
-
case '
|
|
5496
|
+
case 'scaleY':
|
|
5466
5497
|
return [1, 0, 0, 0, 0, item.d[0].value, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
5467
|
-
case '
|
|
5498
|
+
case 'scaleZ':
|
|
5468
5499
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, item.d[0].value, 0, 0, 0, 0, 1];
|
|
5469
5500
|
case 'scale3d':
|
|
5470
5501
|
return [
|
|
@@ -5506,10 +5537,10 @@ function convertItemToMatrix(item) {
|
|
|
5506
5537
|
0,
|
|
5507
5538
|
1,
|
|
5508
5539
|
];
|
|
5509
|
-
case '
|
|
5540
|
+
case 'skewX':
|
|
5510
5541
|
angle = deg2rad(convertAngleUnit(item.d[0]));
|
|
5511
5542
|
return [1, 0, 0, 0, Math.tan(angle), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
5512
|
-
case '
|
|
5543
|
+
case 'skewY':
|
|
5513
5544
|
angle = deg2rad(convertAngleUnit(item.d[0]));
|
|
5514
5545
|
return [1, Math.tan(angle), 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
5515
5546
|
case 'translate':
|
|
@@ -5517,13 +5548,13 @@ function convertItemToMatrix(item) {
|
|
|
5517
5548
|
x = convertPercentUnit(item.d[0], 0, null) || 0;
|
|
5518
5549
|
y = convertPercentUnit(item.d[1], 0, null) || 0;
|
|
5519
5550
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, 0, 1];
|
|
5520
|
-
case '
|
|
5551
|
+
case 'translateX':
|
|
5521
5552
|
x = convertPercentUnit(item.d[0], 0, null) || 0;
|
|
5522
5553
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, 0, 0, 1];
|
|
5523
|
-
case '
|
|
5554
|
+
case 'translateY':
|
|
5524
5555
|
y = convertPercentUnit(item.d[0], 0, null) || 0;
|
|
5525
5556
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, y, 0, 1];
|
|
5526
|
-
case '
|
|
5557
|
+
case 'translateZ':
|
|
5527
5558
|
z = convertPercentUnit(item.d[0], 0, null) || 0;
|
|
5528
5559
|
return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, z, 1];
|
|
5529
5560
|
case 'translate3d':
|
|
@@ -5764,13 +5795,13 @@ function quat(fromQ, toQ, f) {
|
|
|
5764
5795
|
}
|
|
5765
5796
|
return quat;
|
|
5766
5797
|
}
|
|
5767
|
-
//
|
|
5798
|
+
// scaleX/Y/Z -> scale
|
|
5768
5799
|
function typeTo2D(type) {
|
|
5769
|
-
return type.replace(/[
|
|
5800
|
+
return type.replace(/[XY]/, '');
|
|
5770
5801
|
}
|
|
5771
|
-
//
|
|
5802
|
+
// scaleX/Y/Z -> scale3d
|
|
5772
5803
|
function typeTo3D(type) {
|
|
5773
|
-
return type.replace(/(
|
|
5804
|
+
return type.replace(/(X|Y|Z|3d)?$/, '3d');
|
|
5774
5805
|
}
|
|
5775
5806
|
var isMatrixOrPerspective = function (lt, rt) {
|
|
5776
5807
|
return ((lt === 'perspective' && rt === 'perspective') ||
|
|
@@ -7904,15 +7935,15 @@ function parsedTransformToMat4(transform, object) {
|
|
|
7904
7935
|
];
|
|
7905
7936
|
mat4.fromScaling(tmpMat2, [newScale[0], newScale[1], 1]);
|
|
7906
7937
|
}
|
|
7907
|
-
else if (t === '
|
|
7938
|
+
else if (t === 'scaleX') {
|
|
7908
7939
|
var newScale = (d === null || d === void 0 ? void 0 : d.map(function (s) { return Math.max(s.value, SCALE_EPSILON); })) || [1];
|
|
7909
7940
|
mat4.fromScaling(tmpMat2, [newScale[0], 1, 1]);
|
|
7910
7941
|
}
|
|
7911
|
-
else if (t === '
|
|
7942
|
+
else if (t === 'scaleY') {
|
|
7912
7943
|
var newScale = (d === null || d === void 0 ? void 0 : d.map(function (s) { return Math.max(s.value, SCALE_EPSILON); })) || [1];
|
|
7913
7944
|
mat4.fromScaling(tmpMat2, [1, newScale[0], 1]);
|
|
7914
7945
|
}
|
|
7915
|
-
else if (t === '
|
|
7946
|
+
else if (t === 'scaleZ') {
|
|
7916
7947
|
var newScale = (d === null || d === void 0 ? void 0 : d.map(function (s) { return Math.max(s.value, SCALE_EPSILON); })) || [1];
|
|
7917
7948
|
mat4.fromScaling(tmpMat2, [1, 1, newScale[0]]);
|
|
7918
7949
|
}
|
|
@@ -7930,15 +7961,15 @@ function parsedTransformToMat4(transform, object) {
|
|
|
7930
7961
|
0,
|
|
7931
7962
|
]);
|
|
7932
7963
|
}
|
|
7933
|
-
else if (t === '
|
|
7964
|
+
else if (t === 'translateX') {
|
|
7934
7965
|
var newTranslation = d || [Opx];
|
|
7935
7966
|
mat4.fromTranslation(tmpMat2, [newTranslation[0].value, 0, 0]);
|
|
7936
7967
|
}
|
|
7937
|
-
else if (t === '
|
|
7968
|
+
else if (t === 'translateY') {
|
|
7938
7969
|
var newTranslation = d || [Opx];
|
|
7939
7970
|
mat4.fromTranslation(tmpMat2, [0, newTranslation[0].value, 0]);
|
|
7940
7971
|
}
|
|
7941
|
-
else if (t === '
|
|
7972
|
+
else if (t === 'translateZ') {
|
|
7942
7973
|
var newTranslation = d || [Opx];
|
|
7943
7974
|
mat4.fromTranslation(tmpMat2, [0, 0, newTranslation[0].value]);
|
|
7944
7975
|
}
|
|
@@ -7954,15 +7985,15 @@ function parsedTransformToMat4(transform, object) {
|
|
|
7954
7985
|
var newAngles = d || [Odeg];
|
|
7955
7986
|
mat4.fromZRotation(tmpMat2, deg2rad(convertAngleUnit(newAngles[0])));
|
|
7956
7987
|
}
|
|
7957
|
-
else if (t === '
|
|
7988
|
+
else if (t === 'rotateX') {
|
|
7958
7989
|
var newAngles = d || [Odeg];
|
|
7959
7990
|
mat4.fromXRotation(tmpMat2, deg2rad(convertAngleUnit(newAngles[0])));
|
|
7960
7991
|
}
|
|
7961
|
-
else if (t === '
|
|
7992
|
+
else if (t === 'rotateY') {
|
|
7962
7993
|
var newAngles = d || [Odeg];
|
|
7963
7994
|
mat4.fromYRotation(tmpMat2, deg2rad(convertAngleUnit(newAngles[0])));
|
|
7964
7995
|
}
|
|
7965
|
-
else if (t === '
|
|
7996
|
+
else if (t === 'rotateZ') {
|
|
7966
7997
|
var newAngles = d || [Odeg];
|
|
7967
7998
|
mat4.fromZRotation(tmpMat2, deg2rad(convertAngleUnit(newAngles[0])));
|
|
7968
7999
|
}
|
|
@@ -7978,11 +8009,11 @@ function parsedTransformToMat4(transform, object) {
|
|
|
7978
8009
|
var newSkew = (d === null || d === void 0 ? void 0 : d.map(function (s) { return s.value; })) || [0, 0];
|
|
7979
8010
|
createSkewMatrix(tmpMat2, deg2rad(newSkew[0]), deg2rad(newSkew[1]));
|
|
7980
8011
|
}
|
|
7981
|
-
else if (t === '
|
|
8012
|
+
else if (t === 'skewX') {
|
|
7982
8013
|
var newSkew = (d === null || d === void 0 ? void 0 : d.map(function (s) { return s.value; })) || [0];
|
|
7983
8014
|
createSkewMatrix(tmpMat2, deg2rad(newSkew[0]), 0);
|
|
7984
8015
|
}
|
|
7985
|
-
else if (t === '
|
|
8016
|
+
else if (t === 'skewY') {
|
|
7986
8017
|
var newSkew = (d === null || d === void 0 ? void 0 : d.map(function (s) { return s.value; })) || [0];
|
|
7987
8018
|
createSkewMatrix(tmpMat2, 0, deg2rad(newSkew[0]));
|
|
7988
8019
|
}
|
|
@@ -8341,6 +8372,21 @@ var GroupUpdater = /** @class */ (function () {
|
|
|
8341
8372
|
return GroupUpdater;
|
|
8342
8373
|
}());
|
|
8343
8374
|
|
|
8375
|
+
var HTMLUpdater = /** @class */ (function () {
|
|
8376
|
+
function HTMLUpdater() {
|
|
8377
|
+
}
|
|
8378
|
+
HTMLUpdater.prototype.update = function (parsedStyle, object) {
|
|
8379
|
+
var _a = parsedStyle.x, x = _a === void 0 ? 0 : _a, _b = parsedStyle.y, y = _b === void 0 ? 0 : _b, _c = parsedStyle.width, width = _c === void 0 ? 0 : _c, _d = parsedStyle.height, height = _d === void 0 ? 0 : _d;
|
|
8380
|
+
return {
|
|
8381
|
+
cx: x + width / 2,
|
|
8382
|
+
cy: y + height / 2,
|
|
8383
|
+
hwidth: width / 2,
|
|
8384
|
+
hheight: height / 2,
|
|
8385
|
+
};
|
|
8386
|
+
};
|
|
8387
|
+
return HTMLUpdater;
|
|
8388
|
+
}());
|
|
8389
|
+
|
|
8344
8390
|
function isFederatedEvent(value) {
|
|
8345
8391
|
return !!value.type;
|
|
8346
8392
|
}
|
|
@@ -10057,6 +10103,12 @@ var RenderingService = /** @class */ (function () {
|
|
|
10057
10103
|
*/
|
|
10058
10104
|
rendered: 0,
|
|
10059
10105
|
};
|
|
10106
|
+
/**
|
|
10107
|
+
* frame counter
|
|
10108
|
+
* - 1 - init root container
|
|
10109
|
+
* - 2 - user first frame
|
|
10110
|
+
*/
|
|
10111
|
+
this.frame = 0;
|
|
10060
10112
|
this.zIndexCounter = 0;
|
|
10061
10113
|
this.hooks = {
|
|
10062
10114
|
/**
|
|
@@ -10149,9 +10201,12 @@ var RenderingService = /** @class */ (function () {
|
|
|
10149
10201
|
this.stats.total = 0;
|
|
10150
10202
|
this.stats.rendered = 0;
|
|
10151
10203
|
this.zIndexCounter = 0;
|
|
10204
|
+
this.frame++;
|
|
10152
10205
|
var renderingContext = this.context.renderingContext;
|
|
10153
10206
|
this.globalRuntime.sceneGraphService.syncHierarchy(renderingContext.root);
|
|
10154
|
-
this.
|
|
10207
|
+
if (this.frame > 2) {
|
|
10208
|
+
this.globalRuntime.sceneGraphService.triggerPendingEvents(this.frame === 3 ? renderingContext.root : undefined);
|
|
10209
|
+
}
|
|
10155
10210
|
if (renderingContext.renderReasons.size && this.inited) {
|
|
10156
10211
|
// @ts-ignore
|
|
10157
10212
|
renderingContext.dirtyRectangleRenderingDisabled =
|
|
@@ -10456,6 +10511,19 @@ function markRenderableDirty(e) {
|
|
|
10456
10511
|
}
|
|
10457
10512
|
}
|
|
10458
10513
|
var reparentEvent = new MutationEvent(ElementEvent.REPARENT, null, '', '', '', 0, '', '');
|
|
10514
|
+
var EPSILON = 0.000001;
|
|
10515
|
+
/**
|
|
10516
|
+
* an optimized version of gl-matrix's equals
|
|
10517
|
+
*/
|
|
10518
|
+
function equals(a, b) {
|
|
10519
|
+
var a0 = a[0], a1 = a[1], a2 = a[2];
|
|
10520
|
+
var b0 = b[0], b1 = b[1], b2 = b[2];
|
|
10521
|
+
if (a0 === b0 && a1 === b1 && a2 === b2)
|
|
10522
|
+
return true;
|
|
10523
|
+
return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) &&
|
|
10524
|
+
Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) &&
|
|
10525
|
+
Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)));
|
|
10526
|
+
}
|
|
10459
10527
|
/**
|
|
10460
10528
|
* update transform in scene graph
|
|
10461
10529
|
*
|
|
@@ -10567,7 +10635,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10567
10635
|
translation = vec3.fromValues(translation, y, z);
|
|
10568
10636
|
}
|
|
10569
10637
|
var transform = element.transformable;
|
|
10570
|
-
if (
|
|
10638
|
+
if (equals(translation, vec3.create())) {
|
|
10571
10639
|
return;
|
|
10572
10640
|
}
|
|
10573
10641
|
vec3.transformQuat(translation, translation, transform.localRotation);
|
|
@@ -10592,7 +10660,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10592
10660
|
tmpPosition[0] = position[0];
|
|
10593
10661
|
tmpPosition[1] = position[1];
|
|
10594
10662
|
tmpPosition[2] = position[2] || 0;
|
|
10595
|
-
if (
|
|
10663
|
+
if (equals(_this.getPosition(element), tmpPosition)) {
|
|
10596
10664
|
return;
|
|
10597
10665
|
}
|
|
10598
10666
|
vec3.copy(transform.position, tmpPosition);
|
|
@@ -10622,7 +10690,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10622
10690
|
tmpPosition[0] = position[0];
|
|
10623
10691
|
tmpPosition[1] = position[1];
|
|
10624
10692
|
tmpPosition[2] = position[2] || 0;
|
|
10625
|
-
if (
|
|
10693
|
+
if (equals(transform.localPosition, tmpPosition)) {
|
|
10626
10694
|
return;
|
|
10627
10695
|
}
|
|
10628
10696
|
vec3.copy(transform.localPosition, tmpPosition);
|
|
@@ -10654,7 +10722,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10654
10722
|
if (typeof translation === 'number') {
|
|
10655
10723
|
translation = vec3.set(tmpVec3, translation, y, z);
|
|
10656
10724
|
}
|
|
10657
|
-
if (
|
|
10725
|
+
if (equals(translation, zeroVec3)) {
|
|
10658
10726
|
return;
|
|
10659
10727
|
}
|
|
10660
10728
|
vec3.add(tr, _this.getPosition(element), translation);
|
|
@@ -10685,6 +10753,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10685
10753
|
}
|
|
10686
10754
|
};
|
|
10687
10755
|
};
|
|
10756
|
+
this.eventEntitySet = new Set();
|
|
10688
10757
|
this.displayObjectDependencyMap = new WeakMap();
|
|
10689
10758
|
this.calcLocalTransform = (function () {
|
|
10690
10759
|
var tmpMat = mat4.create();
|
|
@@ -10852,7 +10921,7 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10852
10921
|
if (dirtify === void 0) { dirtify = true; }
|
|
10853
10922
|
var transform = element.transformable;
|
|
10854
10923
|
var updatedScaling = vec3.fromValues(scaling[0], scaling[1], scaling[2] || transform.localScale[2]);
|
|
10855
|
-
if (
|
|
10924
|
+
if (equals(updatedScaling, transform.localScale)) {
|
|
10856
10925
|
return;
|
|
10857
10926
|
}
|
|
10858
10927
|
vec3.copy(transform.localScale, updatedScaling);
|
|
@@ -10894,35 +10963,47 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
10894
10963
|
this.dirtifyWorldInternal(element, transform);
|
|
10895
10964
|
this.dirtifyToRoot(element, true);
|
|
10896
10965
|
};
|
|
10897
|
-
DefaultSceneGraphService.prototype.
|
|
10966
|
+
DefaultSceneGraphService.prototype.triggerEvent = function (element, detail) {
|
|
10967
|
+
if (element.isConnected && !this.eventEntitySet.has(element.entity)) {
|
|
10968
|
+
this.boundsChangedEvent.detail = detail;
|
|
10969
|
+
this.boundsChangedEvent.target = element;
|
|
10970
|
+
if (element.isMutationObserved) {
|
|
10971
|
+
element.dispatchEvent(this.boundsChangedEvent);
|
|
10972
|
+
}
|
|
10973
|
+
else {
|
|
10974
|
+
element.ownerDocument.defaultView.dispatchEvent(this.boundsChangedEvent, true);
|
|
10975
|
+
}
|
|
10976
|
+
this.eventEntitySet.add(element.entity);
|
|
10977
|
+
}
|
|
10978
|
+
};
|
|
10979
|
+
DefaultSceneGraphService.prototype.triggerPendingEvents = function (root) {
|
|
10898
10980
|
var _this = this;
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10981
|
+
if (root) {
|
|
10982
|
+
root.forEach(function (e) {
|
|
10983
|
+
_this.triggerEvent(e, { affectChildren: true });
|
|
10984
|
+
});
|
|
10985
|
+
}
|
|
10986
|
+
else {
|
|
10987
|
+
var events = this.pendingEvents;
|
|
10988
|
+
var length_1 = events.length;
|
|
10989
|
+
var _loop_1 = function (i) {
|
|
10990
|
+
var _a = __read(events[i], 2), element = _a[0], detail = _a[1];
|
|
10991
|
+
if (detail.affectChildren) {
|
|
10992
|
+
element.forEach(function (e) {
|
|
10993
|
+
_this.triggerEvent(e, detail);
|
|
10994
|
+
});
|
|
10906
10995
|
}
|
|
10907
10996
|
else {
|
|
10908
|
-
|
|
10997
|
+
this_1.triggerEvent(element, detail);
|
|
10909
10998
|
}
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
var _b = __read(_a, 2), element = _b[0], detail = _b[1];
|
|
10915
|
-
if (detail.affectChildren) {
|
|
10916
|
-
element.forEach(function (e) {
|
|
10917
|
-
trigger(e, detail);
|
|
10918
|
-
});
|
|
10919
|
-
}
|
|
10920
|
-
else {
|
|
10921
|
-
trigger(element, detail);
|
|
10999
|
+
};
|
|
11000
|
+
var this_1 = this;
|
|
11001
|
+
for (var i = 0; i < length_1; i++) {
|
|
11002
|
+
_loop_1(i);
|
|
10922
11003
|
}
|
|
10923
|
-
}
|
|
11004
|
+
}
|
|
11005
|
+
this.eventEntitySet.clear();
|
|
10924
11006
|
this.clearPendingEvents();
|
|
10925
|
-
set.clear();
|
|
10926
11007
|
};
|
|
10927
11008
|
DefaultSceneGraphService.prototype.clearPendingEvents = function () {
|
|
10928
11009
|
this.pendingEvents = [];
|
|
@@ -11030,9 +11111,9 @@ var DefaultSceneGraphService = /** @class */ (function () {
|
|
|
11030
11111
|
return transform.localTransform;
|
|
11031
11112
|
};
|
|
11032
11113
|
DefaultSceneGraphService.prototype.setLocalTransform = function (element, transform) {
|
|
11033
|
-
var t = mat4.getTranslation(
|
|
11034
|
-
var r = mat4.getRotation(
|
|
11035
|
-
var s = mat4.getScaling(
|
|
11114
|
+
var t = mat4.getTranslation([0, 0, 0], transform);
|
|
11115
|
+
var r = mat4.getRotation([0, 0, 0, 1], transform);
|
|
11116
|
+
var s = mat4.getScaling([0, 0, 0], transform);
|
|
11036
11117
|
this.setLocalScale(element, s, false);
|
|
11037
11118
|
this.setLocalPosition(element, t, false);
|
|
11038
11119
|
this.setLocalRotation(element, r, undefined, undefined, undefined, false);
|
|
@@ -11655,7 +11736,7 @@ var geometryUpdaterFactory = (function () {
|
|
|
11655
11736
|
_a[Shape.POLYLINE] = polylineUpdater,
|
|
11656
11737
|
_a[Shape.POLYGON] = polylineUpdater,
|
|
11657
11738
|
_a[Shape.PATH] = new PathUpdater(),
|
|
11658
|
-
_a[Shape.HTML] =
|
|
11739
|
+
_a[Shape.HTML] = new HTMLUpdater(),
|
|
11659
11740
|
_a[Shape.MESH] = null,
|
|
11660
11741
|
_a;
|
|
11661
11742
|
})();
|
|
@@ -13168,35 +13249,36 @@ var HTML = /** @class */ (function (_super) {
|
|
|
13168
13249
|
/**
|
|
13169
13250
|
* override with $el.getBoundingClientRect
|
|
13170
13251
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
return new Rectangle(x, y, width, height);
|
|
13183
|
-
}
|
|
13184
|
-
};
|
|
13252
|
+
*
|
|
13253
|
+
* ! The calculation logic of the html element should be consistent with that of the canvas element
|
|
13254
|
+
*/
|
|
13255
|
+
// getBoundingClientRect(): Rectangle {
|
|
13256
|
+
// if (this.parsedStyle.$el) {
|
|
13257
|
+
// return this.parsedStyle.$el.getBoundingClientRect();
|
|
13258
|
+
// } else {
|
|
13259
|
+
// const { x, y, width, height } = this.parsedStyle;
|
|
13260
|
+
// return new Rectangle(x, y, width, height);
|
|
13261
|
+
// }
|
|
13262
|
+
// }
|
|
13185
13263
|
HTML.prototype.getClientRects = function () {
|
|
13186
13264
|
return [this.getBoundingClientRect()];
|
|
13187
13265
|
};
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13266
|
+
// getBounds() {
|
|
13267
|
+
// const clientRect = this.getBoundingClientRect();
|
|
13268
|
+
// // calc context's offset
|
|
13269
|
+
// // @ts-ignore
|
|
13270
|
+
// const canvasRect = this.ownerDocument?.defaultView
|
|
13271
|
+
// ?.getContextService()
|
|
13272
|
+
// .getBoundingClientRect();
|
|
13273
|
+
// const aabb = new AABB();
|
|
13274
|
+
// const minX = clientRect.left - (canvasRect?.left || 0);
|
|
13275
|
+
// const minY = clientRect.top - (canvasRect?.top || 0);
|
|
13276
|
+
// aabb.setMinMax(
|
|
13277
|
+
// [minX, minY, 0],
|
|
13278
|
+
// [minX + clientRect.width, minY + clientRect.height, 0],
|
|
13279
|
+
// );
|
|
13280
|
+
// return aabb;
|
|
13281
|
+
// }
|
|
13200
13282
|
HTML.prototype.getLocalBounds = function () {
|
|
13201
13283
|
if (this.parentNode) {
|
|
13202
13284
|
var parentInvert = mat4.invert(mat4.create(), this.parentNode.getWorldTransform());
|
|
@@ -14783,7 +14865,6 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14783
14865
|
* sync to RBush later
|
|
14784
14866
|
*/
|
|
14785
14867
|
this.toSync = new Set();
|
|
14786
|
-
this.isFirstTimeRendering = true;
|
|
14787
14868
|
this.syncing = false;
|
|
14788
14869
|
this.isFirstTimeRenderingFinished = false;
|
|
14789
14870
|
}
|
|
@@ -14853,8 +14934,9 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14853
14934
|
});
|
|
14854
14935
|
var ric = (_a = runtime.globalThis.requestIdleCallback) !== null && _a !== void 0 ? _a : raf.bind(runtime.globalThis);
|
|
14855
14936
|
renderingService.hooks.endFrame.tap(PrepareRendererPlugin.tag, function () {
|
|
14856
|
-
|
|
14857
|
-
|
|
14937
|
+
var frame = context.renderingService.frame;
|
|
14938
|
+
if (frame === 1) ;
|
|
14939
|
+
else if (frame === 2) {
|
|
14858
14940
|
_this.syncing = true;
|
|
14859
14941
|
ric(function () {
|
|
14860
14942
|
_this.syncRTree(true);
|
|
@@ -14875,13 +14957,12 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14875
14957
|
this.syncing = true;
|
|
14876
14958
|
// bounds changed, need re-inserting its children
|
|
14877
14959
|
var bulk = [];
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
.forEach(function (node) {
|
|
14960
|
+
this.toSync.forEach(function (node) {
|
|
14961
|
+
if (node.isConnected)
|
|
14962
|
+
return;
|
|
14882
14963
|
var rBushNode = node.rBushNode;
|
|
14883
14964
|
// clear dirty node
|
|
14884
|
-
if (rBushNode
|
|
14965
|
+
if (rBushNode === null || rBushNode === void 0 ? void 0 : rBushNode.aabb) {
|
|
14885
14966
|
_this.rBush.remove(rBushNode.aabb);
|
|
14886
14967
|
}
|
|
14887
14968
|
var renderBounds = node.getRenderBounds();
|
|
@@ -15288,13 +15369,13 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15288
15369
|
});
|
|
15289
15370
|
}
|
|
15290
15371
|
};
|
|
15291
|
-
Canvas.prototype.initRenderingService = function (renderer,
|
|
15372
|
+
Canvas.prototype.initRenderingService = function (renderer, firstContentfulPaint, async) {
|
|
15292
15373
|
var _this = this;
|
|
15293
|
-
if (
|
|
15374
|
+
if (firstContentfulPaint === void 0) { firstContentfulPaint = false; }
|
|
15294
15375
|
if (async === void 0) { async = false; }
|
|
15295
15376
|
this.context.renderingService.init(function () {
|
|
15296
15377
|
_this.inited = true;
|
|
15297
|
-
if (
|
|
15378
|
+
if (firstContentfulPaint) {
|
|
15298
15379
|
if (async) {
|
|
15299
15380
|
_this.requestAnimationFrame(function () {
|
|
15300
15381
|
_this.dispatchEvent(new CustomEvent(CanvasEvent.READY));
|
|
@@ -15310,7 +15391,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15310
15391
|
if (_this.readyPromise) {
|
|
15311
15392
|
_this.resolveReadyPromise();
|
|
15312
15393
|
}
|
|
15313
|
-
if (!
|
|
15394
|
+
if (!firstContentfulPaint) {
|
|
15314
15395
|
_this.getRoot().forEach(function (node) {
|
|
15315
15396
|
var renderable = node.renderable;
|
|
15316
15397
|
if (renderable) {
|
|
@@ -15442,5 +15523,5 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15442
15523
|
return Canvas;
|
|
15443
15524
|
}(EventTarget));
|
|
15444
15525
|
|
|
15445
|
-
export { AABB, AbstractRenderer, AbstractRendererPlugin, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasEvent, Circle, CircleUpdater, ClipSpaceNearZ, CustomElement, CustomElementRegistry, CustomEvent, DefaultSceneGraphSelector, DefaultSceneGraphService, DisplayObject, Document, ERROR_MSG_METHOD_NOT_IMPLEMENTED, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Frustum, GradientType, Group, GroupUpdater, HTML, Image, Line, LineUpdater, Mask, MutationEvent, Node, OffscreenCanvasCreator, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertySyntax, RBush, Rect, RectUpdater, Rectangle, RenderReason, RenderingService, Shape, SortReason, Strategy, Text, TextService, TextUpdater, UnitType, computeLinearGradient, computeRadialGradient, convertToPath, createVec3, decompose, definedProps, deg2rad, deg2turn, findClosestClipPathTarget, fromRotationTranslationScale, getAngle, getEuler, getOrCalculatePathTotalLength, grad2deg, isBrowser, isCSSGradientValue, isCSSRGB, isCanvas, isDisplayObject, isFederatedEvent, isFillOrStrokeAffected, isPattern, mergeColors, parseColor, parseLength, parsePath, parseTransform, parsedTransformToMat4, propertyMetadataCache, rad2deg, resetEntityCounter, runtime, setDOMSize, translatePathToString, turn2deg };
|
|
15526
|
+
export { AABB, AbstractRenderer, AbstractRendererPlugin, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasEvent, Circle, CircleUpdater, ClipSpaceNearZ, CustomElement, CustomElementRegistry, CustomEvent, DefaultSceneGraphSelector, DefaultSceneGraphService, DisplayObject, Document, ERROR_MSG_METHOD_NOT_IMPLEMENTED, Element, ElementEvent, Ellipse, EllipseUpdater, EventService, EventTarget, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Frustum, GradientType, Group, GroupUpdater, HTML, HTMLUpdater, Image, Line, LineUpdater, Mask, MutationEvent, Node, OffscreenCanvasCreator, Path, PathUpdater, Plane, Point, Polygon, Polyline, PolylineUpdater, PropertySyntax, RBush, Rect, RectUpdater, Rectangle, RenderReason, RenderingService, Shape, SortReason, Strategy, Text, TextService, TextUpdater, UnitType, computeLinearGradient, computeRadialGradient, convertToPath, createVec3, decompose, definedProps, deg2rad, deg2turn, findClosestClipPathTarget, fromRotationTranslationScale, getAngle, getEuler, getOrCalculatePathTotalLength, grad2deg, isBrowser, isCSSGradientValue, isCSSRGB, isCanvas, isDisplayObject, isFederatedEvent, isFillOrStrokeAffected, isPattern, mergeColors, parseColor, parseLength, parsePath, parseTransform, parsedTransformToMat4, propertyMetadataCache, rad2deg, resetEntityCounter, runtime, setDOMSize, translatePathToString, turn2deg };
|
|
15446
15527
|
//# sourceMappingURL=index.esm.js.map
|