We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53061ff commit 6f663a1Copy full SHA for 6f663a1
src/nodes/geometrynode.ts
@@ -80,7 +80,7 @@ export abstract class GeometryNode extends GraphicsNode {
80
81
protected getBoundingBoxCore(context: Context): Rect {
82
const path = this.getCachedPath(context)
83
- if (!path) {
+ if (!path || !path.segments.length) {
84
return [0, 0, 0, 0]
85
}
86
let minX = Number.POSITIVE_INFINITY
test/common/tests.js
@@ -55,6 +55,7 @@ window.tests = [
55
'style-sheets',
56
'svg-viewbox',
57
'svg-use',
58
+ 'svg-use-empty',
59
'symbols',
60
'text-fill-stroke',
61
'text-placement',
test/specs/svg-use-empty/reference.pdf
3.36 KB
test/specs/svg-use-empty/spec.svg
0 commit comments