@vectojs/core 1.18.0 → 1.20.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.
@@ -251,6 +251,24 @@ var Entity = class {
251
251
  * nodes, so on-top components stay clickable.
252
252
  */
253
253
  a11yFullViewport = false;
254
+ /**
255
+ * Hide this entity AND its whole subtree from the accessibility/automation
256
+ * projection, regardless of each node's own `interactive` flag.
257
+ *
258
+ * For a container that is logically closed while still mounted — an `Overlay`
259
+ * after `hide()`, a collapsed panel kept in the tree for its transition. Setting
260
+ * `interactive = false` on the container alone is not enough: the projection walk
261
+ * still descends, and any still-interactive child is re-created on the next
262
+ * frame. Measured before this existed: after `Popover.hide()` the popover's own
263
+ * element was gone while its button stayed projected with `tabIndex: 0` and a
264
+ * live box, so a keyboard user could Tab into a hidden popover.
265
+ *
266
+ * Deliberately NOT inferred from `opacity`: `Overlay.hide()` springs opacity
267
+ * toward 0, so mid-transition it reads nonzero (~0.26 when measured) and an
268
+ * `=== 0` test never fires; a threshold would instead silently un-project a
269
+ * faint-but-live control.
270
+ */
271
+ a11yHidden = false;
254
272
  /**
255
273
  * Clip this node's children to its local box (`[0,0]–[width,height]`) while
256
274
  * rendering. Combined with translating a content child, this is how
@@ -253,20 +253,38 @@ var Entity = (_class2 = class {
253
253
  * nodes, so on-top components stay clickable.
254
254
  */
255
255
  __init33() {this.a11yFullViewport = false}
256
+ /**
257
+ * Hide this entity AND its whole subtree from the accessibility/automation
258
+ * projection, regardless of each node's own `interactive` flag.
259
+ *
260
+ * For a container that is logically closed while still mounted — an `Overlay`
261
+ * after `hide()`, a collapsed panel kept in the tree for its transition. Setting
262
+ * `interactive = false` on the container alone is not enough: the projection walk
263
+ * still descends, and any still-interactive child is re-created on the next
264
+ * frame. Measured before this existed: after `Popover.hide()` the popover's own
265
+ * element was gone while its button stayed projected with `tabIndex: 0` and a
266
+ * live box, so a keyboard user could Tab into a hidden popover.
267
+ *
268
+ * Deliberately NOT inferred from `opacity`: `Overlay.hide()` springs opacity
269
+ * toward 0, so mid-transition it reads nonzero (~0.26 when measured) and an
270
+ * `=== 0` test never fires; a threshold would instead silently un-project a
271
+ * faint-but-live control.
272
+ */
273
+ __init34() {this.a11yHidden = false}
256
274
  /**
257
275
  * Clip this node's children to its local box (`[0,0]–[width,height]`) while
258
276
  * rendering. Combined with translating a content child, this is how
259
277
  * scroll/overflow containers (e.g. `ScrollView`) keep their content inside a
260
278
  * fixed viewport. Off by default (children render unclipped). Canvas2D only.
261
279
  */
262
- __init34() {this.clipChildren = false}
280
+ __init35() {this.clipChildren = false}
263
281
  // Lazily allocated (see _drivers above). Most entities never register a
264
282
  // listener or an imperative animate() tween.
265
- __init35() {this.listeners = null}
283
+ __init36() {this.listeners = null}
266
284
  /** Capture-phase listeners (fired root→target before bubble). */
267
- __init36() {this.captureListeners = null}
268
- __init37() {this.animations = null}
269
- constructor(id) {;_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);_class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);_class2.prototype.__init16.call(this);_class2.prototype.__init17.call(this);_class2.prototype.__init18.call(this);_class2.prototype.__init19.call(this);_class2.prototype.__init20.call(this);_class2.prototype.__init21.call(this);_class2.prototype.__init22.call(this);_class2.prototype.__init23.call(this);_class2.prototype.__init24.call(this);_class2.prototype.__init25.call(this);_class2.prototype.__init26.call(this);_class2.prototype.__init27.call(this);_class2.prototype.__init28.call(this);_class2.prototype.__init29.call(this);_class2.prototype.__init30.call(this);_class2.prototype.__init31.call(this);_class2.prototype.__init32.call(this);_class2.prototype.__init33.call(this);_class2.prototype.__init34.call(this);_class2.prototype.__init35.call(this);_class2.prototype.__init36.call(this);_class2.prototype.__init37.call(this);
285
+ __init37() {this.captureListeners = null}
286
+ __init38() {this.animations = null}
287
+ constructor(id) {;_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);_class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);_class2.prototype.__init16.call(this);_class2.prototype.__init17.call(this);_class2.prototype.__init18.call(this);_class2.prototype.__init19.call(this);_class2.prototype.__init20.call(this);_class2.prototype.__init21.call(this);_class2.prototype.__init22.call(this);_class2.prototype.__init23.call(this);_class2.prototype.__init24.call(this);_class2.prototype.__init25.call(this);_class2.prototype.__init26.call(this);_class2.prototype.__init27.call(this);_class2.prototype.__init28.call(this);_class2.prototype.__init29.call(this);_class2.prototype.__init30.call(this);_class2.prototype.__init31.call(this);_class2.prototype.__init32.call(this);_class2.prototype.__init33.call(this);_class2.prototype.__init34.call(this);_class2.prototype.__init35.call(this);_class2.prototype.__init36.call(this);_class2.prototype.__init37.call(this);_class2.prototype.__init38.call(this);
270
288
  this.id = id || `entity_${Math.random().toString(36).substring(2, 9)}`;
