UNPKG

@visactor/vrender-core

Version:
10 lines (9 loc) 526 B
export const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => { const {outerBorder: outerBorder, shadowBlur: shadowBlur = theme.shadowBlur} = attribute; if (outerBorder) { const defaultOuterBorder = theme.outerBorder, {distance: distance = defaultOuterBorder.distance, lineWidth: lineWidth = defaultOuterBorder.lineWidth} = outerBorder; aabbBounds.expand(distance + (shadowBlur + lineWidth) / 2); } return aabbBounds; }; //# sourceMappingURL=common-outer-boder-bounds.js.map