BoundaryLocator

final class BoundaryLocator(animationsRegister: AnimationsRegister, fontRegister: FontRegister, dynamicText: DynamicText)
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def bounds(sceneNode: SceneNode): Rectangle

Finds the bounds or returns a Rectangle of size zero for convenience.

Finds the bounds or returns a Rectangle of size zero for convenience.

Safely finds the bounds of any given scene node, if the node has bounds. It is not possible to sensibly measure the bounds of some node types, such as clones, and some nodes are dependant on external data that may be missing.

Safely finds the bounds of any given scene node, if the node has bounds. It is not possible to sensibly measure the bounds of some node types, such as clones, and some nodes are dependant on external data that may be missing.

Measures the size of a TextBox using the browsers canvas APIs. This is a slow operation.

Measures the size of a TextBox using the browsers canvas APIs. This is a slow operation.

def textBounds(text: Text[_]): Rectangle
def textLineBounds(lineText: String, fontInfo: FontInfo): Rectangle