Skip to content

Container

Every FComponent in @fibbojs/2d has a container attribute that corresponds to the PixiJS Container that will be used to render the component.

This is either a Graphics (for rectangles, circles,...) or a Sprite (basically an image) depending on the component.

Unless you have a good reason to do so, you should not modify the container attribute directly, but use the provided methods instead.