@visactor/react-vtable 1.18.1 → 1.18.2-alpha.2

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.
@@ -279,5 +279,4 @@ function getArrowStyle(position) {
279
279
  }
280
280
  }
281
281
 
282
- exports.Popover = react_1.default.forwardRef(PopoverComponent), exports.Popover.displayName = "Popover";
283
- //# sourceMappingURL=popover.js.map
282
+ exports.Popover = react_1.default.forwardRef(PopoverComponent), exports.Popover.displayName = "Popover";
@@ -44,4 +44,5 @@ function TagComponent(baseProps, ref) {
44
44
  }, rest));
45
45
  }
46
46
 
47
- exports.Tag = react_1.default.forwardRef(TagComponent), exports.Tag.displayName = "Tag";
47
+ exports.Tag = react_1.default.forwardRef(TagComponent), exports.Tag.displayName = "Tag";
48
+ //# sourceMappingURL=tag.js.map
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './tables';
2
2
  export * from './table-components';
3
3
  export * from './components';
4
- export declare const version = "1.18.1";
4
+ export declare const version = "1.18.2-alpha.2";
package/cjs/index.js CHANGED
@@ -18,5 +18,5 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), exports.version = void 0, __exportStar(require("./tables"), exports), __exportStar(require("./table-components"), exports),
21
- __exportStar(require("./components"), exports), exports.version = "1.18.1";
21
+ __exportStar(require("./components"), exports), exports.version = "1.18.2-alpha.2";
22
22
  //# sourceMappingURL=index.js.map
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.18.1\";\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,gBAAgB,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.18.2-alpha.2\";\n"]}
@@ -1296,11 +1296,14 @@
1296
1296
  const ContributionProvider = Symbol("ContributionProvider");
1297
1297
  class ContributionProviderCache {
1298
1298
  constructor(serviceIdentifier, container) {
1299
- this.serviceIdentifier = serviceIdentifier, this.container = container;
1299
+ this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
1300
1300
  }
1301
1301
  getContributions() {
1302
1302
  return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
1303
1303
  }
1304
+ refresh() {
1305
+ this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
1306
+ }
1304
1307
  }
1305
1308
  function bindContributionProvider(bind, id) {
1306
1309
  bind(ContributionProvider).toDynamicValue(_ref => {
@@ -1310,6 +1313,20 @@
1310
1313
  return new ContributionProviderCache(id, container);
1311
1314
  }).inSingletonScope().whenTargetNamed(id);
1312
1315
  }
1316
+ class ContributionStore {
1317
+ static getStore(id) {
1318
+ return this.store.get(id);
1319
+ }
1320
+ static setStore(id, cache) {
1321
+ this.store.set(id, cache);
1322
+ }
1323
+ static refreshAllContributions() {
1324
+ this.store.forEach(cache => {
1325
+ cache.refresh();
1326
+ });
1327
+ }
1328
+ }
1329
+ ContributionStore.store = new Map();
1313
1330
 
1314
1331
  class Hook {
1315
1332
  constructor(args, name) {
@@ -10924,6 +10941,9 @@
10924
10941
  init(contributions) {
10925
10942
  contributions && (this._renderContribitions = contributions.getContributions()), this._renderContribitions || (this._renderContribitions = []), this.builtinContributions || (this.builtinContributions = []), this.builtinContributions.push(defaultBaseClipRenderBeforeContribution), this.builtinContributions.push(defaultBaseClipRenderAfterContribution), this.builtinContributions.forEach(item => this._renderContribitions.push(item)), this._renderContribitions.length && (this._renderContribitions.sort((a, b) => b.order - a.order), this._beforeRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.beforeFillStroke), this._afterRenderContribitions = this._renderContribitions.filter(c => c.time === BaseRenderContributionTime.afterFillStroke));
10926
10943
  }
10944
+ reInit() {
10945
+ this.init(this.graphicRenderContributions);
10946
+ }
10927
10947
  beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
10928
10948
  this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
10929
10949
  if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
@@ -11093,8 +11113,8 @@
11093
11113
  };
11094
11114
  };
11095
11115
  let DefaultCanvasRectRender = class extends BaseRender {
11096
- constructor(rectRenderContribitions) {
11097
- super(), this.rectRenderContribitions = rectRenderContribitions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(rectRenderContribitions);
11116
+ constructor(graphicRenderContributions) {
11117
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.type = "rect", this.numberType = RECT_NUMBER_TYPE, this.builtinContributions = [defaultRectRenderContribution, defaultRectBackgroundRenderContribution, defaultRectTextureRenderContribution], this.init(graphicRenderContributions);
11098
11118
  }
11099
11119
  drawShape(rect, context, x, y, drawContext, params, fillCb, strokeCb) {
11100
11120
  var _a;
@@ -11165,8 +11185,8 @@
11165
11185
  };
11166
11186
  };
11167
11187
  let DefaultCanvasSymbolRender = class extends BaseRender {
11168
- constructor(symbolRenderContribitions) {
11169
- super(), this.symbolRenderContribitions = symbolRenderContribitions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(symbolRenderContribitions);
11188
+ constructor(graphicRenderContributions) {
11189
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
11170
11190
  }
11171
11191
  drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
11172
11192
  var _a;
@@ -11337,8 +11357,8 @@
11337
11357
  };
11338
11358
  };
11339
11359
  let DefaultCanvasTextRender = class extends BaseRender {
11340
- constructor(textRenderContribitions) {
11341
- super(), this.textRenderContribitions = textRenderContribitions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(textRenderContribitions);
11360
+ constructor(graphicRenderContributions) {
11361
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = TEXT_NUMBER_TYPE, this.builtinContributions = [defaultTextBackgroundRenderContribution], this.init(graphicRenderContributions);
11342
11362
  }
11343
11363
  drawShape(text, context, x, y, drawContext, params, fillCb, strokeCb) {
11344
11364
  var _a, _b, _c;
@@ -11489,8 +11509,8 @@
11489
11509
  };
11490
11510
  const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
11491
11511
  let DefaultCanvasImageRender = class extends BaseRender {
11492
- constructor(imageRenderContribitions) {
11493
- super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
11512
+ constructor(graphicRenderContributions) {
11513
+ super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(graphicRenderContributions);
11494
11514
  }
11495
11515
  drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
11496
11516
  const imageAttribute = getTheme(image).image,
@@ -20488,7 +20508,7 @@
20488
20508
  const Checkbox = React.forwardRef(CheckboxComponent);
20489
20509
  Checkbox.displayName = 'Checkbox';
20490
20510
 
20491
- const version = "1.18.1";
20511
+ const version = "1.18.2-alpha.2";
20492
20512
 
20493
20513
  Object.defineProperty(exports, 'register', {
20494
20514
  enumerable: true,