@svgsketch/core 1.6.0 → 1.7.0

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/dist/index.d.mts CHANGED
@@ -2559,6 +2559,20 @@ interface SymbolLibraryDef extends LibraryDefBase {
2559
2559
  */
2560
2560
  defKind?: 'symbol' | 'group';
2561
2561
  viewBox: string;
2562
+ /**
2563
+ * Source `overflow` value, captured when explicitly set on the source
2564
+ * `<symbol>` (either as `overflow="visible"` or `style="overflow:visible"`).
2565
+ * Per SVG 2 §15.4.3 / §5.5.2, `<symbol>` is one of the elements whose UA
2566
+ * style sheet defaults `overflow` to `hidden` because it establishes a new
2567
+ * viewport — content drawn outside the use's `width`/`height` viewport
2568
+ * gets clipped. Inkscape and Cairo emit text-converted-to-glyph symbols
2569
+ * as `<symbol style="overflow:visible">` referenced by `<use width="1"
2570
+ * height="1">`, relying on `overflow:visible` to let the glyph paths
2571
+ * (with native coords ~0–7) spill the 1×1 viewport. Round-tripping the
2572
+ * value preserves that contract; emitting nothing falls back to the UA
2573
+ * `hidden` and silently clips the glyphs to invisible 1×1 boxes.
2574
+ */
2575
+ overflow?: 'visible' | 'hidden';
2562
2576
  /**
2563
2577
  * Wrapper attributes from the source `<g id="X">` def root that apply to
2564
2578
  * the def's contents (transform, opacity, fill cascade, mask, filter,
package/dist/index.d.ts CHANGED
@@ -2559,6 +2559,20 @@ interface SymbolLibraryDef extends LibraryDefBase {
2559
2559
  */
2560
2560
  defKind?: 'symbol' | 'group';
2561
2561
  viewBox: string;
2562
+ /**
2563
+ * Source `overflow` value, captured when explicitly set on the source
2564
+ * `<symbol>` (either as `overflow="visible"` or `style="overflow:visible"`).
2565
+ * Per SVG 2 §15.4.3 / §5.5.2, `<symbol>` is one of the elements whose UA
2566
+ * style sheet defaults `overflow` to `hidden` because it establishes a new
2567
+ * viewport — content drawn outside the use's `width`/`height` viewport
2568
+ * gets clipped. Inkscape and Cairo emit text-converted-to-glyph symbols
2569
+ * as `<symbol style="overflow:visible">` referenced by `<use width="1"
2570
+ * height="1">`, relying on `overflow:visible` to let the glyph paths
2571
+ * (with native coords ~0–7) spill the 1×1 viewport. Round-tripping the
2572
+ * value preserves that contract; emitting nothing falls back to the UA
2573
+ * `hidden` and silently clips the glyphs to invisible 1×1 boxes.
2574
+ */
2575
+ overflow?: 'visible' | 'hidden';
2562
2576
  /**
2563
2577
  * Wrapper attributes from the source `<g id="X">` def root that apply to
2564
2578
  * the def's contents (transform, opacity, fill cascade, mask, filter,