Module graphics/GraphicsResponse
Interfaces
Type aliases
Type aliases
The scope of the GraphicsObject. This consists of its origin in the given space, whether or not it is a global (single render) object, and the scalar condition under which the object should or should not be drawn.
Type declaration
-
Optional Readonly conditions?: VisibilityConditions
-
Optional Readonly global?: boolean
-
Optional Readonly origin?: AxesOrigin
A range in pixels per domain unit.
Type declaration
-
Optional Readonly max?: number
-
Optional Readonly min?: number
Defines an object that describes the minimum and maximum scalar conditions that must exist for this object to be drawn. This scale is measured in pixels per domain unit. This means that X represents roughly the pixels between bars, and Y is the tick size of the contract.
//adding this condition will cause our text object to render only at px/du > 10
...
items: [
{
conditions: {
scaleRangeX: { min: 10 }
},
tag: 'Text',
key: 'myText',
text: 'rendered!',
alignment: 'centerMiddle',
point: {
x: du(d.index()),
y: op(du(d.value()), '-', px(50))
},
style: { fontSize: 18, fill: "red" },
}
]
...
Type declaration
-
Optional scale
RangeX?: ScaleRange Optional. Roughly equal to the min and/or max number of px between bars required for this object to render.
-
Optional scale
RangeY?: ScaleRange Optional. The min and or max pixels per tick for this object's contract dependency required for this object to render.
Generated using TypeDoc
A type that describes the intersection between
DisplayObject
andGraphicsScope
.