@visactor/vtable-sheet 1.22.5-alpha.2 → 1.22.5

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/cjs/index.d.ts CHANGED
@@ -2,5 +2,5 @@ import VTableSheet from './components/vtable-sheet';
2
2
  import type { ISheetDefine, IVTableSheetOptions } from './ts-types';
3
3
  import * as TYPES from './ts-types';
4
4
  import * as VTable from './vtable';
5
- export declare const version = "1.22.5-alpha.2";
5
+ export declare const version = "1.22.5";
6
6
  export { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };
package/cjs/index.js CHANGED
@@ -47,4 +47,4 @@ exports.VTable = VTable;
47
47
 
48
48
  const style_manager_1 = require("./styles/style-manager");
49
49
 
50
- exports.version = "1.22.5-alpha.2", (0, style_manager_1.importStyles)();
50
+ exports.version = "1.22.5", (0, style_manager_1.importStyles)();
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.5-alpha.2\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAAoD;AAW3C,sBAXF,sBAAW,CAWE;AATpB,kDAAoC;AASd,sBAAK;AAR3B,iDAAmC;AAQN,wBAAM;AAPnC,0DAAsD;AACzC,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,4BAAY,GAAE,CAAC","file":"index.js","sourcesContent":["import VTableSheet from './components/vtable-sheet';\nimport type { ISheetDefine, IVTableSheetOptions } from './ts-types';\nimport * as TYPES from './ts-types';\nimport * as VTable from './vtable';\nimport { importStyles } from './styles/style-manager';\nexport const version = \"1.22.5\";\n// 导入样式\nimportStyles();\n/**\n * @namespace VTableSheet\n */\nexport { VTableSheet, TYPES, VTable, ISheetDefine, IVTableSheetOptions };\n"]}
@@ -3366,7 +3366,7 @@
3366
3366
 
3367
3367
  const EnvContribution = Symbol.for("EnvContribution");
3368
3368
  const VGlobal = Symbol.for("VGlobal");
3369
- const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
3369
+ const DEFAULT_TEXT_FONT_FAMILY$2 = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,'-apple-system',segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
3370
3370
 
3371
3371
  const container = new Container$2();
3372
3372
 
@@ -7248,7 +7248,7 @@
7248
7248
  textAlign: "left",
7249
7249
  textBaseline: "alphabetic",
7250
7250
  fontSize: 16,
7251
- fontFamily: "PingFang SC,Microsoft Yahei,system-ui,-apple-system,segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol",
7251
+ fontFamily: "PingFang SC,Microsoft Yahei,system-ui,'-apple-system',segoe ui,\n Roboto,Helvetica,Arial,sans-serif, apple color emoji,segoe ui emoji,segoe ui symbol",
7252
7252
  fontWeight: "",
7253
7253
  ellipsis: "…",
7254
7254
  fontVariant: "",
@@ -14145,9 +14145,10 @@
14145
14145
  }
14146
14146
  updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds) {
14147
14147
  const {
14148
- size = symbolTheme.size
14149
- } = attribute;
14150
- return this.getParsedPath().bounds(size, aabbBounds), aabbBounds;
14148
+ size = symbolTheme.size
14149
+ } = attribute,
14150
+ symbolClass = this.getParsedPath();
14151
+ return symbolClass ? (symbolClass.bounds(size, aabbBounds), aabbBounds) : aabbBounds;
14151
14152
  }
14152
14153
  needUpdateTags(keys) {
14153
14154
  return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);
@@ -14156,8 +14157,9 @@
14156
14157
  return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);
14157
14158
  }
14158
14159
  toCustomPath() {
14159
- const symbolInstance = this.getParsedPath(),
14160
- size = this.attribute.size,
14160
+ const symbolInstance = this.getParsedPath();
14161
+ if (!symbolInstance) return null;
14162
+ const size = this.attribute.size,
14161
14163
  formattedSize = isArray$c(size) ? size : [size, size];
14162
14164
  return symbolInstance.path ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : new CustomPath2D().fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
14163
14165
  }
@@ -19732,7 +19734,7 @@
19732
19734
  }));
19733
19735
  }
19734
19736
  enableAutoRefresh() {
19735
- this.autoRefresh || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
19737
+ this.autoRefresh || "node" === this.global.env || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
19736
19738
  }
