@antv/g-lite 1.3.0-next.11 → 1.3.0-next.12

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.js CHANGED
@@ -10062,7 +10062,7 @@ var RenderingService = /** @class */ (function () {
10062
10062
  this.zIndexCounter = 0;
10063
10063
  var renderingContext = this.context.renderingContext;
10064
10064
  this.globalRuntime.sceneGraphService.syncHierarchy(renderingContext.root);
10065
- // this.globalRuntime.sceneGraphService.triggerPendingEvents();
10065
+ this.globalRuntime.sceneGraphService.triggerPendingEvents();
10066
10066
  if (renderingContext.renderReasons.size && this.inited) {
10067
10067
  // @ts-ignore
10068
10068
  renderingContext.dirtyRectangleRenderingDisabled =
@@ -12236,6 +12236,9 @@ var Element = /** @class */ (function (_super) {
12236
12236
  function isDisplayObject(value) {
12237
12237
  return !!(value === null || value === void 0 ? void 0 : value.nodeName);
12238
12238
  }
12239
+ var Proxy = runtime.globalThis.Proxy
12240
+ ? runtime.globalThis.Proxy
12241
+ : function () { };
12239
12242
  var mutationEvent = new MutationEvent(exports.ElementEvent.ATTR_MODIFIED, null, null, null, null, MutationEvent.MODIFICATION, null, null);
12240
12243
  var DEFAULT_STYLE_PROPS = {
12241
12244
  opacity: '',
@@ -12337,13 +12340,6 @@ var DisplayObject = /** @class */ (function (_super) {
12337
12340
  * push to active animations after calling `animate()`
12338
12341
  */
12339
12342
  _this.activeAnimations = [];
12340
- /**
12341
- * Use `this.style.clipPath` instead.
12342
- * @deprecated
12343
- */
12344
- _this.getClip = function () {
12345
- return this.style.clipPath || null;
12346
- };
12347
12343
  // assign name, id to config
12348
12344
  // eg. group.get('name')
12349
12345
  _this.config = config;
@@ -12360,9 +12356,6 @@ var DisplayObject = /** @class */ (function (_super) {
12360
12356
  }
12361
12357
  // start to process attributes
12362
12358
  _this.initAttributes(_this.config.style);
12363
- var Proxy = runtime.globalThis.Proxy
12364
- ? runtime.globalThis.Proxy
12365
- : function () { };
12366
12359
  if (runtime.enableDataset) {
12367
12360
  _this.dataset = new Proxy({}, {
12368
12361
  get: function (target, name) {
@@ -12954,13 +12947,6 @@ var DisplayObject = /** @class */ (function (_super) {
12954
12947
  DisplayObject.prototype.add = function (child, index) {
12955
12948
  return this.appendChild(child, index);
12956
12949
  };
12957
- /**
12958
- * Use `this.style.clipPath` instead.
12959
- * @deprecated
12960
- */
12961
- DisplayObject.prototype.setClip = function (clipPath) {
12962
- this.style.clipPath = clipPath;
12963
- };
12964
12950
  /**
12965
12951
  * @deprecated
12966
12952
  */
@@ -13061,11 +13047,11 @@ var Ellipse = /** @class */ (function (_super) {
13061
13047
  */
13062
13048
  var Group = /** @class */ (function (_super) {
13063
13049
  tslib.__extends(Group, _super);
13064
- function Group(_a) {
13065
- if (_a === void 0) { _a = {}; }
13066
- var style = _a.style, rest = tslib.__rest(_a, ["style"]);
13067
- return _super.call(this, tslib.__assign({ type: exports.Shape.GROUP, style: runtime.enableCSSParsing
13068
- ? tslib.__assign({ width: '', height: '' }, style) : tslib.__assign({}, style) }, rest)) || this;
13050
+ function Group(options) {
13051
+ if (options === void 0) { options = {}; }
13052
+ var _this = _super.call(this, options) || this;
13053
+ _this.nodeName = exports.Shape.GROUP;
13054
+ return _this;
13069
13055
  }
13070
13056
  return Group;
13071
13057
  }(DisplayObject));
@@ -13138,11 +13124,11 @@ var HTML = /** @class */ (function (_super) {
13138
13124
 
13139
13125
  var Image = /** @class */ (function (_super) {
13140
13126
  tslib.__extends(Image, _super);
13141
- function Image(_a) {
13142
- if (_a === void 0) { _a = {}; }
13143
- var style = _a.style, rest = tslib.__rest(_a, ["style"]);
13144
- return _super.call(this, tslib.__assign({ type: exports.Shape.IMAGE, style: runtime.enableCSSParsing
13145
- ? tslib.__assign({ x: '', y: '', img: '', width: '', height: '' }, style) : tslib.__assign({}, style) }, rest)) || this;
13127
+ function Image(options) {
13128
+ if (options === void 0) { options = {}; }
13129
+ var _this = _super.call(this, options) || this;
13130
+ _this.nodeName = exports.Shape.IMAGE;
13131
+ return _this;
13146
13132
  }
13147
13133
  return Image;
13148
13134
  }(DisplayObject));
@@ -13673,11 +13659,11 @@ var Polyline = /** @class */ (function (_super) {
13673
13659
 
13674
13660
  var Rect = /** @class */ (function (_super) {
13675
13661
  tslib.__extends(Rect, _super);
13676
- function Rect(_a) {
13677
- if (_a === void 0) { _a = {}; }
13678
- var style = _a.style, rest = tslib.__rest(_a, ["style"]);
13679
- return _super.call(this, tslib.__assign({ type: exports.Shape.RECT, style: runtime.enableCSSParsing
13680
- ? tslib.__assign({ x: '', y: '', width: '', height: '', radius: '' }, style) : tslib.__assign({}, style) }, rest)) || this;
13662
+ function Rect(options) {
13663
+ if (options === void 0) { options = {}; }
13664
+ var _this = _super.call(this, options) || this;
13665
+ _this.nodeName = exports.Shape.RECT;
13666
+ return _this;
13681
13667
  }
13682
13668
  return Rect;
13683
13669
  }(DisplayObject));
@@ -14850,7 +14836,6 @@ var PrepareRendererPlugin = /** @class */ (function () {
14850
14836
  // use bulk inserting, which is ~2-3 times faster
14851
14837
  // @see https://github.com/mourner/rbush#bulk-inserting-data
14852
14838
  this.rBush.load(bulk);
14853
- console.log('sync...', Array.from(this.toSync));
14854
14839
  bulk.length = 0;
14855
14840
  this.toSync.clear();
14856
14841
  this.syncing = false;