@vectojs/core 1.32.6 → 1.33.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/text.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkTRT2TRCWjs = require('./chunk-TRT2TRCW.js');
5
+ var _chunkUEIZDNK7js = require('./chunk-UEIZDNK7.js');
6
6
 
7
7
  // src/text/index.ts
8
8
  var _text = require('@vectojs/text'); _createStarExport(_text);
9
9
 
10
10
 
11
11
 
12
- exports.MSDFTextEntity = _chunkTRT2TRCWjs.MSDFTextEntity; exports.SVGEntity = _chunkTRT2TRCWjs.SVGEntity;
12
+ exports.MSDFTextEntity = _chunkUEIZDNK7js.MSDFTextEntity; exports.SVGEntity = _chunkUEIZDNK7js.SVGEntity;
package/dist/text.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MSDFTextEntity,
3
3
  SVGEntity
4
- } from "./chunk-RWN3ITBD.mjs";
4
+ } from "./chunk-VFQMETOR.mjs";
5
5
 
6
6
  // src/text/index.ts
7
7
  export * from "@vectojs/text";
@@ -481,6 +481,8 @@ export declare class VectoJSEvent<N = unknown> {
481
481
  get deltaX(): number | undefined;
482
482
  /** Native vertical wheel delta, if this wraps a `WheelEvent`. */
483
483
  get deltaY(): number | undefined;
484
+ /** Native wheel delta mode (0=pixels, 1=lines, 2=pages), if this wraps a `WheelEvent`. */
485
+ get deltaMode(): number | undefined;
484
486
  /** Native pointer X, if this wraps a pointer/mouse event. */
485
487
  get clientX(): number | undefined;
486
488
  /** Native pointer Y, if this wraps a pointer/mouse event. */
@@ -638,6 +640,33 @@ export declare abstract class Entity {
638
640
  * fixed viewport. Off by default (children render unclipped). Canvas2D only.
639
641
  */
640
642
  clipChildren: boolean;
643
+ /**
644
+ * Group this subtree's projected text into its own accessibility **region**,
645
+ * without clipping anything.
646
+ *
647
+ * The projection sorts every mirror into visual reading order, and it bands
648
+ * them into rows per region so that side-by-side columns stay contiguous runs
649
+ * in the DOM. That matters beyond reading order: a native `Selection` covers
650
+ * everything between its anchor and focus in DOM order, so two columns banded
651
+ * together let a vertical drag through one of them swallow the other.
652
+ *
653
+ * {@link clipChildren} also establishes a region, because a clipper is
654
+ * usually the column boundary you want. Reach for this flag when the two
655
+ * needs come apart — a sidebar, a card deck or any column that must not be
656
+ * absorbed by its neighbour's drag, but that draws nothing and has no reason
657
+ * to clip. Measured in a real app before this existed: a table-of-contents
658
+ * sidebar had to switch `clipChildren` on purely to escape the body column's
659
+ * bands, buying a per-frame `save`/`clip`/`restore` for an entity that paints
660
+ * nothing.
661
+ *
662
+ * Unlike `clipChildren`, this is honoured regardless of the node's box. The
663
+ * zero-area exemption on the clipping path exists because a zero-area clipper
664
+ * clips nothing; grouping is a declaration of intent that never consults
665
+ * geometry, and a pure grouping container often leaves `width`/`height` at 0.
666
+ *
667
+ * Off by default. Regions nest: the nearest enclosing region wins.
668
+ */
669
+ a11yRegion: boolean;
641
670
  protected listeners: Map<VectoEvent, Array<(e: any) => void>> | null;
642
671
  /** Capture-phase listeners (fired root→target before bubble). */
643
672
  protected captureListeners: Map<VectoEvent, Array<(e: any) => void>> | null;