19737
19739
  disableAutoRefresh() {
19738
19740
  this.autoRefresh && (this.autoRefresh = !1, this.pluginService.findPluginsByName("AutoRefreshPlugin").forEach(plugin => {
@@ -33083,7 +33085,7 @@
33083
33085
  labelStyle: labelStyle
33084
33086
  } = op,
33085
33087
  radius = null == getRadius ? void 0 : getRadius();
33086
- if (!radius) return convertDomainToTickData(scale.domain());
33088
+ if (!radius || radius <= 0) return convertDomainToTickData(scale.domain());
33087
33089
  let scaleTicks;
33088
33090
  if (isValid$6(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$6(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$6(tickCount)) {
33089
33091
  const range = scale.range(),
@@ -48341,7 +48343,7 @@
48341
48343
  prev_justShowMarkTooltip = this.justShowMarkTooltip;
48342
48344
  params.mark && params.datum && !Array.isArray(params.datum) ? (this.activeChartInstanceHoverOnMark = params.mark, justShowMarkTooltip = !0) : (this.activeChartInstanceHoverOnMark = null, justShowMarkTooltip = !1), this.justShowMarkTooltip = justShowMarkTooltip;
48343
48345
  let delayRunDimensionHover = !1;
48344
- if (!0 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? (this.justShowMarkTooltipTimer = Date.now(), delayRunDimensionHover = !0) : !1 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? delayRunDimensionHover = Date.now() - this.justShowMarkTooltipTimer < 100 : (!1 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip || !0 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip) && (delayRunDimensionHover = !1, clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0), "enter" === params.action || preMark !== this.activeChartInstanceHoverOnMark) {
48346
+ if (!0 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? (this.justShowMarkTooltipTimer = Date.now(), delayRunDimensionHover = !0) : !1 === prev_justShowMarkTooltip && !1 === justShowMarkTooltip ? delayRunDimensionHover = Date.now() - this.justShowMarkTooltipTimer < 100 : (!1 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip || !0 === prev_justShowMarkTooltip && !0 === justShowMarkTooltip) && (delayRunDimensionHover = !1, clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0), "enter" === params.action || "move" === params.action || preMark !== this.activeChartInstanceHoverOnMark) {
48345
48347
  const dimensionValue = dimensionInfo.value,
48346
48348
  indicatorsAsCol = table.options.indicatorsAsCol;
48347
48349
  if (delayRunDimensionHover ? (clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = setTimeout(() => {
@@ -59662,7 +59664,7 @@
59662
59664
  }
59663
59665
  constructor(container, options = {}) {
59664
59666
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
59665
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.5-alpha.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
59667
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.5", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
59666
59668
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
59667
59669
  options: options,
59668
59670
  container: container
@@ -62911,7 +62913,7 @@
62911
62913
  domainLine: {
62912
62914
  visible: !0,
62913
62915
  style: {
62914
- lineWidth: 1,
62916
+ lineWidth: 0,
62915
62917
  stroke: "#D9DDE4",
62916
62918
  strokeOpacity: 1
62917
62919
  }
@@ -63001,6 +63003,7 @@
63001
63003
  function getAxisAttributes(option) {
63002
63004
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
63003
63005
  const spec = merge$1({}, option);
63006
+ option.labelHoverOnAxis && !1 === spec.domainLine.visible && (spec.domainLine.style.lineWidth = 0, spec.domainLine.visible = !0);
63004
63007
  let titleTextStyle,
63005
63008
  titleAngle = null !== (_b = null === (_a = spec.title) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0;
63006
63009
  "left" !== spec.orient && "right" !== spec.orient || (null === (_c = spec.title) || void 0 === _c ? void 0 : _c.autoRotate) && isNil$3(spec.title.angle) && (titleAngle = "left" === spec.orient ? -90 : 90, titleTextStyle = DEFAULT_TITLE_STYLE[spec.orient]);
@@ -80844,7 +80847,7 @@
80844
80847
  importStyle();
80845
80848
  }
80846
80849
 
80847
- const version = "1.22.5-alpha.2";
80850
+ const version = "1.22.5";
80848
80851
  importStyles();
80849
80852
 
80850
80853
  exports.TYPES = index;