angular-three 1.4.1 → 1.4.2
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/esm2020/lib/renderer/renderer.mjs +4 -1
- package/esm2020/lib/renderer/state.mjs +4 -2
- package/fesm2015/angular-three.mjs +6 -1
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +6 -1
- package/fesm2020/angular-three.mjs.map +1 -1
- package/lib/renderer/renderer.d.ts +1 -0
- package/lib/renderer/state.d.ts +2 -1
- package/package.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -1516,7 +1516,6 @@ class NgtRendererStore {
|
|
|
1516
1516
|
constructor(root) {
|
|
1517
1517
|
this.root = root;
|
|
1518
1518
|
this.comments = [];
|
|
1519
|
-
this.portals = [];
|
|
1520
1519
|
}
|
|
1521
1520
|
createNode(type, node) {
|
|
1522
1521
|
const state = [
|
|
@@ -1707,6 +1706,9 @@ class NgtRendererStore {
|
|
|
1707
1706
|
get rootCdr() {
|
|
1708
1707
|
return this.root.cdr;
|
|
1709
1708
|
}
|
|
1709
|
+
get portals() {
|
|
1710
|
+
return this.root.portals;
|
|
1711
|
+
}
|
|
1710
1712
|
getClosestParentWithInstance(node) {
|
|
1711
1713
|
let parent = node.__ngt_renderer__[1 /* NgtRendererClassId.parent */];
|
|
1712
1714
|
while (parent && parent.__ngt_renderer__[0 /* NgtRendererClassId.type */] !== 'three') {
|
|
@@ -1882,6 +1884,7 @@ class NgtRendererFactory {
|
|
|
1882
1884
|
this.compoundPrefixes = inject(NGT_COMPOUND_PREFIXES);
|
|
1883
1885
|
this.document = inject(DOCUMENT);
|
|
1884
1886
|
this.rendererMap = new Map();
|
|
1887
|
+
this.portals = [];
|
|
1885
1888
|
}
|
|
1886
1889
|
createRenderer(hostElement, type) {
|
|
1887
1890
|
const delegateRenderer = this.delegateRendererFactory.createRenderer(hostElement, type);
|
|
@@ -1894,6 +1897,7 @@ class NgtRendererFactory {
|
|
|
1894
1897
|
const store = new NgtRendererStore({
|
|
1895
1898
|
store: this.store,
|
|
1896
1899
|
cdr: this.cdr,
|
|
1900
|
+
portals: this.portals,
|
|
1897
1901
|
compoundPrefixes: this.compoundPrefixes,
|
|
1898
1902
|
document: this.document,
|
|
1899
1903
|
});
|
|
@@ -1904,6 +1908,7 @@ class NgtRendererFactory {
|
|
|
1904
1908
|
const store = new NgtRendererStore({
|
|
1905
1909
|
store: this.store,
|
|
1906
1910
|
cdr: this.cdr,
|
|
1911
|
+
portals: this.portals,
|
|
1907
1912
|
compoundPrefixes: this.compoundPrefixes,
|
|
1908
1913
|
document: this.document,
|
|
1909
1914
|
});
|