@antv/g-lite 2.0.12-alpha.0 → 2.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/Canvas.d.ts +0 -1
- package/dist/index.esm.js +13 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -16
- 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/services/interfaces.d.ts +6 -5
- package/package.json +1 -1
package/dist/Canvas.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -7463,12 +7463,14 @@ var parser = {
|
|
|
7463
7463
|
mat4.set.apply(mat4, __spreadArray([$mat4_1], __read(d.map(function (s) { return s.value; })), false));
|
|
7464
7464
|
},
|
|
7465
7465
|
};
|
|
7466
|
+
var $vec3One$1 = vec3.fromValues(1, 1, 1);
|
|
7467
|
+
var $vec3Zero$1 = vec3.create();
|
|
7466
7468
|
var optimizer = {
|
|
7467
7469
|
translate: function (object, d) {
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7470
|
+
runtime.sceneGraphService.setLocalScale(object, $vec3One$1, false);
|
|
7471
|
+
runtime.sceneGraphService.setLocalEulerAngles(object, $vec3Zero$1, undefined, undefined, false);
|
|
7472
|
+
runtime.sceneGraphService.setLocalPosition(object, [d[0].value, d[1].value, 0], false);
|
|
7473
|
+
runtime.sceneGraphService.dirtifyLocal(object, object.transformable);
|
|
7472
7474
|
},
|
|
7473
7475
|
};
|
|
7474
7476
|
function parsedTransformToMat4(transform, object) {
|
|
@@ -14284,7 +14286,6 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14284
14286
|
*/
|
|
14285
14287
|
_this.Element = DisplayObject;
|
|
14286
14288
|
_this.inited = false;
|
|
14287
|
-
_this.destroyed = false;
|
|
14288
14289
|
_this.context = {};
|
|
14289
14290
|
// create document
|
|
14290
14291
|
_this.document = new Document();
|
|
@@ -14505,7 +14506,7 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14505
14506
|
clearEventRetain(beforeRenderEvent);
|
|
14506
14507
|
clearEventRetain(rerenderEvent);
|
|
14507
14508
|
clearEventRetain(afterRenderEvent);
|
|
14508
|
-
this.
|
|
14509
|
+
this.cancelAnimationFrame(this.frameId);
|
|
14509
14510
|
};
|
|
14510
14511
|
/**
|
|
14511
14512
|
* compatible with G 3.0
|
|
@@ -14577,8 +14578,6 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14577
14578
|
Canvas.prototype.run = function () {
|
|
14578
14579
|
var _this = this;
|
|
14579
14580
|
var tick = function (time, frame) {
|
|
14580
|
-
if (_this.destroyed)
|
|
14581
|
-
return _this.cancelAnimationFrame(_this.frameId);
|
|
14582
14581
|
_this.render(frame);
|
|
14583
14582
|
_this.frameId = _this.requestAnimationFrame(tick);
|
|
14584
14583
|
};
|
|
@@ -14695,14 +14694,12 @@ var Canvas = /** @class */ (function (_super) {
|
|
|
14695
14694
|
_this.unmountChildren(child);
|
|
14696
14695
|
});
|
|
14697
14696
|
if (this.inited) {
|
|
14698
|
-
if (
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
this.dispatchEvent(unmountedEvent, true);
|
|
14705
|
-
}
|
|
14697
|
+
if (parent.isMutationObserved) {
|
|
14698
|
+
parent.dispatchEvent(unmountedEvent);
|
|
14699
|
+
}
|
|
14700
|
+
else {
|
|
14701
|
+
unmountedEvent.target = parent;
|
|
14702
|
+
this.dispatchEvent(unmountedEvent, true);
|
|
14706
14703
|
}
|
|
14707
14704
|
// skip document.documentElement
|
|
14708
14705
|
if (parent !== this.document.documentElement) {
|