@antv/g-lite 1.1.0-beta.1 → 1.1.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/index.esm.js +119 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +119 -122
- 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/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6558,8 +6558,7 @@ var DefaultStyleValueRegistry = /** @class */ (function () {
|
|
|
6558
6558
|
// Marker
|
|
6559
6559
|
// @ts-ignore
|
|
6560
6560
|
if (attributes.markerStart) {
|
|
6561
|
-
|
|
6562
|
-
object.parsedStyle.markerStart = runtime.CSSPropertySyntaxFactory['<marker>'].calculator(null,
|
|
6561
|
+
object.parsedStyle.markerStart = this.runtime.CSSPropertySyntaxFactory['<marker>'].calculator(null,
|
|
6563
6562
|
// @ts-ignore
|
|
6564
6563
|
attributes.markerStart,
|
|
6565
6564
|
// @ts-ignore
|
|
@@ -6567,8 +6566,7 @@ var DefaultStyleValueRegistry = /** @class */ (function () {
|
|
|
6567
6566
|
}
|
|
6568
6567
|
// @ts-ignore
|
|
6569
6568
|
if (attributes.markerEnd) {
|
|
6570
|
-
|
|
6571
|
-
object.parsedStyle.markerEnd = runtime.CSSPropertySyntaxFactory['<marker>'].calculator(null,
|
|
6569
|
+
object.parsedStyle.markerEnd = this.runtime.CSSPropertySyntaxFactory['<marker>'].calculator(null,
|
|
6572
6570
|
// @ts-ignore
|
|
6573
6571
|
attributes.markerEnd,
|
|
6574
6572
|
// @ts-ignore
|
|
@@ -6576,8 +6574,7 @@ var DefaultStyleValueRegistry = /** @class */ (function () {
|
|
|
6576
6574
|
}
|
|
6577
6575
|
// @ts-ignore
|
|
6578
6576
|
if (attributes.markerMid) {
|
|
6579
|
-
|
|
6580
|
-
object.parsedStyle.markerMid = runtime.CSSPropertySyntaxFactory['<marker>'].calculator('',
|
|
6577
|
+
object.parsedStyle.markerMid = this.runtime.CSSPropertySyntaxFactory['<marker>'].calculator('',
|
|
6581
6578
|
// @ts-ignore
|
|
6582
6579
|
attributes.markerMid,
|
|
6583
6580
|
// @ts-ignore
|
|
@@ -11494,7 +11491,7 @@ var TextService = /** @class */ (function () {
|
|
|
11494
11491
|
return TextService;
|
|
11495
11492
|
}());
|
|
11496
11493
|
|
|
11497
|
-
var runtime
|
|
11494
|
+
var runtime = {};
|
|
11498
11495
|
/**
|
|
11499
11496
|
* Replace with IoC container
|
|
11500
11497
|
*/
|
|
@@ -11509,7 +11506,7 @@ var geometryUpdaterFactory = (function () {
|
|
|
11509
11506
|
_a[Shape.IMAGE] = rectUpdater,
|
|
11510
11507
|
_a[Shape.GROUP] = rectUpdater,
|
|
11511
11508
|
_a[Shape.LINE] = new LineUpdater(),
|
|
11512
|
-
_a[Shape.TEXT] = new TextUpdater(runtime
|
|
11509
|
+
_a[Shape.TEXT] = new TextUpdater(runtime),
|
|
11513
11510
|
_a[Shape.POLYLINE] = polylineUpdater,
|
|
11514
11511
|
_a[Shape.POLYGON] = polylineUpdater,
|
|
11515
11512
|
_a[Shape.PATH] = new PathUpdater(),
|
|
@@ -11566,25 +11563,25 @@ var getGlobalThis = function () {
|
|
|
11566
11563
|
* Camera
|
|
11567
11564
|
* `g-camera-api` will provide an advanced implementation
|
|
11568
11565
|
*/
|
|
11569
|
-
runtime
|
|
11566
|
+
runtime.CameraContribution = Camera;
|
|
11570
11567
|
/**
|
|
11571
11568
|
* `g-web-animations-api` will provide an AnimationTimeline
|
|
11572
11569
|
*/
|
|
11573
|
-
runtime
|
|
11574
|
-
runtime
|
|
11575
|
-
runtime
|
|
11576
|
-
runtime
|
|
11577
|
-
runtime
|
|
11578
|
-
runtime
|
|
11579
|
-
runtime
|
|
11580
|
-
runtime
|
|
11581
|
-
runtime
|
|
11582
|
-
runtime
|
|
11583
|
-
runtime
|
|
11584
|
-
runtime
|
|
11585
|
-
runtime
|
|
11586
|
-
runtime
|
|
11587
|
-
runtime
|
|
11570
|
+
runtime.AnimationTimeline = null;
|
|
11571
|
+
runtime.EasingFunction = null;
|
|
11572
|
+
runtime.offscreenCanvas = new OffscreenCanvasCreator();
|
|
11573
|
+
runtime.nativeHTMLMap = new WeakMap();
|
|
11574
|
+
runtime.sceneGraphSelector = new DefaultSceneGraphSelector();
|
|
11575
|
+
runtime.sceneGraphService = new DefaultSceneGraphService(runtime);
|
|
11576
|
+
runtime.textService = new TextService(runtime);
|
|
11577
|
+
runtime.geometryUpdaterFactory = geometryUpdaterFactory;
|
|
11578
|
+
runtime.CSSPropertySyntaxFactory = CSSPropertySyntaxFactory;
|
|
11579
|
+
runtime.styleValueRegistry = new DefaultStyleValueRegistry(runtime);
|
|
11580
|
+
runtime.layoutRegistry = null;
|
|
11581
|
+
runtime.globalThis = getGlobalThis();
|
|
11582
|
+
runtime.enableCSSParsing = true;
|
|
11583
|
+
runtime.enableDataset = false;
|
|
11584
|
+
runtime.enableStyleSyntax = true;
|
|
11588
11585
|
|
|
11589
11586
|
var entityCounter = 0;
|
|
11590
11587
|
function resetEntityCounter() {
|
|
@@ -11672,7 +11669,7 @@ var Element = /** @class */ (function (_super) {
|
|
|
11672
11669
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style
|
|
11673
11670
|
*/
|
|
11674
11671
|
_this.style = {};
|
|
11675
|
-
_this.computedStyle = runtime
|
|
11672
|
+
_this.computedStyle = runtime.enableCSSParsing
|
|
11676
11673
|
? {
|
|
11677
11674
|
anchor: unsetKeywordValue,
|
|
11678
11675
|
opacity: unsetKeywordValue,
|
|
@@ -11827,7 +11824,7 @@ var Element = /** @class */ (function (_super) {
|
|
|
11827
11824
|
if (child.destroyed) {
|
|
11828
11825
|
throw new Error(ERROR_MSG_APPEND_DESTROYED_ELEMENT);
|
|
11829
11826
|
}
|
|
11830
|
-
runtime
|
|
11827
|
+
runtime.sceneGraphService.attach(child, this, index);
|
|
11831
11828
|
if ((_a = this.ownerDocument) === null || _a === void 0 ? void 0 : _a.defaultView) {
|
|
11832
11829
|
this.ownerDocument.defaultView.mountChildren(child);
|
|
11833
11830
|
}
|
|
@@ -11860,7 +11857,7 @@ var Element = /** @class */ (function (_super) {
|
|
|
11860
11857
|
child.ownerDocument.defaultView.unmountChildren(child);
|
|
11861
11858
|
}
|
|
11862
11859
|
// remove from scene graph
|
|
11863
|
-
runtime
|
|
11860
|
+
runtime.sceneGraphService.detach(child);
|
|
11864
11861
|
return child;
|
|
11865
11862
|
};
|
|
11866
11863
|
/**
|
|
@@ -11888,25 +11885,25 @@ var Element = /** @class */ (function (_super) {
|
|
|
11888
11885
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/matches
|
|
11889
11886
|
*/
|
|
11890
11887
|
Element.prototype.matches = function (selector) {
|
|
11891
|
-
return runtime
|
|
11888
|
+
return runtime.sceneGraphService.matches(selector, this);
|
|
11892
11889
|
};
|
|
11893
11890
|
Element.prototype.getElementById = function (id) {
|
|
11894
|
-
return runtime
|
|
11891
|
+
return runtime.sceneGraphService.querySelector("#".concat(id), this);
|
|
11895
11892
|
};
|
|
11896
11893
|
Element.prototype.getElementsByName = function (name) {
|
|
11897
|
-
return runtime
|
|
11894
|
+
return runtime.sceneGraphService.querySelectorAll("[name=\"".concat(name, "\"]"), this);
|
|
11898
11895
|
};
|
|
11899
11896
|
Element.prototype.getElementsByClassName = function (className) {
|
|
11900
|
-
return runtime
|
|
11897
|
+
return runtime.sceneGraphService.querySelectorAll(".".concat(className), this);
|
|
11901
11898
|
};
|
|
11902
11899
|
Element.prototype.getElementsByTagName = function (tagName) {
|
|
11903
|
-
return runtime
|
|
11900
|
+
return runtime.sceneGraphService.querySelectorAll(tagName, this);
|
|
11904
11901
|
};
|
|
11905
11902
|
Element.prototype.querySelector = function (selectors) {
|
|
11906
|
-
return runtime
|
|
11903
|
+
return runtime.sceneGraphService.querySelector(selectors, this);
|
|
11907
11904
|
};
|
|
11908
11905
|
Element.prototype.querySelectorAll = function (selectors) {
|
|
11909
|
-
return runtime
|
|
11906
|
+
return runtime.sceneGraphService.querySelectorAll(selectors, this);
|
|
11910
11907
|
};
|
|
11911
11908
|
/**
|
|
11912
11909
|
* should traverses the element and its parents (heading toward the document root)
|
|
@@ -11917,7 +11914,7 @@ var Element = /** @class */ (function (_super) {
|
|
|
11917
11914
|
Element.prototype.closest = function (selectors) {
|
|
11918
11915
|
var el = this;
|
|
11919
11916
|
do {
|
|
11920
|
-
if (runtime
|
|
11917
|
+
if (runtime.sceneGraphService.matches(selectors, el))
|
|
11921
11918
|
return el;
|
|
11922
11919
|
el = el.parentElement;
|
|
11923
11920
|
} while (el !== null);
|
|
@@ -12043,22 +12040,22 @@ var Element = /** @class */ (function (_super) {
|
|
|
12043
12040
|
this.destroyed = true;
|
|
12044
12041
|
};
|
|
12045
12042
|
Element.prototype.getGeometryBounds = function () {
|
|
12046
|
-
return runtime
|
|
12043
|
+
return runtime.sceneGraphService.getGeometryBounds(this);
|
|
12047
12044
|
};
|
|
12048
12045
|
Element.prototype.getRenderBounds = function () {
|
|
12049
|
-
return runtime
|
|
12046
|
+
return runtime.sceneGraphService.getBounds(this, true);
|
|
12050
12047
|
};
|
|
12051
12048
|
/**
|
|
12052
12049
|
* get bounds in world space, account for children
|
|
12053
12050
|
*/
|
|
12054
12051
|
Element.prototype.getBounds = function () {
|
|
12055
|
-
return runtime
|
|
12052
|
+
return runtime.sceneGraphService.getBounds(this);
|
|
12056
12053
|
};
|
|
12057
12054
|
/**
|
|
12058
12055
|
* get bounds in local space, account for children
|
|
12059
12056
|
*/
|
|
12060
12057
|
Element.prototype.getLocalBounds = function () {
|
|
12061
|
-
return runtime
|
|
12058
|
+
return runtime.sceneGraphService.getLocalBounds(this);
|
|
12062
12059
|
};
|
|
12063
12060
|
/**
|
|
12064
12061
|
* account for context's bounds in client space,
|
|
@@ -12066,7 +12063,7 @@ var Element = /** @class */ (function (_super) {
|
|
|
12066
12063
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
|
|
12067
12064
|
*/
|
|
12068
12065
|
Element.prototype.getBoundingClientRect = function () {
|
|
12069
|
-
return runtime
|
|
12066
|
+
return runtime.sceneGraphService.getBoundingClientRect(this);
|
|
12070
12067
|
};
|
|
12071
12068
|
/**
|
|
12072
12069
|
* @see https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getClientRects
|
|
@@ -12093,14 +12090,14 @@ var Element = /** @class */ (function (_super) {
|
|
|
12093
12090
|
Element.prototype.getAttribute = function (name) {
|
|
12094
12091
|
// @see https://github.com/antvis/G/issues/1267
|
|
12095
12092
|
if (isSymbol(name)) {
|
|
12096
|
-
return runtime
|
|
12093
|
+
return runtime.enableCSSParsing ? null : undefined;
|
|
12097
12094
|
}
|
|
12098
12095
|
var value = this.attributes[name];
|
|
12099
12096
|
if (value === undefined) {
|
|
12100
12097
|
var attributeName = formatAttributeName(name);
|
|
12101
12098
|
value = this.attributes[attributeName];
|
|
12102
12099
|
// if the given attribute does not exist, the value returned will either be null or ""
|
|
12103
|
-
return runtime
|
|
12100
|
+
return runtime.enableCSSParsing ? (isNil(value) ? null : value) : value;
|
|
12104
12101
|
}
|
|
12105
12102
|
else {
|
|
12106
12103
|
return value;
|
|
@@ -12297,18 +12294,18 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12297
12294
|
_this.config.interactive === false ? 'none' : 'auto';
|
|
12298
12295
|
}
|
|
12299
12296
|
// merge parsed value
|
|
12300
|
-
Object.assign(_this.parsedStyle, runtime
|
|
12297
|
+
Object.assign(_this.parsedStyle, runtime.enableCSSParsing
|
|
12301
12298
|
? DEFAULT_PARSED_STYLE_PROPS
|
|
12302
12299
|
: DEFAULT_PARSED_STYLE_PROPS_CSS_DISABLED, _this.config.initialParsedStyle);
|
|
12303
|
-
if (runtime
|
|
12300
|
+
if (runtime.enableCSSParsing) {
|
|
12304
12301
|
Object.assign(_this.attributes, DEFAULT_STYLE_PROPS);
|
|
12305
12302
|
}
|
|
12306
12303
|
// start to process attributes
|
|
12307
12304
|
_this.initAttributes(_this.config.style);
|
|
12308
|
-
var Proxy = runtime
|
|
12309
|
-
? runtime
|
|
12305
|
+
var Proxy = runtime.globalThis.Proxy
|
|
12306
|
+
? runtime.globalThis.Proxy
|
|
12310
12307
|
: function () { };
|
|
12311
|
-
if (runtime
|
|
12308
|
+
if (runtime.enableDataset) {
|
|
12312
12309
|
_this.dataset = new Proxy({}, {
|
|
12313
12310
|
get: function (target, name) {
|
|
12314
12311
|
var formattedName = "".concat(DATASET_PREFIX).concat(kebabize(name));
|
|
@@ -12323,7 +12320,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12323
12320
|
},
|
|
12324
12321
|
});
|
|
12325
12322
|
}
|
|
12326
|
-
if (runtime
|
|
12323
|
+
if (runtime.enableStyleSyntax) {
|
|
12327
12324
|
_this.style = new Proxy(
|
|
12328
12325
|
// @ts-ignore
|
|
12329
12326
|
{
|
|
@@ -12420,7 +12417,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12420
12417
|
// ? INHERITABLE_STYLE_PROPS
|
|
12421
12418
|
// : INHERITABLE_BASE_STYLE_PROPS,
|
|
12422
12419
|
};
|
|
12423
|
-
if (runtime
|
|
12420
|
+
if (runtime.enableCSSParsing) {
|
|
12424
12421
|
// @ts-ignore
|
|
12425
12422
|
options.usedAttributes = INHERITABLE_STYLE_PROPS;
|
|
12426
12423
|
}
|
|
@@ -12430,7 +12427,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12430
12427
|
var attributeName = formatAttributeName(name_1);
|
|
12431
12428
|
formattedAttributes[attributeName] = attributes[name_1];
|
|
12432
12429
|
}
|
|
12433
|
-
runtime
|
|
12430
|
+
runtime.styleValueRegistry.processProperties(this, formattedAttributes, options);
|
|
12434
12431
|
// redraw at next frame
|
|
12435
12432
|
renderable.dirty = true;
|
|
12436
12433
|
};
|
|
@@ -12455,7 +12452,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12455
12452
|
var renderable = this.renderable;
|
|
12456
12453
|
var oldValue = this.attributes[name];
|
|
12457
12454
|
var oldParsedValue = this.parsedStyle[name];
|
|
12458
|
-
runtime
|
|
12455
|
+
runtime.styleValueRegistry.processProperties(this, (_a = {},
|
|
12459
12456
|
_a[name] = value,
|
|
12460
12457
|
_a), parseOptions);
|
|
12461
12458
|
// redraw at next frame
|
|
@@ -12498,11 +12495,11 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12498
12495
|
DisplayObject.prototype.setOrigin = function (position, y, z) {
|
|
12499
12496
|
if (y === void 0) { y = 0; }
|
|
12500
12497
|
if (z === void 0) { z = 0; }
|
|
12501
|
-
runtime
|
|
12498
|
+
runtime.sceneGraphService.setOrigin(this, createVec3(position, y, z));
|
|
12502
12499
|
return this;
|
|
12503
12500
|
};
|
|
12504
12501
|
DisplayObject.prototype.getOrigin = function () {
|
|
12505
|
-
return runtime
|
|
12502
|
+
return runtime.sceneGraphService.getOrigin(this);
|
|
12506
12503
|
};
|
|
12507
12504
|
/**
|
|
12508
12505
|
* set position in world space
|
|
@@ -12510,7 +12507,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12510
12507
|
DisplayObject.prototype.setPosition = function (position, y, z) {
|
|
12511
12508
|
if (y === void 0) { y = 0; }
|
|
12512
12509
|
if (z === void 0) { z = 0; }
|
|
12513
|
-
runtime
|
|
12510
|
+
runtime.sceneGraphService.setPosition(this, createVec3(position, y, z));
|
|
12514
12511
|
return this;
|
|
12515
12512
|
};
|
|
12516
12513
|
/**
|
|
@@ -12519,7 +12516,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12519
12516
|
DisplayObject.prototype.setLocalPosition = function (position, y, z) {
|
|
12520
12517
|
if (y === void 0) { y = 0; }
|
|
12521
12518
|
if (z === void 0) { z = 0; }
|
|
12522
|
-
runtime
|
|
12519
|
+
runtime.sceneGraphService.setLocalPosition(this, createVec3(position, y, z));
|
|
12523
12520
|
return this;
|
|
12524
12521
|
};
|
|
12525
12522
|
/**
|
|
@@ -12528,7 +12525,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12528
12525
|
DisplayObject.prototype.translate = function (position, y, z) {
|
|
12529
12526
|
if (y === void 0) { y = 0; }
|
|
12530
12527
|
if (z === void 0) { z = 0; }
|
|
12531
|
-
runtime
|
|
12528
|
+
runtime.sceneGraphService.translate(this, createVec3(position, y, z));
|
|
12532
12529
|
return this;
|
|
12533
12530
|
};
|
|
12534
12531
|
/**
|
|
@@ -12537,14 +12534,14 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12537
12534
|
DisplayObject.prototype.translateLocal = function (position, y, z) {
|
|
12538
12535
|
if (y === void 0) { y = 0; }
|
|
12539
12536
|
if (z === void 0) { z = 0; }
|
|
12540
|
-
runtime
|
|
12537
|
+
runtime.sceneGraphService.translateLocal(this, createVec3(position, y, z));
|
|
12541
12538
|
return this;
|
|
12542
12539
|
};
|
|
12543
12540
|
DisplayObject.prototype.getPosition = function () {
|
|
12544
|
-
return runtime
|
|
12541
|
+
return runtime.sceneGraphService.getPosition(this);
|
|
12545
12542
|
};
|
|
12546
12543
|
DisplayObject.prototype.getLocalPosition = function () {
|
|
12547
|
-
return runtime
|
|
12544
|
+
return runtime.sceneGraphService.getLocalPosition(this);
|
|
12548
12545
|
};
|
|
12549
12546
|
/**
|
|
12550
12547
|
* compatible with G 3.0
|
|
@@ -12563,7 +12560,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12563
12560
|
z = z || scaling;
|
|
12564
12561
|
scaling = createVec3(scaling, y, z);
|
|
12565
12562
|
}
|
|
12566
|
-
runtime
|
|
12563
|
+
runtime.sceneGraphService.scaleLocal(this, scaling);
|
|
12567
12564
|
return this;
|
|
12568
12565
|
};
|
|
12569
12566
|
/**
|
|
@@ -12575,100 +12572,100 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12575
12572
|
z = z || scaling;
|
|
12576
12573
|
scaling = createVec3(scaling, y, z);
|
|
12577
12574
|
}
|
|
12578
|
-
runtime
|
|
12575
|
+
runtime.sceneGraphService.setLocalScale(this, scaling);
|
|
12579
12576
|
return this;
|
|
12580
12577
|
};
|
|
12581
12578
|
/**
|
|
12582
12579
|
* get scaling in local space
|
|
12583
12580
|
*/
|
|
12584
12581
|
DisplayObject.prototype.getLocalScale = function () {
|
|
12585
|
-
return runtime
|
|
12582
|
+
return runtime.sceneGraphService.getLocalScale(this);
|
|
12586
12583
|
};
|
|
12587
12584
|
/**
|
|
12588
12585
|
* get scaling in world space
|
|
12589
12586
|
*/
|
|
12590
12587
|
DisplayObject.prototype.getScale = function () {
|
|
12591
|
-
return runtime
|
|
12588
|
+
return runtime.sceneGraphService.getScale(this);
|
|
12592
12589
|
};
|
|
12593
12590
|
/**
|
|
12594
12591
|
* only return degrees of Z axis in world space
|
|
12595
12592
|
*/
|
|
12596
12593
|
DisplayObject.prototype.getEulerAngles = function () {
|
|
12597
|
-
var _a = __read(getEuler(vec3.create(), runtime
|
|
12594
|
+
var _a = __read(getEuler(vec3.create(), runtime.sceneGraphService.getWorldTransform(this)), 3), ez = _a[2];
|
|
12598
12595
|
return rad2deg(ez);
|
|
12599
12596
|
};
|
|
12600
12597
|
/**
|
|
12601
12598
|
* only return degrees of Z axis in local space
|
|
12602
12599
|
*/
|
|
12603
12600
|
DisplayObject.prototype.getLocalEulerAngles = function () {
|
|
12604
|
-
var _a = __read(getEuler(vec3.create(), runtime
|
|
12601
|
+
var _a = __read(getEuler(vec3.create(), runtime.sceneGraphService.getLocalRotation(this)), 3), ez = _a[2];
|
|
12605
12602
|
return rad2deg(ez);
|
|
12606
12603
|
};
|
|
12607
12604
|
/**
|
|
12608
12605
|
* set euler angles(degrees) in world space
|
|
12609
12606
|
*/
|
|
12610
12607
|
DisplayObject.prototype.setEulerAngles = function (z) {
|
|
12611
|
-
runtime
|
|
12608
|
+
runtime.sceneGraphService.setEulerAngles(this, 0, 0, z);
|
|
12612
12609
|
return this;
|
|
12613
12610
|
};
|
|
12614
12611
|
/**
|
|
12615
12612
|
* set euler angles(degrees) in local space
|
|
12616
12613
|
*/
|
|
12617
12614
|
DisplayObject.prototype.setLocalEulerAngles = function (z) {
|
|
12618
|
-
runtime
|
|
12615
|
+
runtime.sceneGraphService.setLocalEulerAngles(this, 0, 0, z);
|
|
12619
12616
|
return this;
|
|
12620
12617
|
};
|
|
12621
12618
|
DisplayObject.prototype.rotateLocal = function (x, y, z) {
|
|
12622
12619
|
if (isNil(y) && isNil(z)) {
|
|
12623
|
-
runtime
|
|
12620
|
+
runtime.sceneGraphService.rotateLocal(this, 0, 0, x);
|
|
12624
12621
|
}
|
|
12625
12622
|
else {
|
|
12626
|
-
runtime
|
|
12623
|
+
runtime.sceneGraphService.rotateLocal(this, x, y, z);
|
|
12627
12624
|
}
|
|
12628
12625
|
return this;
|
|
12629
12626
|
};
|
|
12630
12627
|
DisplayObject.prototype.rotate = function (x, y, z) {
|
|
12631
12628
|
if (isNil(y) && isNil(z)) {
|
|
12632
|
-
runtime
|
|
12629
|
+
runtime.sceneGraphService.rotate(this, 0, 0, x);
|
|
12633
12630
|
}
|
|
12634
12631
|
else {
|
|
12635
|
-
runtime
|
|
12632
|
+
runtime.sceneGraphService.rotate(this, x, y, z);
|
|
12636
12633
|
}
|
|
12637
12634
|
return this;
|
|
12638
12635
|
};
|
|
12639
12636
|
DisplayObject.prototype.setRotation = function (rotation, y, z, w) {
|
|
12640
|
-
runtime
|
|
12637
|
+
runtime.sceneGraphService.setRotation(this, rotation, y, z, w);
|
|
12641
12638
|
return this;
|
|
12642
12639
|
};
|
|
12643
12640
|
DisplayObject.prototype.setLocalRotation = function (rotation, y, z, w) {
|
|
12644
|
-
runtime
|
|
12641
|
+
runtime.sceneGraphService.setLocalRotation(this, rotation, y, z, w);
|
|
12645
12642
|
return this;
|
|
12646
12643
|
};
|
|
12647
12644
|
DisplayObject.prototype.setLocalSkew = function (skew, y) {
|
|
12648
|
-
runtime
|
|
12645
|
+
runtime.sceneGraphService.setLocalSkew(this, skew, y);
|
|
12649
12646
|
return this;
|
|
12650
12647
|
};
|
|
12651
12648
|
DisplayObject.prototype.getRotation = function () {
|
|
12652
|
-
return runtime
|
|
12649
|
+
return runtime.sceneGraphService.getRotation(this);
|
|
12653
12650
|
};
|
|
12654
12651
|
DisplayObject.prototype.getLocalRotation = function () {
|
|
12655
|
-
return runtime
|
|
12652
|
+
return runtime.sceneGraphService.getLocalRotation(this);
|
|
12656
12653
|
};
|
|
12657
12654
|
DisplayObject.prototype.getLocalSkew = function () {
|
|
12658
|
-
return runtime
|
|
12655
|
+
return runtime.sceneGraphService.getLocalSkew(this);
|
|
12659
12656
|
};
|
|
12660
12657
|
DisplayObject.prototype.getLocalTransform = function () {
|
|
12661
|
-
return runtime
|
|
12658
|
+
return runtime.sceneGraphService.getLocalTransform(this);
|
|
12662
12659
|
};
|
|
12663
12660
|
DisplayObject.prototype.getWorldTransform = function () {
|
|
12664
|
-
return runtime
|
|
12661
|
+
return runtime.sceneGraphService.getWorldTransform(this);
|
|
12665
12662
|
};
|
|
12666
12663
|
DisplayObject.prototype.setLocalTransform = function (transform) {
|
|
12667
|
-
runtime
|
|
12664
|
+
runtime.sceneGraphService.setLocalTransform(this, transform);
|
|
12668
12665
|
return this;
|
|
12669
12666
|
};
|
|
12670
12667
|
DisplayObject.prototype.resetLocalTransform = function () {
|
|
12671
|
-
runtime
|
|
12668
|
+
runtime.sceneGraphService.resetLocalTransform(this);
|
|
12672
12669
|
};
|
|
12673
12670
|
// #endregion transformable
|
|
12674
12671
|
// #region animatable
|
|
@@ -12818,7 +12815,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12818
12815
|
* @deprecated
|
|
12819
12816
|
*/
|
|
12820
12817
|
DisplayObject.prototype.show = function () {
|
|
12821
|
-
if (runtime
|
|
12818
|
+
if (runtime.enableCSSParsing) {
|
|
12822
12819
|
this.style.visibility = 'visible';
|
|
12823
12820
|
}
|
|
12824
12821
|
else {
|
|
@@ -12832,7 +12829,7 @@ var DisplayObject = /** @class */ (function (_super) {
|
|
|
12832
12829
|
* @deprecated
|
|
12833
12830
|
*/
|
|
12834
12831
|
DisplayObject.prototype.hide = function () {
|
|
12835
|
-
if (runtime
|
|
12832
|
+
if (runtime.enableCSSParsing) {
|
|
12836
12833
|
this.style.visibility = 'hidden';
|
|
12837
12834
|
}
|
|
12838
12835
|
else {
|
|
@@ -13024,7 +13021,7 @@ var CSS = {
|
|
|
13024
13021
|
*/
|
|
13025
13022
|
registerProperty: function (definition) {
|
|
13026
13023
|
var name = definition.name, inherits = definition.inherits, interpolable = definition.interpolable, initialValue = definition.initialValue, syntax = definition.syntax;
|
|
13027
|
-
runtime
|
|
13024
|
+
runtime.styleValueRegistry.registerMetadata({
|
|
13028
13025
|
n: name,
|
|
13029
13026
|
inh: inherits,
|
|
13030
13027
|
int: interpolable,
|
|
@@ -13040,7 +13037,7 @@ var CSS = {
|
|
|
13040
13037
|
* @see https://developer.mozilla.org/en-US/docs/Web/Guide/Houdini#css_layout_api
|
|
13041
13038
|
*/
|
|
13042
13039
|
registerLayout: function (name, clazz) {
|
|
13043
|
-
runtime
|
|
13040
|
+
runtime.layoutRegistry.registerLayout(name, clazz);
|
|
13044
13041
|
},
|
|
13045
13042
|
};
|
|
13046
13043
|
|
|
@@ -13049,10 +13046,10 @@ var Circle = /** @class */ (function (_super) {
|
|
|
13049
13046
|
function Circle(_a) {
|
|
13050
13047
|
if (_a === void 0) { _a = {}; }
|
|
13051
13048
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13052
|
-
return _super.call(this, __assign({ type: Shape.CIRCLE, style: runtime
|
|
13049
|
+
return _super.call(this, __assign({ type: Shape.CIRCLE, style: runtime.enableCSSParsing
|
|
13053
13050
|
? __assign({ cx: '', cy: '', r: '' }, style) : __assign({}, style), initialParsedStyle: {
|
|
13054
13051
|
anchor: [0.5, 0.5],
|
|
13055
|
-
transformOrigin: runtime
|
|
13052
|
+
transformOrigin: runtime.enableCSSParsing
|
|
13056
13053
|
? null
|
|
13057
13054
|
: [PECENTAGE_50, PECENTAGE_50],
|
|
13058
13055
|
} }, rest)) || this;
|
|
@@ -13071,7 +13068,7 @@ var CustomElement = /** @class */ (function (_super) {
|
|
|
13071
13068
|
if (_a === void 0) { _a = {}; }
|
|
13072
13069
|
var _this = this;
|
|
13073
13070
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13074
|
-
_this = _super.call(this, __assign({ style: runtime
|
|
13071
|
+
_this = _super.call(this, __assign({ style: runtime.enableCSSParsing
|
|
13075
13072
|
? __assign({ x: '', y: '' }, style) : __assign({}, style) }, rest)) || this;
|
|
13076
13073
|
// static get observedAttributes(): string[] {
|
|
13077
13074
|
// return [];
|
|
@@ -13087,10 +13084,10 @@ var Ellipse = /** @class */ (function (_super) {
|
|
|
13087
13084
|
function Ellipse(_a) {
|
|
13088
13085
|
if (_a === void 0) { _a = {}; }
|
|
13089
13086
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13090
|
-
return _super.call(this, __assign({ type: Shape.ELLIPSE, style: runtime
|
|
13087
|
+
return _super.call(this, __assign({ type: Shape.ELLIPSE, style: runtime.enableCSSParsing
|
|
13091
13088
|
? __assign({ cx: '', cy: '', rx: '', ry: '' }, style) : __assign({}, style), initialParsedStyle: {
|
|
13092
13089
|
anchor: [0.5, 0.5],
|
|
13093
|
-
transformOrigin: runtime
|
|
13090
|
+
transformOrigin: runtime.enableCSSParsing
|
|
13094
13091
|
? null
|
|
13095
13092
|
: [PECENTAGE_50, PECENTAGE_50],
|
|
13096
13093
|
} }, rest)) || this;
|
|
@@ -13113,7 +13110,7 @@ var Group = /** @class */ (function (_super) {
|
|
|
13113
13110
|
function Group(_a) {
|
|
13114
13111
|
if (_a === void 0) { _a = {}; }
|
|
13115
13112
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13116
|
-
return _super.call(this, __assign({ type: Shape.GROUP, style: runtime
|
|
13113
|
+
return _super.call(this, __assign({ type: Shape.GROUP, style: runtime.enableCSSParsing
|
|
13117
13114
|
? __assign({ x: '', y: '', width: '', height: '' }, style) : __assign({}, style) }, rest)) || this;
|
|
13118
13115
|
}
|
|
13119
13116
|
return Group;
|
|
@@ -13129,7 +13126,7 @@ var HTML = /** @class */ (function (_super) {
|
|
|
13129
13126
|
if (_a === void 0) { _a = {}; }
|
|
13130
13127
|
var _this = this;
|
|
13131
13128
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13132
|
-
_this = _super.call(this, __assign({ type: Shape.HTML, style: runtime
|
|
13129
|
+
_this = _super.call(this, __assign({ type: Shape.HTML, style: runtime.enableCSSParsing
|
|
13133
13130
|
? __assign({ x: '', y: '', width: 'auto', height: 'auto', innerHTML: '' }, style) : __assign({}, style) }, rest)) || this;
|
|
13134
13131
|
_this.cullable.enable = false;
|
|
13135
13132
|
return _this;
|
|
@@ -13191,7 +13188,7 @@ var Image = /** @class */ (function (_super) {
|
|
|
13191
13188
|
function Image(_a) {
|
|
13192
13189
|
if (_a === void 0) { _a = {}; }
|
|
13193
13190
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13194
|
-
return _super.call(this, __assign({ type: Shape.IMAGE, style: runtime
|
|
13191
|
+
return _super.call(this, __assign({ type: Shape.IMAGE, style: runtime.enableCSSParsing
|
|
13195
13192
|
? __assign({ x: '', y: '', img: '', width: '', height: '' }, style) : __assign({}, style) }, rest)) || this;
|
|
13196
13193
|
}
|
|
13197
13194
|
return Image;
|
|
@@ -13320,8 +13317,8 @@ var Path = /** @class */ (function (_super) {
|
|
|
13320
13317
|
if (_a === void 0) { _a = {}; }
|
|
13321
13318
|
var _this = this;
|
|
13322
13319
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13323
|
-
_this = _super.call(this, __assign({ type: Shape.PATH, style: runtime
|
|
13324
|
-
? __assign({ path: '', miterLimit: '' }, style) : __assign({}, style), initialParsedStyle: runtime
|
|
13320
|
+
_this = _super.call(this, __assign({ type: Shape.PATH, style: runtime.enableCSSParsing
|
|
13321
|
+
? __assign({ path: '', miterLimit: '' }, style) : __assign({}, style), initialParsedStyle: runtime.enableCSSParsing
|
|
13325
13322
|
? null
|
|
13326
13323
|
: {
|
|
13327
13324
|
miterLimit: 4,
|
|
@@ -13521,8 +13518,8 @@ var Polygon = /** @class */ (function (_super) {
|
|
|
13521
13518
|
if (_a === void 0) { _a = {}; }
|
|
13522
13519
|
var _this = this;
|
|
13523
13520
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13524
|
-
_this = _super.call(this, __assign({ type: Shape.POLYGON, style: runtime
|
|
13525
|
-
? __assign({ points: '', miterLimit: '', isClosed: true }, style) : __assign({}, style), initialParsedStyle: runtime
|
|
13521
|
+
_this = _super.call(this, __assign({ type: Shape.POLYGON, style: runtime.enableCSSParsing
|
|
13522
|
+
? __assign({ points: '', miterLimit: '', isClosed: true }, style) : __assign({}, style), initialParsedStyle: runtime.enableCSSParsing
|
|
13526
13523
|
? null
|
|
13527
13524
|
: {
|
|
13528
13525
|
points: {
|
|
@@ -13665,8 +13662,8 @@ var Polyline = /** @class */ (function (_super) {
|
|
|
13665
13662
|
function Polyline(_a) {
|
|
13666
13663
|
if (_a === void 0) { _a = {}; }
|
|
13667
13664
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13668
|
-
return _super.call(this, __assign({ type: Shape.POLYLINE, style: runtime
|
|
13669
|
-
? __assign({ points: '', miterLimit: '', isClosed: false }, style) : __assign({}, style), initialParsedStyle: runtime
|
|
13665
|
+
return _super.call(this, __assign({ type: Shape.POLYLINE, style: runtime.enableCSSParsing
|
|
13666
|
+
? __assign({ points: '', miterLimit: '', isClosed: false }, style) : __assign({}, style), initialParsedStyle: runtime.enableCSSParsing
|
|
13670
13667
|
? null
|
|
13671
13668
|
: {
|
|
13672
13669
|
points: {
|
|
@@ -13724,7 +13721,7 @@ var Rect = /** @class */ (function (_super) {
|
|
|
13724
13721
|
function Rect(_a) {
|
|
13725
13722
|
if (_a === void 0) { _a = {}; }
|
|
13726
13723
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13727
|
-
return _super.call(this, __assign({ type: Shape.RECT, style: runtime
|
|
13724
|
+
return _super.call(this, __assign({ type: Shape.RECT, style: runtime.enableCSSParsing
|
|
13728
13725
|
? __assign({ x: '', y: '', width: '', height: '', radius: '' }, style) : __assign({}, style) }, rest)) || this;
|
|
13729
13726
|
}
|
|
13730
13727
|
return Rect;
|
|
@@ -13744,10 +13741,10 @@ var Text = /** @class */ (function (_super) {
|
|
|
13744
13741
|
function Text(_a) {
|
|
13745
13742
|
if (_a === void 0) { _a = {}; }
|
|
13746
13743
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
13747
|
-
return _super.call(this, __assign({ type: Shape.TEXT, style: runtime
|
|
13744
|
+
return _super.call(this, __assign({ type: Shape.TEXT, style: runtime.enableCSSParsing
|
|
13748
13745
|
? __assign({ x: '', y: '', text: '', fontSize: '', fontFamily: '', fontStyle: '', fontWeight: '', fontVariant: '', textAlign: '', textBaseline: '', textTransform: '', fill: 'black', letterSpacing: '', lineHeight: '', miterLimit: '',
|
|
13749
13746
|
// whiteSpace: 'pre',
|
|
13750
|
-
wordWrap: false, wordWrapWidth: 0, leading: 0, dx: '', dy: '', isBillboard: false, sizeAttenuation: true }, style) : __assign({ fill: 'black' }, style), initialParsedStyle: runtime
|
|
13747
|
+
wordWrap: false, wordWrapWidth: 0, leading: 0, dx: '', dy: '', isBillboard: false, sizeAttenuation: true }, style) : __assign({ fill: 'black' }, style), initialParsedStyle: runtime.enableCSSParsing
|
|
13751
13748
|
? {}
|
|
13752
13749
|
: {
|
|
13753
13750
|
x: 0,
|
|
@@ -13863,7 +13860,7 @@ var Document = /** @class */ (function (_super) {
|
|
|
13863
13860
|
_this.nodeName = 'document';
|
|
13864
13861
|
// create timeline
|
|
13865
13862
|
try {
|
|
13866
|
-
_this.timeline = new runtime
|
|
13863
|
+
_this.timeline = new runtime.AnimationTimeline(_this);
|
|
13867
13864
|
}
|
|
13868
13865
|
catch (e) { }
|
|
13869
13866
|
/**
|
|
@@ -14747,11 +14744,11 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14747
14744
|
};
|
|
14748
14745
|
var handleMounted = function (e) {
|
|
14749
14746
|
var object = e.target;
|
|
14750
|
-
if (runtime
|
|
14747
|
+
if (runtime.enableCSSParsing) {
|
|
14751
14748
|
// recalc style values
|
|
14752
|
-
runtime
|
|
14749
|
+
runtime.styleValueRegistry.recalc(object);
|
|
14753
14750
|
}
|
|
14754
|
-
runtime
|
|
14751
|
+
runtime.sceneGraphService.dirtifyToRoot(object);
|
|
14755
14752
|
renderingService.dirtify();
|
|
14756
14753
|
};
|
|
14757
14754
|
var handleUnmounted = function (e) {
|
|
@@ -14761,7 +14758,7 @@ var PrepareRendererPlugin = /** @class */ (function () {
|
|
|
14761
14758
|
_this.rBush.remove(rBushNode.aabb);
|
|
14762
14759
|
}
|
|
14763
14760
|
_this.toSync.delete(object);
|
|
14764
|
-
runtime
|
|
14761
|
+
runtime.sceneGraphService.dirtifyToRoot(object);
|
|
14765
14762
|
renderingService.dirtify();
|
|
14766
14763
|
};
|
|
14767
14764
|
renderingService.hooks.init.tap(PrepareRendererPlugin.tag, function () {
|
|
@@ -14910,29 +14907,29 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14910
14907
|
*/
|
|
14911
14908
|
_this.devicePixelRatio = dpr;
|
|
14912
14909
|
_this.requestAnimationFrame =
|
|
14913
|
-
requestAnimationFrame !== null && requestAnimationFrame !== void 0 ? requestAnimationFrame : raf.bind(runtime
|
|
14910
|
+
requestAnimationFrame !== null && requestAnimationFrame !== void 0 ? requestAnimationFrame : raf.bind(runtime.globalThis);
|
|
14914
14911
|
_this.cancelAnimationFrame =
|
|
14915
|
-
cancelAnimationFrame !== null && cancelAnimationFrame !== void 0 ? cancelAnimationFrame : caf.bind(runtime
|
|
14912
|
+
cancelAnimationFrame !== null && cancelAnimationFrame !== void 0 ? cancelAnimationFrame : caf.bind(runtime.globalThis);
|
|
14916
14913
|
/**
|
|
14917
14914
|
* limits query
|
|
14918
14915
|
*/
|
|
14919
14916
|
// the following feature-detect from hammer.js
|
|
14920
14917
|
// @see https://github.com/hammerjs/hammer.js/blob/master/src/inputjs/input-consts.js#L5
|
|
14921
14918
|
_this.supportsTouchEvents =
|
|
14922
|
-
supportsTouchEvents !== null && supportsTouchEvents !== void 0 ? supportsTouchEvents : 'ontouchstart' in runtime
|
|
14919
|
+
supportsTouchEvents !== null && supportsTouchEvents !== void 0 ? supportsTouchEvents : 'ontouchstart' in runtime.globalThis;
|
|
14923
14920
|
_this.supportsPointerEvents =
|
|
14924
|
-
supportsPointerEvents !== null && supportsPointerEvents !== void 0 ? supportsPointerEvents : !!runtime
|
|
14921
|
+
supportsPointerEvents !== null && supportsPointerEvents !== void 0 ? supportsPointerEvents : !!runtime.globalThis.PointerEvent;
|
|
14925
14922
|
_this.isTouchEvent =
|
|
14926
14923
|
isTouchEvent !== null && isTouchEvent !== void 0 ? isTouchEvent : (function (event) {
|
|
14927
14924
|
return _this.supportsTouchEvents &&
|
|
14928
|
-
event instanceof runtime
|
|
14925
|
+
event instanceof runtime.globalThis.TouchEvent;
|
|
14929
14926
|
});
|
|
14930
14927
|
_this.isMouseEvent =
|
|
14931
14928
|
isMouseEvent !== null && isMouseEvent !== void 0 ? isMouseEvent : (function (event) {
|
|
14932
|
-
return !runtime
|
|
14933
|
-
(event instanceof runtime
|
|
14929
|
+
return !runtime.globalThis.MouseEvent ||
|
|
14930
|
+
(event instanceof runtime.globalThis.MouseEvent &&
|
|
14934
14931
|
(!_this.supportsPointerEvents ||
|
|
14935
|
-
!(event instanceof runtime
|
|
14932
|
+
!(event instanceof runtime.globalThis.PointerEvent)));
|
|
14936
14933
|
});
|
|
14937
14934
|
_this.initRenderingContext({
|
|
14938
14935
|
container: container,
|
|
@@ -14972,7 +14969,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14972
14969
|
Canvas.prototype.initDefaultCamera = function (width, height) {
|
|
14973
14970
|
var _this = this;
|
|
14974
14971
|
// set a default ortho camera
|
|
14975
|
-
var camera = new runtime
|
|
14972
|
+
var camera = new runtime.CameraContribution();
|
|
14976
14973
|
camera
|
|
14977
14974
|
.setType(CameraType.EXPLORING, CameraTrackingMode.DEFAULT)
|
|
14978
14975
|
.setPosition(width / 2, height / 2, DEFAULT_CAMERA_Z)
|
|
@@ -15165,11 +15162,11 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15165
15162
|
//
|
|
15166
15163
|
this.loadRendererContainerModule(renderer);
|
|
15167
15164
|
// init context service
|
|
15168
|
-
this.context.contextService = new this.context.ContextService(__assign(__assign({}, runtime
|
|
15165
|
+
this.context.contextService = new this.context.ContextService(__assign(__assign({}, runtime), this.context));
|
|
15169
15166
|
// init rendering service
|
|
15170
|
-
this.context.renderingService = new RenderingService(runtime
|
|
15167
|
+
this.context.renderingService = new RenderingService(runtime, this.context);
|
|
15171
15168
|
// init event service
|
|
15172
|
-
this.context.eventService = new EventService(runtime
|
|
15169
|
+
this.context.eventService = new EventService(runtime, this.context);
|
|
15173
15170
|
this.context.eventService.init();
|
|
15174
15171
|
if (this.context.contextService.init) {
|
|
15175
15172
|
this.context.contextService.init();
|
|
@@ -15226,7 +15223,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15226
15223
|
var plugins = renderer.getPlugins();
|
|
15227
15224
|
plugins.forEach(function (plugin) {
|
|
15228
15225
|
plugin.context = _this.context;
|
|
15229
|
-
plugin.init(runtime
|
|
15226
|
+
plugin.init(runtime);
|
|
15230
15227
|
});
|
|
15231
15228
|
};
|
|
15232
15229
|
Canvas.prototype.setRenderer = function (renderer) {
|
|
@@ -15241,7 +15238,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15241
15238
|
this.destroy(false, true);
|
|
15242
15239
|
// destroy all plugins, reverse will mutate origin array
|
|
15243
15240
|
__spreadArray([], __read(oldRenderer === null || oldRenderer === void 0 ? void 0 : oldRenderer.getPlugins()), false).reverse().forEach(function (plugin) {
|
|
15244
|
-
plugin.destroy(runtime
|
|
15241
|
+
plugin.destroy(runtime);
|
|
15245
15242
|
});
|
|
15246
15243
|
this.initRenderer(renderer);
|
|
15247
15244
|
};
|
|
@@ -15335,5 +15332,5 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
15335
15332
|
return Canvas;
|
|
15336
15333
|
}(EventTarget));
|
|
15337
15334
|
|
|
15338
|
-
export { AABB, AbstractRenderer, AbstractRendererPlugin, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasEvent, Circle, CircleUpdater, 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, 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
|
|
15335
|
+
export { AABB, AbstractRenderer, AbstractRendererPlugin, BUILT_IN_PROPERTIES, CSS, CSSGradientValue, CSSKeywordValue, CSSRGB, CSSStyleValue, CSSUnitValue, Camera, CameraEvent, CameraProjectionMode, CameraTrackingMode, CameraType, Canvas, CanvasEvent, Circle, CircleUpdater, 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, 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 };
|
|
15339
15336
|
//# sourceMappingURL=index.esm.js.map
|