<virtual> new Context()
Canvas Context constructor
- Source:
Methods
-
clear(bounds)
-
clear canvas
Parameters:
Name Type Argument Description boundsObject <optional>
Properties
Name Type Argument Description xNumber <optional>
yNumber <optional>
widthNumber <optional>
heightNumber <optional>
- Source:
-
clearTrace()
-
clear trace if trace is enabled
- Source:
-
fillShape(shape)
-
fill shape
Parameters:
Name Type Description shapeKinetic.Shape - Source:
-
fillStrokeShape(shape)
-
fill then stroke
Parameters:
Name Type Description shapeKinetic.Shape - Source:
-
getCanvas() → {Kinetic.Canvas}
-
get canvas
- Source:
Returns:
- Type
- Kinetic.Canvas
-
getTrace(relaxed) → {String}
-
get context trace if trace is enabled
Parameters:
Name Type Description relaxedBoolean if false, return strict context trace, which includes method names, method parameters properties, and property values. If true, return relaxed context trace, which only returns method names and properites.
- Source:
Returns:
- Type
- String
-
reset()
-
reset canvas context transform
- Source:
-
strokeShape(shape)
-
stroke shape
Parameters:
Name Type Description shapeKinetic.Shape - Source: