@visactor/vchart-extension 1.13.11-alpha.0 → 1.13.11-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.
package/build/index.js CHANGED
@@ -2956,14 +2956,11 @@
2956
2956
  const ContributionProvider = Symbol("ContributionProvider");
2957
2957
  class ContributionProviderCache {
2958
2958
  constructor(serviceIdentifier, container) {
2959
- this.serviceIdentifier = serviceIdentifier, this.container = container, ContributionStore.setStore(this.serviceIdentifier, this);
2959
+ this.serviceIdentifier = serviceIdentifier, this.container = container;
2960
2960
  }
2961
2961
  getContributions() {
2962
2962
  return this.caches || (this.caches = [], this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier))), this.caches;
2963
2963
  }
2964
- refresh() {
2965
- this.caches && (this.caches.length = 0, this.container && this.container.isBound(this.serviceIdentifier) && this.caches.push(...this.container.getAll(this.serviceIdentifier)));
2966
- }
2967
2964
  }
2968
2965
  function bindContributionProvider(bind, id) {
2969
2966
  bind(ContributionProvider).toDynamicValue(_ref => {
@@ -2973,20 +2970,6 @@
2973
2970
  return new ContributionProviderCache(id, container);
2974
2971
  }).inSingletonScope().whenTargetNamed(id);
2975
2972
  }
2976
- class ContributionStore {
2977
- static getStore(id) {
2978
- return this.store.get(id);
2979
- }
2980
- static setStore(id, cache) {
2981
- this.store.set(id, cache);
2982
- }
2983
- static refreshAllContributions() {
2984
- this.store.forEach(cache => {
2985
- cache.refresh();
2986
- });
2987
- }
2988
- }
2989
- ContributionStore.store = new Map();
2990
2973
 
2991
2974
  class Hook {
2992
2975
  constructor(args, name) {
@@ -9679,9 +9662,6 @@
9679
9662
  init(contributions) {
9680
9663
  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));
9681
9664
  }
9682
- reInit() {
9683
- this.init(this.graphicRenderContributions);
9684
- }
9685
9665
  beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb, params) {
9686
9666
  this._beforeRenderContribitions && this._beforeRenderContribitions.forEach(c => {
9687
9667
  if (c.supportedAppName && graphic.stage && graphic.stage.params && graphic.stage.params.context && graphic.stage.params.context.appName) {
@@ -10097,8 +10077,8 @@
10097
10077
  };
10098
10078
  };
10099
10079
  let DefaultCanvasSymbolRender = class extends BaseRender {
10100
- constructor(graphicRenderContributions) {
10101
- super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(graphicRenderContributions);
10080
+ constructor(symbolRenderContribitions) {
10081
+ super(), this.symbolRenderContribitions = symbolRenderContribitions, this.numberType = SYMBOL_NUMBER_TYPE, this.builtinContributions = [defaultSymbolRenderContribution, defaultSymbolBackgroundRenderContribution, defaultSymbolTextureRenderContribution, defaultSymbolClipRangeStrokeRenderContribution], this.init(symbolRenderContribitions);
10102
10082
  }
10103
10083
  drawShape(symbol, context, x, y, drawContext, params, fillCb, strokeCb) {
10104
10084
  var _a;
@@ -10234,8 +10214,8 @@
10234
10214
  };
10235
10215
  };
10236
10216
  let DefaultCanvasPolygonRender = class extends BaseRender {
10237
- constructor(graphicRenderContributions) {
10238
- super(), this.graphicRenderContributions = graphicRenderContributions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(graphicRenderContributions);
10217
+ constructor(polygonRenderContribitions) {
10218
+ super(), this.polygonRenderContribitions = polygonRenderContribitions, this.numberType = POLYGON_NUMBER_TYPE, this.builtinContributions = [defaultPolygonBackgroundRenderContribution, defaultPolygonTextureRenderContribution], this.init(polygonRenderContribitions);
10239
10219
  }
10240
10220
  drawShape(polygon, context, x, y, drawContext, params, fillCb, strokeCb) {
10241
10221
  const polygonAttribute = getTheme(polygon, null == params ? void 0 : params.theme).polygon,