@visactor/vtable-plugins 1.20.0-alpha.4 → 1.20.0

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.
@@ -742,7 +742,15 @@
742
742
  const EnvContribution = Symbol.for("EnvContribution");
743
743
  const VGlobal = Symbol.for("VGlobal");
744
744
 
745
- class Application {}
745
+ const container = new Container();
746
+
747
+ const RenderService = Symbol.for("RenderService");
748
+
749
+ class Application {
750
+ get renderService() {
751
+ return this._renderService || (this._renderService = container.get(RenderService)), this._renderService;
752
+ }
753
+ }
746
754
  const application = new Application();
747
755
 
748
756
  let idx = 0;
@@ -4712,8 +4720,6 @@
4712
4720
  };
4713
4721
  DefaultTextMeasureContribution = __decorate$p([injectable()], DefaultTextMeasureContribution);
4714
4722
 
4715
- const container = new Container();
4716
-
4717
4723
  const CanvasFactory = Symbol.for("CanvasFactory");
4718
4724
 
4719
4725
  function wrapCanvas(params) {
@@ -11404,7 +11410,6 @@
11404
11410
  decorator(target, key, paramIndex);
11405
11411
  };
11406
11412
  };
11407
- const RenderService = Symbol.for("RenderService");
11408
11413
  let DefaultRenderService = class {
11409
11414
  constructor(drawContribution) {
11410
11415
  this.drawContribution = drawContribution;
@@ -12293,8 +12298,6 @@
12293
12298
  application.transformUtil = transformUtil;
12294
12299
  const graphicService = container.get(GraphicService);
12295
12300
  application.graphicService = graphicService;
12296
- const renderService = container.get(RenderService);
12297
- application.renderService = renderService;
12298
12301
  const layerService = container.get(LayerService);
12299
12302
  application.layerService = layerService;
12300
12303
 
@@ -94885,9 +94888,76 @@ ${recordsStr}
94885
94888
  colSeriesNumberHeight: pluginOptions.colSeriesNumberHeight,
94886
94889
  rowSeriesNumberGenerate: pluginOptions.rowSeriesNumberGenerate,
94887
94890
  colSeriesNumberGenerate: pluginOptions.colSeriesNumberGenerate,
94888
- rowSeriesNumberCellStyle: pluginOptions.rowSeriesNumberCellStyle,
94889
- colSeriesNumberCellStyle: pluginOptions.colSeriesNumberCellStyle,
94890
- cornerCellStyle: pluginOptions.cornerCellStyle
94891
+ rowSeriesNumberCellStyle: Object.assign({
94892
+ text: {
94893
+ fontSize: 14,
94894
+ fill: '#7A7A7A',
94895
+ pickable: false,
94896
+ textAlign: 'left',
94897
+ textBaseline: 'middle',
94898
+ padding: [2, 4, 2, 4]
94899
+ },
94900
+ borderLine: {
94901
+ stroke: '#D9D9D9',
94902
+ lineWidth: 1,
94903
+ pickable: false
94904
+ },
94905
+ bgColor: '#F9F9F9',
94906
+ states: {
94907
+ hover: {
94908
+ fill: '#c8daf6',
94909
+ opacity: 0.7
94910
+ },
94911
+ select: {
94912
+ fill: '#c8daf6',
94913
+ opacity: 1
94914
+ }
94915
+ }
94916
+ }, pluginOptions.rowSeriesNumberCellStyle),
94917
+ colSeriesNumberCellStyle: Object.assign({
94918
+ text: {
94919
+ fontSize: 14,
94920
+ fill: '#7A7A7A',
94921
+ pickable: false,
94922
+ textAlign: 'left',
94923
+ textBaseline: 'middle',
94924
+ padding: [2, 4, 2, 4]
94925
+ },
94926
+ borderLine: {
94927
+ stroke: '#D9D9D9',
94928
+ lineWidth: 1,
94929
+ pickable: false
94930
+ },
94931
+ bgColor: '#F9F9F9',
94932
+ states: {
94933
+ hover: {
94934
+ fill: '#c8daf6',
94935
+ opacity: 0.7
94936
+ },
94937
+ select: {
94938
+ fill: '#c8daf6',
94939
+ opacity: 1
94940
+ }
94941
+ }
94942
+ }, pluginOptions.colSeriesNumberCellStyle),
94943
+ cornerCellStyle: Object.assign({
94944
+ borderLine: {
94945
+ stroke: '#D9D9D9',
94946
+ lineWidth: 1,
94947
+ pickable: false
94948
+ },
94949
+ bgColor: '#F9F9F9',
94950
+ states: {
94951
+ hover: {
94952
+ fill: '#98C8A5',
94953
+ opacity: 0.7
94954
+ },
94955
+ select: {
94956
+ fill: '#98C8A5',
94957
+ opacity: 1
94958
+ }
94959
+ }
94960
+ }, pluginOptions.cornerCellStyle)
94891
94961
  });
