angular-three 1.4.0 → 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.
@@ -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 = [
@@ -1698,7 +1697,8 @@ class NgtRendererStore {
1698
1697
  return this.root.compoundPrefixes.some((prefix) => name.startsWith(prefix));
1699
1698
  }
1700
1699
  isDOM(node) {
1701
- return node instanceof Element || node instanceof Document;
1700
+ return (node['__ngt_renderer__']?.[0 /* NgtRendererClassId.type */] !== 'compound' &&
1701
+ (node instanceof Element || node instanceof Document));
1702
1702
  }
1703
1703
  get rootScene() {
1704
1704
  return this.root.store.get('scene');
@@ -1706,6 +1706,9 @@ class NgtRendererStore {
1706
1706
  get rootCdr() {
1707
1707
  return this.root.cdr;
1708
1708
  }
1709
+ get portals() {
1710
+ return this.root.portals;
1711
+ }
1709
1712
  getClosestParentWithInstance(node) {
1710
1713
  let parent = node.__ngt_renderer__[1 /* NgtRendererClassId.parent */];
1711
1714
  while (parent && parent.__ngt_renderer__[0 /* NgtRendererClassId.type */] !== 'three') {
@@ -1881,6 +1884,7 @@ class NgtRendererFactory {
1881
1884
  this.compoundPrefixes = inject(NGT_COMPOUND_PREFIXES);
1882
1885
  this.document = inject(DOCUMENT);
1883
1886
  this.rendererMap = new Map();
1887
+ this.portals = [];
1884
1888
  }
1885
1889
  createRenderer(hostElement, type) {
1886
1890
  const delegateRenderer = this.delegateRendererFactory.createRenderer(hostElement, type);
@@ -1893,6 +1897,7 @@ class NgtRendererFactory {
1893
1897
  const store = new NgtRendererStore({
1894
1898
  store: this.store,
1895
1899
  cdr: this.cdr,
1900
+ portals: this.portals,
1896
1901
  compoundPrefixes: this.compoundPrefixes,
1897
1902
  document: this.document,
1898
1903
  });
@@ -1903,6 +1908,7 @@ class NgtRendererFactory {
1903
1908
  const store = new NgtRendererStore({
1904
1909
  store: this.store,
1905
1910
  cdr: this.cdr,
1911
+ portals: this.portals,
1906
1912
  compoundPrefixes: this.compoundPrefixes,
1907
1913
  document: this.document,
1908
1914
  });