@asyra/selection 0.5.2 → 0.5.3
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# @asyra/selection
|
|
2
|
+
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22883b1: Support owner-coordinated runtime replacement for applications such as Asyra Sim.
|
|
8
|
+
Quiesce feature work before retiring runtime-owned state, subscriptions, input
|
|
9
|
+
bindings, render resources, and registration graphs. Retain preset installation
|
|
10
|
+
cleanup and prevent callbacks from a retired runtime from affecting its successor.
|
|
11
|
+
|
|
12
|
+
Expose Core document-load preflight and validated renderer resizing through the
|
|
13
|
+
public facade. Applications can validate a replacement document before retiring
|
|
14
|
+
the active runtime, while ordinary document loading retains its existing history
|
|
15
|
+
ownership contract.
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [22883b1]
|
|
18
|
+
- @asyra/utils@0.5.2
|
|
19
|
+
|
|
20
|
+
## 0.5.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Republish the affected Framework packages with publishable internal dependency
|
|
25
|
+
ranges instead of monorepo-only `workspace:*` metadata.
|
|
26
|
+
|
|
27
|
+
## 0.5.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Exceptional synchronized patch release for the fixed 19-package Framework set.
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @asyra/utils@0.5.1
|
|
34
|
+
|
|
35
|
+
## 0.5.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- Exceptional synchronized minor release for the fixed 19-package Framework set.
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
- @asyra/utils@0.5.0
|
|
45
|
+
|
|
46
|
+
## 0.2.5
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Auto-patch all packages.
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
- @asyra/reactive-events@0.2.5
|
|
53
|
+
- @asyra/utils@0.2.5
|
|
54
|
+
|
|
55
|
+
## 0.2.4
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Auto-patch all packages.
|
|
60
|
+
- Updated dependencies
|
|
61
|
+
- @asyra/reactive-events@0.2.4
|
|
62
|
+
- @asyra/utils@0.2.4
|
|
63
|
+
|
|
64
|
+
## 0.2.3
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- Auto-patch all packages.
|
|
69
|
+
- Updated dependencies
|
|
70
|
+
- @asyra/reactive-events@0.2.3
|
|
71
|
+
- @asyra/utils@0.2.3
|
|
72
|
+
|
|
73
|
+
## 0.2.2
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- Auto-patch all packages.
|
|
78
|
+
- Updated dependencies
|
|
79
|
+
- @asyra/reactive-events@0.2.2
|
|
80
|
+
- @asyra/utils@0.2.2
|
|
81
|
+
|
|
82
|
+
## 0.2.1
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- Auto-patch all packages.
|
|
87
|
+
- Updated dependencies
|
|
88
|
+
- @asyra/reactive-events@0.2.1
|
|
89
|
+
- @asyra/utils@0.2.1
|
package/README.md
CHANGED
|
@@ -42,8 +42,12 @@ Registration creates stable channel metadata. Selection operations update only t
|
|
|
42
42
|
|
|
43
43
|
## Support and policy
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
GitHub Discussions is the intended public channel for community conversation and
|
|
46
|
+
general help. Discussions is not enabled for this repository yet, so there is
|
|
47
|
+
currently no public community support destination. GitHub Issues are not a
|
|
48
|
+
general public support channel. External pull requests are not accepted by
|
|
49
|
+
default. Community participation creates no SLA or response deadline.
|
|
50
|
+
|
|
51
|
+
You may use, inspect, and fork the package under the [MIT License](https://github.com/karote00/asyra/blob/main/LICENSE).
|
|
52
|
+
Read the <a href="https://github.com/karote00/asyra/blob/main/SUPPORT.md" target="_blank" rel="noopener noreferrer">support policy</a>.
|
|
53
|
+
For suspected vulnerabilities, follow the <a href="https://github.com/karote00/asyra/blob/main/SECURITY.md" target="_blank" rel="noopener noreferrer">security policy</a> and report privately.
|
|
@@ -6,6 +6,8 @@ declare class SelectionManager {
|
|
|
6
6
|
unregister(type: string): boolean;
|
|
7
7
|
getChannelByAction(action: string): string | undefined;
|
|
8
8
|
clearAllSelections(): void;
|
|
9
|
+
/** Release channel instances without publishing selection mutations. */
|
|
10
|
+
resetRuntime(): void;
|
|
9
11
|
getElementSelectionIds(): string[];
|
|
10
12
|
}
|
|
11
13
|
export default SelectionManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-manager.d.ts","sourceRoot":"","sources":["../src/selection-manager.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,gCAAgC,CAAA;AAEtD,cAAM,gBAAgB;IACpB,OAAO,CAAC,UAAU,CAAuC;IAEzD,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAMlD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAIxC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAUjC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAYtD,kBAAkB,IAAI,IAAI;IAI1B,sBAAsB,IAAI,MAAM,EAAE;CAGnC;AAED,eAAe,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"selection-manager.d.ts","sourceRoot":"","sources":["../src/selection-manager.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,gCAAgC,CAAA;AAEtD,cAAM,gBAAgB;IACpB,OAAO,CAAC,UAAU,CAAuC;IAEzD,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAMlD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAIxC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAUjC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAYtD,kBAAkB,IAAI,IAAI;IAI1B,wEAAwE;IACxE,YAAY,IAAI,IAAI;IAcpB,sBAAsB,IAAI,MAAM,EAAE;CAGnC;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -31,6 +31,22 @@ class SelectionManager {
|
|
|
31
31
|
clearAllSelections() {
|
|
32
32
|
this.selections.values().forEach((selection) => selection.clear());
|
|
33
33
|
}
|
|
34
|
+
/** Release channel instances without publishing selection mutations. */
|
|
35
|
+
resetRuntime() {
|
|
36
|
+
const selections = new Set(this.selections.values());
|
|
37
|
+
this.selections.clear();
|
|
38
|
+
const failures = [];
|
|
39
|
+
selections.forEach((selection) => {
|
|
40
|
+
try {
|
|
41
|
+
selection.dispose();
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
failures.push(error);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
if (failures.length > 0)
|
|
48
|
+
throw failures[0];
|
|
49
|
+
}
|
|
34
50
|
getElementSelectionIds() {
|
|
35
51
|
return Array.from(this.selections.get('element')?.getSelectedIds() || []);
|
|
36
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-manager.js","sourceRoot":"","sources":["../src/selection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,MAAM,gBAAgB;IAAtB;QACU,eAAU,GAAG,IAAI,WAAW,EAAqB,CAAA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ED,wEAAwE;IACxE,YAAY;QACV,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;QACpD,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA;QACvB,MAAM,QAAQ,GAAc,EAAE,CAAA;QAC9B,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC/B,IAAI,CAAC;gBACH,SAAS,CAAC,OAAO,EAAE,CAAA;YACrB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC;QACH,CAAC,CAAC,CAAA;QACF,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC5C,CAAC;IAED,sBAAsB;QACpB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAA;IAC3E,CAAC;CACF;AAED,eAAe,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyra/selection",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "A selection management library for handling element, vertex, edge, or any other selectable entities in a scene graph.",
|
|
5
5
|
"author": "Asa Tsai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
"vitest": "^3.2.6"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@asyra/utils": "0.5.
|
|
50
|
+
"@asyra/utils": "0.5.2"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|