initialises a new instance of a Line.
Configuration properties for the line.
ReadonlyidUnique identifier for the game object.
Stroke width of the line in pixels.
Start x coordinate in world space.
End x coordinate in world space.
Start y coordinate in world space.
End y coordinate in world space.
Static_Static helper for tests to bypass Registry circularity if mocked.
The bounds component for this object, defining its physical area.
The tag component for this object, managing its name and rendering order.
Gets the starting position of the line as a Vector2.
The transform component for this object, managing position and scale.
Adds a component to this game object.
The component instance to add.
Removes this object from the active scene or global engine loop.
Emits a custom event on this object's event bus.
The event type.
Optionaldetail: unknownOptional data to pass with the event.
Retrieves a component from this object by its class.
The class of the component to retrieve.
The component instance, or undefined if not found.
Checks if this object has a component of the specified class.
The class to check for.
True if the component exists.
Stops listening for an event on this object's event bus.
The event type.
The function to remove.
Listens for an event on this object's event bus.
The event type.
The function to run when the event occurs.
Registers this object with the active scene or global engine loop.
Removes a component from this game object by its class.
The class of the component to remove.
A basic line object that can be drawn between two points.