consolidate "selector ref" functionality into a re-usable class or function, make it search downwards not just upwards · Issue #300 · lume/lume · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some elements such as TextureProjector, ClipPlane, and SpotLight support referencing or being referenced via attributes that specify a CSS selector. For example,
This works across shadow roots, but currently upwards shadow trees only. It does not search into sibling shadow trees or downwards. For example the lume-mesh in the example will not be able to reference any lume-clip-planes in a shadow tree that is sibling to the shadow tree it is in or any tree below itself or the siblings', which may be limiting. Let's make it search all reachable roots of the given element, not just in upwards shadow trees.
The implementation of this is currently repeated in a similar way in several classes:
ClipPlanesBehavior
SpotLight
ProjectedMaterialBehavior which is has an improved version of the last two
and we're working on more
As we add more elements with references to other elements, we want to stop duplicating the logic.
The text was updated successfully, but these errors were encountered:
trusktr
changed the title
consolidate "selector ref" functionality into a re-usable class or function
consolidate "selector ref" functionality into a re-usable class or function, make it search downwards not just upwards
Apr 30, 2024
Some elements such as TextureProjector, ClipPlane, and SpotLight support referencing or being referenced via attributes that specify a CSS selector. For example,
This works across shadow roots, but currently upwards shadow trees only. It does not search into sibling shadow trees or downwards. For example the
lume-mesh
in the example will not be able to reference anylume-clip-plane
s in a shadow tree that is sibling to the shadow tree it is in or any tree below itself or the siblings', which may be limiting. Let's make it search all reachable roots of the given element, not just in upwards shadow trees.The implementation of this is currently repeated in a similar way in several classes:
ClipPlanesBehavior
SpotLight
ProjectedMaterialBehavior
which is has an improved version of the last twoAs we add more elements with references to other elements, we want to stop duplicating the logic.
The text was updated successfully, but these errors were encountered: