BoundaryVisibilitySystem

Classes

BoundaryVisibilitySystemMRSystem

Makes the entities invisible if they are outside of their parent panels

Functions

observe(root, target)IntersectionObserver

Observe a target MRDivEntity and make the associated object visible only if it is in visible position in a root MRDivEntity

BoundaryVisibilitySystem ⇐ MRSystem

Makes the entities invisible if they are outside of their parent panels

Kind: global class
Extends: MRSystem

boundaryVisibilitySystem.BoundaryVisibilitySystem

Kind: instance class of BoundaryVisibilitySystem

new exports.BoundaryVisibilitySystem()

BoundaryVisibilitySystem’s default constructor.

boundaryVisibilitySystem.onNewEntity(entity)

Called when a new entity is added to the scene.

Kind: instance method of BoundaryVisibilitySystem

Param Type Description
entity object the entity being added.

boundaryVisibilitySystem._entityRemoved(entity)

Called when an entity is removed from the scene.

Kind: instance method of BoundaryVisibilitySystem

Param Type Description
entity object the entity being added.

observe(root, target) ⇒ IntersectionObserver

Observe a target MRDivEntity and make the associated object visible only if it is in visible position in a root MRDivEntity

Kind: global function
Returns: IntersectionObserver - - an observer for tracking visiblity

Param Type Description
root MRDivEntity the root object being compared against
target MRDivEntity the target object for which we’re determining visiblity.