new shape()
shape is a default implementation of a STX.Drawing.BaseTwoPoint drawing which places a "shape" on the canvas. It can be rotated and/or stretched. It is meant to be overridden with specific shape designs, such as arrows....
- Version:
-
- ChartIQ Advanced Package
- Since:
-
- 2015-11-1
Methods
-
reconstruct(stx [, obj])
-
Reconstruct a shape
Parameters:
Name Type Argument Description stxSTXChart The chart object
objobject <optional>
A drawing descriptor
Properties
Name Type Argument Description colstring <optional>
The border color
fcstring <optional>
The fill color
pnlstring <optional>
The panel name
ptrnstring <optional>
Optional pattern for line "solid","dotted","dashed". Defaults to solid.
lwnumber <optional>
Optional line width. Defaults to 1.
v0number <optional>
Value (price) for the center point
d0number <optional>
Date (string form) for the center point
tzo0number <optional>
Offset of UTC from d0 in minutes
anumber <optional>
Angle of the rotation in degrees
sxnumber <optional>
Horizontal scale factor
synumber <optional>
Vertical scale factor