@visactor/vrender-core 0.16.18 → 0.16.19-alpha.1
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/graphic/config.d.ts +2 -1
- package/cjs/graphic/config.js +5 -3
- package/cjs/graphic/config.js.map +1 -1
- package/cjs/graphic/graphic-service/graphic-service.js +2 -2
- package/cjs/graphic/graphic-service/graphic-service.js.map +1 -1
- package/cjs/interface/graphic.d.ts +4 -1
- package/cjs/interface/graphic.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.min.js +1 -1
- package/es/graphic/config.d.ts +2 -1
- package/es/graphic/config.js +6 -2
- package/es/graphic/config.js.map +1 -1
- package/es/graphic/graphic-service/graphic-service.js +2 -2
- package/es/graphic/graphic-service/graphic-service.js.map +1 -1
- package/es/interface/graphic.d.ts +4 -1
- package/es/interface/graphic.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4300,7 +4300,10 @@
|
|
|
4300
4300
|
lineClamp: Infinity,
|
|
4301
4301
|
suffixPosition: 'end'
|
|
4302
4302
|
};
|
|
4303
|
-
const
|
|
4303
|
+
const DefaultPickStyle = {
|
|
4304
|
+
pickStrokeBuffer: 0
|
|
4305
|
+
};
|
|
4306
|
+
const DefaultStyle = Object.assign(Object.assign(Object.assign(Object.assign({ opacity: 1, background: null, texture: null, textureColor: 'black', textureSize: 10, texturePadding: 2, backgroundMode: 'no-repeat', blur: 0, cursor: null, html: null }, DefaultFillStyle), DefaultStrokeStyle), DefaultLayout), DefaultPickStyle);
|
|
4304
4307
|
const DefaultConnectAttribute = {
|
|
4305
4308
|
connectedType: 'none',
|
|
4306
4309
|
connectedStyle: {},
|
|
@@ -19366,11 +19369,11 @@
|
|
|
19366
19369
|
}
|
|
19367
19370
|
}
|
|
19368
19371
|
transformAABBBounds(attribute, aabbBounds, theme, miter, graphic) {
|
|
19369
|
-
const { scaleX = theme.scaleX, scaleY = theme.scaleY, stroke = theme.stroke, shadowBlur = theme.shadowBlur, lineWidth = theme.lineWidth, strokeBoundsBuffer = theme.strokeBoundsBuffer } = attribute;
|
|
19372
|
+
const { scaleX = theme.scaleX, scaleY = theme.scaleY, stroke = theme.stroke, shadowBlur = theme.shadowBlur, lineWidth = theme.lineWidth, pickStrokeBuffer = theme.pickStrokeBuffer, strokeBoundsBuffer = theme.strokeBoundsBuffer } = attribute;
|
|
19370
19373
|
const tb1 = this.tempAABBBounds1;
|
|
19371
19374
|
const tb2 = this.tempAABBBounds2;
|
|
19372
19375
|
if (stroke) {
|
|
19373
|
-
const scaledHalfLineWidth = lineWidth / Math.abs(scaleX + scaleY);
|
|
19376
|
+
const scaledHalfLineWidth = (lineWidth + pickStrokeBuffer) / Math.abs(scaleX + scaleY);
|
|
19374
19377
|
boundStroke(tb1, scaledHalfLineWidth, miter, strokeBoundsBuffer);
|
|
19375
19378
|
aabbBounds.union(tb1);
|
|
19376
19379
|
tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
|
|
@@ -27889,6 +27892,7 @@
|
|
|
27889
27892
|
exports.DefaultMatrixAllocate = DefaultMatrixAllocate;
|
|
27890
27893
|
exports.DefaultMorphingAnimateConfig = DefaultMorphingAnimateConfig;
|
|
27891
27894
|
exports.DefaultPathAttribute = DefaultPathAttribute;
|
|
27895
|
+
exports.DefaultPickStyle = DefaultPickStyle;
|
|
27892
27896
|
exports.DefaultPolygonAttribute = DefaultPolygonAttribute;
|
|
27893
27897
|
exports.DefaultRect3dAttribute = DefaultRect3dAttribute;
|
|
27894
27898
|
exports.DefaultRectAttribute = DefaultRectAttribute;
|