@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.
@@ -237,16 +237,6 @@ export declare class DisplayObject<StyleProps extends BaseStyleProps = any, Pars
237
237
  * @deprecated
238
238
  */
239
239
  add<T extends IChildNode>(child: T, index?: number): T;
240
- /**
241
- * Use `this.style.clipPath` instead.
242
- * @deprecated
243
- */
244
- setClip(clipPath: DisplayObject | null): void;
245
- /**
246
- * Use `this.style.clipPath` instead.
247
- * @deprecated
248
- */
249
- getClip: () => any;
250
240
  /**
251
241
  * @deprecated
252
242
  */
@@ -21,5 +21,5 @@ export interface ParsedGroupStyleProps extends ParsedBaseStyleProps {
21
21
  </g>
22
22
  */
23
23
  export declare class Group extends DisplayObject {
24
- constructor({ style, ...rest }?: DisplayObjectConfig<GroupStyleProps>);
24
+ constructor(options?: DisplayObjectConfig<GroupStyleProps>);
25
25
  }
@@ -40,5 +40,5 @@ export interface ParsedImageStyleProps extends ParsedBaseStyleProps {
40
40
  keepAspectRatio?: boolean;
41
41
  }
42
42
  export declare class Image extends DisplayObject<ImageStyleProps, ParsedImageStyleProps> {
43
- constructor({ style, ...rest }?: DisplayObjectConfig<ImageStyleProps>);
43
+ constructor(options?: DisplayObjectConfig<ImageStyleProps>);
44
44
  }
@@ -23,5 +23,5 @@ export interface ParsedRectStyleProps extends ParsedBaseStyleProps {
23
23
  radius?: [number, number, number, number];
24
24
  }
25
25
  export declare class Rect extends DisplayObject<RectStyleProps, ParsedRectStyleProps> {
26
- constructor({ style, ...rest }?: DisplayObjectConfig<RectStyleProps>);
26
+ constructor(options?: DisplayObjectConfig<RectStyleProps>);
27
27
  }
package/dist/index.esm.js CHANGED
@@ -10041,7 +10041,7 @@ var RenderingService = /** @class */ (function () {
10041
10041
  this.zIndexCounter = 0;
10042
10042
  var renderingContext = this.context.renderingContext;
10043
10043
  this.globalRuntime.sceneGraphService.syncHierarchy(renderingContext.root);
10044
- // this.globalRuntime.sceneGraphService.triggerPendingEvents();
10044
+ this.globalRuntime.sceneGraphService.triggerPendingEvents();
10045
10045
  if (renderingContext.renderReasons.size && this.inited) {
10046
10046
  // @ts-ignore
10047
10047
  renderingContext.dirtyRectangleRenderingDisabled =
@@ -12215,6 +12215,9 @@ var Element = /** @class */ (function (_super) {
12215
12215
  function isDisplayObject(value) {
12216
12216
  return !!(value === null || value === void 0 ? void 0 : value.nodeName);
12217
12217
  }
12218
+ var Proxy = runtime.globalThis.Proxy
12219
+ ? runtime.globalThis.Proxy
12220
+ : function () { };
12218
12221
  var mutationEvent = new MutationEvent(ElementEvent.ATTR_MODIFIED, null, null, null, null, MutationEvent.MODIFICATION, null, null);
12219
12222
  var DEFAULT_STYLE_PROPS = {
12220
12223
  opacity: '',
@@ -12316,13 +12319,6 @@ var DisplayObject = /** @class */ (function (_super) {
12316
12319
  * push to active animations after calling `animate()`
12317
12320
  */
12318
12321
  _this.activeAnimations = [];
12319
- /**
12320
- * Use `this.style.clipPath` instead.
12321
- * @deprecated
12322
- */
12323
- _this.getClip = function () {
12324
- return this.style.clipPath || null;
12325
- };
12326
12322
  // assign name, id to config
12327
12323
  // eg. group.get('name')
12328
12324
  _this.config = config;
@@ -12339,9 +12335,6 @@ var DisplayObject = /** @class */ (function (_super) {
12339
12335
  }
12340
12336
  // start to process attributes
12341
12337
  _this.initAttributes(_this.config.style);
12342
- var Proxy = runtime.globalThis.Proxy
12343
- ? runtime.globalThis.Proxy
12344
- : function () { };
12345
12338
  if (runtime.enableDataset) {
12346
12339
  _this.dataset = new Proxy({}, {
12347
12340
  get: function (target, name) {
@@ -12933,13 +12926,6 @@ var DisplayObject = /** @class */ (function (_super) {
12933
12926
  DisplayObject.prototype.add = function (child, index) {
12934
12927
  return this.appendChild(child, index);
12935
12928
  };
12936
- /**
12937
- * Use `this.style.clipPath` instead.
12938
- * @deprecated
12939
- */
12940
- DisplayObject.prototype.setClip = function (clipPath) {
12941
- this.style.clipPath = clipPath;
12942
- };
12943
12929
  /**
12944
12930
  * @deprecated
12945
12931
  */
@@ -13040,11 +13026,11 @@ var Ellipse = /** @class */ (function (_super) {
13040
13026
  */
13041
13027
  var Group = /** @class */ (function (_super) {
13042
13028
  __extends(Group, _super);
13043
- function Group(_a) {
13044
- if (_a === void 0) { _a = {}; }
13045
- var style = _a.style, rest = __rest(_a, ["style"]);
13046
- return _super.call(this, __assign({ type: Shape.GROUP, style: runtime.enableCSSParsing
13047
- ? __assign({ width: '', height: '' }, style) : __assign({}, style) }, rest)) || this;
13029
+ function Group(options) {
13030
+ if (options === void 0) { options = {}; }
13031
+ var _this = _super.call(this, options) || this;
13032
+ _this.nodeName = Shape.GROUP;
13033
+ return _this;
13048
13034
  }
13049
13035
  return Group;
13050
13036
  }(DisplayObject));
@@ -13117,11 +13103,11 @@ var HTML = /** @class */ (function (_super) {
13117
13103
 
13118
13104
  var Image = /** @class */ (function (_super) {
13119
13105
  __extends(Image, _super);
13120
- function Image(_a) {
13121
- if (_a === void 0) { _a = {}; }
13122
- var style = _a.style, rest = __rest(_a, ["style"]);
13123
- return _super.call(this, __assign({ type: Shape.IMAGE, style: runtime.enableCSSParsing
13124
- ? __assign({ x: '', y: '', img: '', width: '', height: '' }, style) : __assign({}, style) }, rest)) || this;
13106
+ function Image(options) {
13107
+ if (options === void 0) { options = {}; }
13108
+ var _this = _super.call(this, options) || this;
13109
+ _this.nodeName = Shape.IMAGE;
13110
+ return _this;
13125
13111
  }
13126
13112
  return Image;
13127
13113
  }(DisplayObject));
@@ -13652,11 +13638,11 @@ var Polyline = /** @class */ (function (_super) {
13652
13638
 
13653
13639
  var Rect = /** @class */ (function (_super) {
13654
13640
  __extends(Rect, _super);
13655
- function Rect(_a) {
13656
- if (_a === void 0) { _a = {}; }
13657
- var style = _a.style, rest = __rest(_a, ["style"]);
13658
- return _super.call(this, __assign({ type: Shape.RECT, style: runtime.enableCSSParsing
13659
- ? __assign({ x: '', y: '', width: '', height: '', radius: '' }, style) : __assign({}, style) }, rest)) || this;
13641
+ function Rect(options) {
13642
+ if (options === void 0) { options = {}; }
13643
+ var _this = _super.call(this, options) || this;
13644
+ _this.nodeName = Shape.RECT;
13645
+ return _this;
13660
13646
  }
13661
13647
  return Rect;
13662
13648
  }(DisplayObject));
@@ -14829,7 +14815,6 @@ var PrepareRendererPlugin = /** @class */ (function () {
14829
14815
  // use bulk inserting, which is ~2-3 times faster
14830
14816
  // @see https://github.com/mourner/rbush#bulk-inserting-data
14831
14817
  this.rBush.load(bulk);
14832
- console.log('sync...', Array.from(this.toSync));
14833
14818
  bulk.length = 0;
14834
14819
  this.toSync.clear();
14835
14820
  this.syncing = false;