@visactor/vrender-components 0.17.1-alpha.3 → 0.17.1-alpha.4

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/axis/util.js CHANGED
@@ -30,5 +30,4 @@ function getLabelPosition(tickPosition, tickVector, text, style) {
30
30
  };
31
31
  }
32
32
 
33
- exports.clampRadian = clampRadian, exports.isInRange = isInRange, exports.getLabelPosition = getLabelPosition;
34
- //# sourceMappingURL=util.js.map
33
+ exports.clampRadian = clampRadian, exports.isInRange = isInRange, exports.getLabelPosition = getLabelPosition;
package/cjs/brush/type.js CHANGED
@@ -8,4 +8,5 @@ Object.defineProperty(exports, "__esModule", {
8
8
  IOperateType.drawStart = "drawStart", IOperateType.drawEnd = "drawEnd", IOperateType.drawing = "drawing",
9
9
  IOperateType.moving = "moving", IOperateType.moveStart = "moveStart", IOperateType.moveEnd = "moveEnd",
10
10
  IOperateType.brushClear = "brushClear";
11
- }(IOperateType = exports.IOperateType || (exports.IOperateType = {}));
11
+ }(IOperateType = exports.IOperateType || (exports.IOperateType = {}));
12
+ //# sourceMappingURL=type.js.map
@@ -36,5 +36,4 @@ exports.PolygonCrosshair = PolygonCrosshair, PolygonCrosshair.defaultAttributes
36
36
  lineWidth: 1,
37
37
  lineDash: [ 2 ]
38
38
  }
39
- };
40
- //# sourceMappingURL=polygon.js.map
39
+ };
@@ -98,4 +98,5 @@ Object.defineProperty(exports, "__esModule", {
98
98
  fill: "#6F6F6F"
99
99
  }
100
100
  }
101
- };
101
+ };
102
+ //# sourceMappingURL=config.js.map
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.17.1-alpha.3";
1
+ export declare const version = "0.17.1-alpha.4";
2
2
  export * from './core/base';
3
3
  export * from './scrollbar';
4
4
  export * from './tag';
package/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "0.17.1-alpha.3", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "0.17.1-alpha.4", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./scrollbar"), exports), __exportStar(require("./tag"), exports),
22
22
  __exportStar(require("./poptip"), exports), __exportStar(require("./crosshair"), exports),
23
23
  __exportStar(require("./label"), exports), __exportStar(require("./axis"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.17.1-alpha.3\";\n\nexport * from './core/base';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.17.1-alpha.4\";\n\nexport * from './core/base';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\n"]}
@@ -1,2 +1,3 @@
1
1
  export * from './poptip';
2
2
  export * from './type';
3
+ export { loadPoptip, setPoptipTheme } from './register';
@@ -17,5 +17,20 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), __exportStar(require("./poptip"), exports), __exportStar(require("./type"), exports);
20
+ }), exports.setPoptipTheme = exports.loadPoptip = void 0, __exportStar(require("./poptip"), exports),
21
+ __exportStar(require("./type"), exports);
22
+
23
+ var register_1 = require("./register");
24
+
25
+ Object.defineProperty(exports, "loadPoptip", {
26
+ enumerable: !0,
27
+ get: function() {
28
+ return register_1.loadPoptip;
29
+ }
30
+ }), Object.defineProperty(exports, "setPoptipTheme", {
31
+ enumerable: !0,
32
+ get: function() {
33
+ return register_1.setPoptipTheme;
34
+ }
35
+ });
21
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/poptip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB","file":"index.js","sourcesContent":["export * from './poptip';\nexport * from './type';\n"]}
1
+ {"version":3,"sources":["../src/poptip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,uCAAwD;AAA/C,sGAAA,UAAU,OAAA;AAAE,0GAAA,cAAc,OAAA","file":"index.js","sourcesContent":["export * from './poptip';\nexport * from './type';\nexport { loadPoptip, setPoptipTheme } from './register';\n"]}
package/dist/index.js CHANGED
@@ -12023,8 +12023,8 @@
12023
12023
  shadowOffsetX = _attribute$shadowOffs === void 0 ? theme.shadowOffsetX : _attribute$shadowOffs,
12024
12024
  _attribute$shadowOffs2 = attribute.shadowOffsetY,
12025
12025
  shadowOffsetY = _attribute$shadowOffs2 === void 0 ? theme.shadowOffsetY : _attribute$shadowOffs2,
12026
- shadowBlurWidth = shadowBlur / Math.abs(scaleX + scaleY) * 2 + Math.max(shadowOffsetX, shadowOffsetY);
12027
- boundStroke(tb1, shadowBlurWidth, miter, strokeBoundsBuffer + 1), aabbBounds.union(tb1);
12026
+ shadowBlurWidth = shadowBlur / Math.abs(scaleX + scaleY) * 2;
12027
+ boundStroke(tb1, shadowBlurWidth, !1, strokeBoundsBuffer + 1), tb1.translate(shadowOffsetX, shadowOffsetY), aabbBounds.union(tb1);
12028
12028
  }
12029
12029
  this.combindShadowAABBBounds(aabbBounds, graphic);
12030
12030
  var updateMatrix = !0;
@@ -19247,7 +19247,7 @@
19247
19247
  injectable()
19248
19248
  ], PopTipForClipedTextPlugin);
19249
19249
 
19250
- new ContainerModule((bind, unbind, isBound, rebind) => {
19250
+ const popTipModule = new ContainerModule((bind, unbind, isBound, rebind) => {
19251
19251
  if (!isBound(PopTipRenderContribution)) {
19252
19252
  bind(PopTipRenderContribution).toSelf().inSingletonScope();
19253
19253
  bind(InteractiveSubRenderContribution).toService(PopTipRenderContribution);
@@ -19261,12 +19261,18 @@
19261
19261
  bind(AutoEnablePlugins).toService(PopTipForClipedTextPlugin);
19262
19262
  }
19263
19263
  });
19264
+ function loadPoptip() {
19265
+ container.load(popTipModule);
19266
+ }
19264
19267
  function loadPoptipComponent() {
19265
19268
  registerGroup();
19266
19269
  registerWrapText();
19267
19270
  registerSymbol();
19268
19271
  registerRect();
19269
19272
  }
19273
+ function setPoptipTheme(defaultPoptipTheme) {
19274
+ vutils.merge(theme.poptip, DEFAULT_THEME, defaultPoptipTheme);
19275
+ }
19270
19276
 
19271
19277
  const _tBounds = new vutils.AABBBounds();
19272
19278
  loadPoptipComponent();
@@ -29794,7 +29800,7 @@
29794
29800
  }
29795
29801
  };
29796
29802
 
29797
- const version = "0.17.1-alpha.3";
29803
+ const version = "0.17.1-alpha.4";
29798
29804
 
29799
29805
  exports.AbstractComponent = AbstractComponent;
29800
29806
  exports.ArcInfo = ArcInfo;
@@ -29853,6 +29859,8 @@
29853
29859
  exports.getHorizontalPath = getHorizontalPath;
29854
29860
  exports.getSizeHandlerPath = getSizeHandlerPath;
29855
29861
  exports.getVerticalPath = getVerticalPath;
29862
+ exports.loadPoptip = loadPoptip;
29863
+ exports.setPoptipTheme = setPoptipTheme;
29856
29864
  exports.version = version;
29857
29865
 
29858
29866
  }));