@vectojs/core 1.3.0 → 1.4.1
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.js +10 -5
- package/dist/index.mjs +10 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -549,6 +549,11 @@ var Scene = (_class2 = class _Scene {
|
|
|
549
549
|
this.activePortalsThisFrame.delete(node.id);
|
|
550
550
|
this.activePortalsPrevFrame.delete(node.id);
|
|
551
551
|
}
|
|
552
|
+
const contentEl = this.contentElements.get(node.id);
|
|
553
|
+
if (contentEl) {
|
|
554
|
+
contentEl.remove();
|
|
555
|
+
this.contentElements.delete(node.id);
|
|
556
|
+
}
|
|
552
557
|
const el = this.a11yElements.get(node.id);
|
|
553
558
|
if (el) {
|
|
554
559
|
if (el === this.focusedA11yElement) {
|
|
@@ -588,11 +593,6 @@ var Scene = (_class2 = class _Scene {
|
|
|
588
593
|
* @param entity - The subtree whose shadow nodes should be removed.
|
|
589
594
|
*/
|
|
590
595
|
detachA11y(entity) {
|
|
591
|
-
const contentEl = this.contentElements.get(entity.id);
|
|
592
|
-
if (contentEl) {
|
|
593
|
-
contentEl.remove();
|
|
594
|
-
this.contentElements.delete(entity.id);
|
|
595
|
-
}
|
|
596
596
|
this.removeA11yRecursively(entity);
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
@@ -1104,6 +1104,11 @@ var Scene = (_class2 = class _Scene {
|
|
|
1104
1104
|
this.activeIds.clear();
|
|
1105
1105
|
const collect = (node) => {
|
|
1106
1106
|
if (node.isDOMPortal) return;
|
|
1107
|
+
const contentEl = this.contentElements.get(node.id);
|
|
1108
|
+
if (contentEl) {
|
|
1109
|
+
if (node.a11yFullViewport) this.fullViewportElements.push(contentEl);
|
|
1110
|
+
else this.normalElements.push(contentEl);
|
|
1111
|
+
}
|
|
1107
1112
|
if (node.interactive && (node.width > 0 || node.a11yFullViewport)) {
|
|
1108
1113
|
const el = this.a11yElements.get(node.id);
|
|
1109
1114
|
if (el) {
|
package/dist/index.mjs
CHANGED
|
@@ -549,6 +549,11 @@ var Scene = class _Scene {
|
|
|
549
549
|
this.activePortalsThisFrame.delete(node.id);
|
|
550
550
|
this.activePortalsPrevFrame.delete(node.id);
|
|
551
551
|
}
|
|
552
|
+
const contentEl = this.contentElements.get(node.id);
|
|
553
|
+
if (contentEl) {
|
|
554
|
+
contentEl.remove();
|
|
555
|
+
this.contentElements.delete(node.id);
|
|
556
|
+
}
|
|
552
557
|
const el = this.a11yElements.get(node.id);
|
|
553
558
|
if (el) {
|
|
554
559
|
if (el === this.focusedA11yElement) {
|
|
@@ -588,11 +593,6 @@ var Scene = class _Scene {
|
|
|
588
593
|
* @param entity - The subtree whose shadow nodes should be removed.
|
|
589
594
|
*/
|
|
590
595
|
detachA11y(entity) {
|
|
591
|
-
const contentEl = this.contentElements.get(entity.id);
|
|
592
|
-
if (contentEl) {
|
|
593
|
-
contentEl.remove();
|
|
594
|
-
this.contentElements.delete(entity.id);
|
|
595
|
-
}
|
|
596
596
|
this.removeA11yRecursively(entity);
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
@@ -1104,6 +1104,11 @@ var Scene = class _Scene {
|
|
|
1104
1104
|
this.activeIds.clear();
|
|
1105
1105
|
const collect = (node) => {
|
|
1106
1106
|
if (node.isDOMPortal) return;
|
|
1107
|
+
const contentEl = this.contentElements.get(node.id);
|
|
1108
|
+
if (contentEl) {
|
|
1109
|
+
if (node.a11yFullViewport) this.fullViewportElements.push(contentEl);
|
|
1110
|
+
else this.normalElements.push(contentEl);
|
|
1111
|
+
}
|
|
1107
1112
|
if (node.interactive && (node.width > 0 || node.a11yFullViewport)) {
|
|
1108
1113
|
const el = this.a11yElements.get(node.id);
|
|
1109
1114
|
if (el) {
|