| 35 | * @advanced |
| 36 | */ |
| 37 | export interface ShapePrimitive |
| 38 | { |
| 39 | /** The type of the object, mainly used to avoid `instanceof` checks */ |
| 40 | readonly type: SHAPE_PRIMITIVE | (string & {}); |
| 41 | |
| 42 | /** Checks whether the x and y coordinates passed to this function are contained within this ShapePrimitive. */ |
| 43 | contains(x: number, y: number): boolean; |
| 44 | /** Checks whether the x and y coordinates passed to this function are contained within the stroke of this shape */ |
| 45 | strokeContains(x: number, y: number, strokeWidth: number, alignment?: number): boolean; |
| 46 | /** Creates a clone of this ShapePrimitive instance. */ |
| 47 | clone(): ShapePrimitive; |
| 48 | /** Copies the properties from another ShapePrimitive to this ShapePrimitive. */ |
| 49 | copyFrom(source: ShapePrimitive): void; |
| 50 | /** Copies the properties from this ShapePrimitive to another ShapePrimitive. */ |
| 51 | copyTo(destination: ShapePrimitive): void; |
| 52 | /** Returns the framing rectangle of the ShapePrimitive as a Rectangle object. */ |
| 53 | getBounds(out?: Rectangle): Rectangle; |
| 54 | |
| 55 | /** The X coordinate of the shape */ |
| 56 | readonly x: number; |
| 57 | /** The Y coordinate of the shape */ |
| 58 | readonly y: number; |
| 59 | } |
no outgoing calls
no test coverage detected