94892
94962
  this.listenComponentEvents();
94893
94963
  }
@@ -96842,22 +96912,20 @@ ${recordsStr}
96842
96912
  this.pluginOptions.filterIcon = pluginOptions.filterIcon ?? {
96843
96913
  name: 'filter-icon',
96844
96914
  type: 'svg',
96845
- width: 20,
96846
- height: 20,
96847
- marginRight: 6,
96915
+ width: 12,
96916
+ height: 12,
96848
96917
  positionType: VTable__namespace.TYPES.IconPosition.right,
96849
96918
  cursor: 'pointer',
96850
- svg: '<svg t="1752821809070" class="icon" viewBox="0 0 1664 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12092" width="200" height="200"><path d="M89.6 179.2A89.6 89.6 0 0 1 89.6 0h1408a89.6 89.6 0 0 1 0 179.2H89.6z m256 384a89.6 89.6 0 0 1 0-179.2h896a89.6 89.6 0 0 1 0 179.2h-896z m256 384a89.6 89.6 0 0 1 0-179.2h384a89.6 89.6 0 0 1 0 179.2h-384z" fill="#333333" p-id="12093"></path></svg>'
96919
+ svg: '<svg t="1752821809070" class="icon" viewBox="0 0 1664 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12092" width="200" height="200"><path d="M89.6 179.2A89.6 89.6 0 0 1 89.6 0h1408a89.6 89.6 0 0 1 0 179.2H89.6z m256 384a89.6 89.6 0 0 1 0-179.2h896a89.6 89.6 0 0 1 0 179.2h-896z m256 384a89.6 89.6 0 0 1 0-179.2h384a89.6 89.6 0 0 1 0 179.2h-384z" fill="#93a2b9" p-id="12093"></path></svg>'
96851
96920
  };
96852
96921
  this.pluginOptions.filteringIcon = pluginOptions.filteringIcon ?? {
96853
96922
  name: 'filtering-icon',
96854
96923
  type: 'svg',
96855
- width: 20,
96856
- height: 20,
96857
- marginRight: 6,
96924
+ width: 12,
96925
+ height: 12,
96858
96926
  positionType: VTable__namespace.TYPES.IconPosition.right,
96859
96927
  cursor: 'pointer',
96860
- svg: '<svg t="1752821771292" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11926" width="200" height="200"><path d="M971.614323 53.05548L655.77935 412.054233C635.196622 435.434613 623.906096 465.509377 623.906096 496.583302v495.384307c0 28.975686-35.570152 43.063864-55.353551 21.781723l-159.865852-171.256294c-5.495389-5.895053-8.59279-13.688514-8.592789-21.781722V496.583302c0-31.073925-11.290526-61.148688-31.873254-84.429153L52.385677 53.05548C34.200936 32.472751 48.888611 0 76.365554 0h871.268892c27.476943 0 42.164618 32.472751 23.979877 53.05548z" p-id="11927"></path></svg>'
96928
+ svg: '<svg t="1752821771292" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11926" width="200" height="200"><path d="M971.614323 53.05548L655.77935 412.054233C635.196622 435.434613 623.906096 465.509377 623.906096 496.583302v495.384307c0 28.975686-35.570152 43.063864-55.353551 21.781723l-159.865852-171.256294c-5.495389-5.895053-8.59279-13.688514-8.592789-21.781722V496.583302c0-31.073925-11.290526-61.148688-31.873254-84.429153L52.385677 53.05548C34.200936 32.472751 48.888611 0 76.365554 0h871.268892c27.476943 0 42.164618 32.472751 23.979877 53.05548z" fill="#416eff" p-id="11927"></path></svg>'
96861
96929
  };
96862
96930
  if (!this.pluginOptions.filterModes || !this.pluginOptions.filterModes.length) {
96863
96931
  this.pluginOptions.filterModes = ['byValue', 'byCondition'];