@antv/g 5.15.5 → 5.15.7
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.umd.js +9 -2
- package/dist/index.umd.min.js +1 -1
- package/package.json +8 -8
package/dist/index.umd.js
CHANGED
|
@@ -8328,7 +8328,14 @@
|
|
|
8328
8328
|
return target[name];}return _this.getAttribute(name);},set:function set(_,prop,value){_this.setAttribute(prop,value);return true;}});// insert this group into pool
|
|
8329
8329
|
runtime.displayObjectPool.add(_this.entity,_assertThisInitialized(_this));return _this;}var _proto=DisplayObject.prototype;_proto.destroy=function destroy(){_Element.prototype.destroy.call(this);// remove from pool
|
|
8330
8330
|
runtime.displayObjectPool.remove(this.entity);// stop all active animations
|
|
8331
|
-
this.getAnimations().forEach(function(animation){animation.cancel();})
|
|
8331
|
+
this.getAnimations().forEach(function(animation){animation.cancel();});// FIXME
|
|
8332
|
+
// this.renderable = null;
|
|
8333
|
+
// this.cullable = null;
|
|
8334
|
+
// this.transformable = null;
|
|
8335
|
+
// this.rBushNode = null;
|
|
8336
|
+
// this.geometry = null;
|
|
8337
|
+
// this.sortable = null;
|
|
8338
|
+
};_proto.cloneNode=function cloneNode(deep,customCloneFunc){var clonedStyle=_extends({},this.attributes);for(var attributeName in clonedStyle){var attribute=clonedStyle[attributeName];// @see https://github.com/antvis/G/issues/1095
|
|
8332
8339
|
if(attribute instanceof DisplayObject&&// share the same clipPath if possible
|
|
8333
8340
|
attributeName!=='clipPath'&&attributeName!=='offsetPath'&&attributeName!=='textPath'){clonedStyle[attributeName]=attribute.cloneNode(deep);}// TODO: clone other type
|
|
8334
8341
|
if(customCloneFunc){clonedStyle[attributeName]=customCloneFunc(attributeName,attribute);}}var cloned=new this.constructor({// copy id & name
|
|
@@ -12928,7 +12935,7 @@
|
|
|
12928
12935
|
_proto.updateTiming = function updateTiming(timing) {
|
|
12929
12936
|
var _this2 = this;
|
|
12930
12937
|
Object.keys(timing || {}).forEach(function (name) {
|
|
12931
|
-
_this2.timing = timing[name];
|
|
12938
|
+
_this2.timing[name] = timing[name];
|
|
12932
12939
|
});
|
|
12933
12940
|
};
|
|
12934
12941
|
return KeyframeEffect;
|