new shape()
shape is a default implementation of a CIQ.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....
- Since:
-
- 2015-11-1
- 9.7.0 Deprecated
- Deprecated:
-
- Yes
Members
-
setRotationOnInitialDraw :boolean
-
If true, enables rotation when the drawing is initially drawn.
Type:
- boolean
- Since:
-
- 7.4.0
- 9.7.0 Deprecated
- Deprecated:
-
- Yes
Methods
-
adjust()
-
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
-
click(context, tick, value)
-
Parameters:
Name Type Description contextexternal:CanvasRenderingContext2D Canvas context
ticknumber Tick, represents x position
valuenumber Prive/value, represents y position
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
Returns:
Success
- Type
- boolean
-
intersected(tick, value, box)
-
Parameters:
Name Type Description ticknumber Tick, represents x position
valuenumber Prive/value, represents y position
boxobject Square area represented by x and y coordinates in which the shape is searched
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
Returns:
An object that contains information about the intersection. This object is passed back to CIQ.Drawing.reposition when repositioning the drawing. Return false or null if not intersected. Simply returning true highlights the drawing.
- Type
- object | undefined
-
littleCircleRadius()
-
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
Returns:
3
- Type
- number
-
measure()
-
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
-
reconstruct(stx [, obj])
-
Reconstruct a shape.
Parameters:
Name Type Argument Description stxCIQ.ChartEngine 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>
Pattern for line "solid", "dotted", or "dashed". Defaults to solid.
lwnumber <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.
fldstring <optional>
Field to which drawing is associated.
vernumber <optional>
Version number of the shape.
prmnumber <optional>
Whether the drawing is permanent
hdnnumber <optional>
Whether the drawing is hidden
- Since:
-
- 8.4.0 Added
fldproperty toobjparameter. - 9.0.0 Added
prmandhdnproperty toobjparameter. - 9.7.0 Deprecated
- 8.4.0 Added
- Deprecated:
-
- Yes
-
render(context)
-
Parameters:
Name Type Description contextexternal:CanvasRenderingContext2D Canvas context
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
-
reposition(context, repositioner, tick, value)
-
Parameters:
Name Type Description contextexternal:CanvasRenderingContext2D Canvas context
repositionerobject Collection of parameters related to repositioning the drawing
ticknumber Tick, represents x position
valuenumber Prive/value, represents y position
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
-
serialize()
-
- Since:
-
9.7.0 Deprecated
- Deprecated:
-
- Yes
Returns:
Serialized drawing parameters
- Type
- object
