initialises a new instance of a Line.
Configuration properties for the line.
ReadonlyactionsActions advanced for this object as active game time elapses.
ReadonlyidUnique identifier for the game object.
Static_Static helper for tests to bypass Registry circularity if mocked.
The bounds component for this object, defining its physical area.
CSS stroke colour. An empty value uses the canvas stroke style.
The tag component for this object, managing its name and rendering order.
Gets the starting position of the line as a Vector2.
Stroke width of the line in pixels.
The transform component for this object, managing position and scale.
Start x coordinate relative to the line's transform.
End x coordinate relative to the line's transform.
Start y coordinate relative to the line's transform.
End y coordinate relative to the line's transform.
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: unknown
Optional 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.
Move one local endpoint without moving the line's origin or its other endpoint.
Move the line's local origin while keeping both endpoints relative to it.
A basic line object that can be drawn between two points.