271
289
  }
272
290
  /**
@@ -1041,15 +1059,15 @@ var MSDFTextEntity = (_class3 = class extends Entity {
1041
1059
  // joined by soft hyphens (U+00AD); the worker then treats those as break
1042
1060
  // opportunities. `text` keeps the original string for a11y/content
1043
1061
  // projection; `layoutText` is the soft-hyphen-annotated string sent to layout.
1044
- __init38() {this.hyphenator = null}
1045
- __init39() {this.layoutText = ""}
1046
- __init40() {this.text = ""}
1047
- __init41() {this.lastRenderedSeqId = 0}
1048
- __init42() {this.rgbColorCache = /* @__PURE__ */ new Map()}
1049
- __init43() {this.fontStringCache = []}
1050
- __init44() {this.layoutResult = null}
1062
+ __init39() {this.hyphenator = null}
1063
+ __init40() {this.layoutText = ""}
1064
+ __init41() {this.text = ""}
1065
+ __init42() {this.lastRenderedSeqId = 0}
1066
+ __init43() {this.rgbColorCache = /* @__PURE__ */ new Map()}
1067
+ __init44() {this.fontStringCache = []}
1068
+ __init45() {this.layoutResult = null}
1051
1069
  constructor(text, options) {
1052
- super();_class3.prototype.__init38.call(this);_class3.prototype.__init39.call(this);_class3.prototype.__init40.call(this);_class3.prototype.__init41.call(this);_class3.prototype.__init42.call(this);_class3.prototype.__init43.call(this);_class3.prototype.__init44.call(this);;
1070
+ super();_class3.prototype.__init39.call(this);_class3.prototype.__init40.call(this);_class3.prototype.__init41.call(this);_class3.prototype.__init42.call(this);_class3.prototype.__init43.call(this);_class3.prototype.__init44.call(this);_class3.prototype.__init45.call(this);;
1053
1071
  this.font = options.font;
1054
1072
  this.texture = options.texture;
1055
1073
  this.fallbackFont = _nullishCoalesce(options.fallbackFont, () => ( "sans-serif"));
@@ -1269,19 +1287,19 @@ function readSvgAttribute(source, name) {
1269
1287
  return null;
1270
1288
  }
1271
1289
  var SVGEntity = (_class4 = class extends Entity {
1272
- __init45() {this.svgSource = ""}
1273
- __init46() {this.imageBitmap = null}
1274
- __init47() {this.imageElement = null}
1275
- __init48() {this.blobURL = null}
1276
- __init49() {this.currentImg = null}
1277
- __init50() {this.lodTimeout = null}
1278
- __init51() {this.cachedDoc = null}
1279
- __init52() {this.baseWidth = 100}
1280
- __init53() {this.baseHeight = 100}
1281
- __init54() {this.lastRasterizedScale = 1}
1282
- __init55() {this.targetScale = 1}
1290
+ __init46() {this.svgSource = ""}
1291
+ __init47() {this.imageBitmap = null}
1292
+ __init48() {this.imageElement = null}
1293
+ __init49() {this.blobURL = null}
1294
+ __init50() {this.currentImg = null}
1295
+ __init51() {this.lodTimeout = null}
1296
+ __init52() {this.cachedDoc = null}
1297
+ __init53() {this.baseWidth = 100}
1298
+ __init54() {this.baseHeight = 100}
1299
+ __init55() {this.lastRasterizedScale = 1}
1300
+ __init56() {this.targetScale = 1}
1283
1301
  constructor(svgSource, id) {
1284
- super(id);_class4.prototype.__init45.call(this);_class4.prototype.__init46.call(this);_class4.prototype.__init47.call(this);_class4.prototype.__init48.call(this);_class4.prototype.__init49.call(this);_class4.prototype.__init50.call(this);_class4.prototype.__init51.call(this);_class4.prototype.__init52.call(this);_class4.prototype.__init53.call(this);_class4.prototype.__init54.call(this);_class4.prototype.__init55.call(this);;
1302
+ super(id);_class4.prototype.__init46.call(this);_class4.prototype.__init47.call(this);_class4.prototype.__init48.call(this);_class4.prototype.__init49.call(this);_class4.prototype.__init50.call(this);_class4.prototype.__init51.call(this);_class4.prototype.__init52.call(this);_class4.prototype.__init53.call(this);_class4.prototype.__init54.call(this);_class4.prototype.__init55.call(this);_class4.prototype.__init56.call(this);;
1285
1303
  this.setSVGSource(svgSource);
1286
1304
  }
1287
1305
  setSVGSource(svgSource) {