figureone 0.15.10 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/figureone.min.js +1 -1
- package/index.js +79167 -0
- package/package.json +15 -1
- package/types/index.d.ts +132 -0
- package/types/js/figure/Animation/Animation.d.ts +36 -0
- package/types/js/figure/Animation/AnimationBuilder.d.ts +173 -0
- package/types/js/figure/Animation/AnimationManager.d.ts +392 -0
- package/types/js/figure/Animation/AnimationStep/CustomStep.d.ts +99 -0
- package/types/js/figure/Animation/AnimationStep/DelayStep.d.ts +24 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ColorAnimationStep.d.ts +203 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/OpacityAnimationStep.d.ts +220 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PositionAnimationStep.d.ts +124 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PulseAnimationStep.d.ts +137 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PulseTransformAnimationStep.d.ts +52 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/RotationAnimationStep.d.ts +119 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ScaleAnimationStep.d.ts +93 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ScenarioAnimationStep.d.ts +204 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/TransformAnimationStep.d.ts +163 -0
- package/types/js/figure/Animation/AnimationStep/ElementAnimationStep.d.ts +56 -0
- package/types/js/figure/Animation/AnimationStep/ParallelAnimationStep.d.ts +70 -0
- package/types/js/figure/Animation/AnimationStep/SerialAnimationStep.d.ts +84 -0
- package/types/js/figure/Animation/AnimationStep/TriggerStep.d.ts +106 -0
- package/types/js/figure/Animation/AnimationStep.d.ts +110 -0
- package/types/js/figure/DrawContext2D.d.ts +9 -0
- package/types/js/figure/DrawingObjects/DrawingObject.d.ts +45 -0
- package/types/js/figure/DrawingObjects/GLObject/GLObject.d.ts +146 -0
- package/types/js/figure/DrawingObjects/HTMLObject/HTMLObject.d.ts +29 -0
- package/types/js/figure/DrawingObjects/TextObject/TextObject.d.ts +94 -0
- package/types/js/figure/DrawingObjects/TextObject/glyphMeasures.d.ts +7 -0
- package/types/js/figure/DrawingObjects/VertexObject/VertexGeneric.d.ts +21 -0
- package/types/js/figure/DrawingObjects/VertexObject/VertexObject.d.ts +0 -0
- package/types/js/figure/DrawingObjects/VertexObject/VertexText.d.ts +34 -0
- package/types/js/figure/Element.d.ts +1212 -0
- package/types/js/figure/Equation/Elements/BaseAnnotationFunction.d.ts +118 -0
- package/types/js/figure/Equation/Elements/BaseEquationFunction.d.ts +20 -0
- package/types/js/figure/Equation/Elements/Bounds.d.ts +49 -0
- package/types/js/figure/Equation/Elements/Color.d.ts +7 -0
- package/types/js/figure/Equation/Elements/Container.d.ts +5 -0
- package/types/js/figure/Equation/Elements/Element.d.ts +95 -0
- package/types/js/figure/Equation/Elements/Fraction.d.ts +5 -0
- package/types/js/figure/Equation/Elements/Lines.d.ts +5 -0
- package/types/js/figure/Equation/Elements/Matrix.d.ts +5 -0
- package/types/js/figure/Equation/Elements/Offset.d.ts +5 -0
- package/types/js/figure/Equation/Elements/Scale.d.ts +5 -0
- package/types/js/figure/Equation/Equation.d.ts +984 -0
- package/types/js/figure/Equation/EquationForm.d.ts +139 -0
- package/types/js/figure/Equation/EquationFunctions.d.ts +3367 -0
- package/types/js/figure/Equation/EquationSymbols.d.ts +1646 -0
- package/types/js/figure/Equation/HTMLEquation.d.ts +56 -0
- package/types/js/figure/Equation/Symbols/AngleBracket.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/Arrow.d.ts +17 -0
- package/types/js/figure/Equation/Symbols/Bar.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/Box.d.ts +11 -0
- package/types/js/figure/Equation/Symbols/Brace.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/Bracket.d.ts +8 -0
- package/types/js/figure/Equation/Symbols/Division.d.ts +8 -0
- package/types/js/figure/Equation/Symbols/Integral.d.ts +7 -0
- package/types/js/figure/Equation/Symbols/Line.d.ts +5 -0
- package/types/js/figure/Equation/Symbols/Product.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/Radical.d.ts +9 -0
- package/types/js/figure/Equation/Symbols/SquareBracket.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/Strike.d.ts +8 -0
- package/types/js/figure/Equation/Symbols/Sum.d.ts +6 -0
- package/types/js/figure/Equation/Symbols/SymbolNew.d.ts +15 -0
- package/types/js/figure/Equation/Symbols/Vinculum.d.ts +6 -0
- package/types/js/figure/Figure.d.ts +711 -0
- package/types/js/figure/FigureCollections/Angle.d.ts +766 -0
- package/types/js/figure/FigureCollections/Axis.d.ts +517 -0
- package/types/js/figure/FigureCollections/Axis3.d.ts +118 -0
- package/types/js/figure/FigureCollections/Button.d.ts +195 -0
- package/types/js/figure/FigureCollections/EquationLabel.d.ts +77 -0
- package/types/js/figure/FigureCollections/FigureCollections.d.ts +122 -0
- package/types/js/figure/FigureCollections/Legend.d.ts +270 -0
- package/types/js/figure/FigureCollections/Line.d.ts +587 -0
- package/types/js/figure/FigureCollections/Plot.d.ts +558 -0
- package/types/js/figure/FigureCollections/PolyLine.d.ts +487 -0
- package/types/js/figure/FigureCollections/Rectangle.d.ts +235 -0
- package/types/js/figure/FigureCollections/SlideNavigator.d.ts +255 -0
- package/types/js/figure/FigureCollections/Slider.d.ts +155 -0
- package/types/js/figure/FigureCollections/Text.d.ts +307 -0
- package/types/js/figure/FigureCollections/Toggle.d.ts +185 -0
- package/types/js/figure/FigureCollections/Trace.d.ts +237 -0
- package/types/js/figure/FigurePrimitives/FigureElementPrimitive2DText.d.ts +119 -0
- package/types/js/figure/FigurePrimitives/FigureElementPrimitiveGLText.d.ts +94 -0
- package/types/js/figure/FigurePrimitives/FigureElementPrimitiveGesture.d.ts +536 -0
- package/types/js/figure/FigurePrimitives/FigureElementPrimitiveMorph.d.ts +175 -0
- package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes.d.ts +788 -0
- package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes2D.d.ts +1324 -0
- package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes3D.d.ts +1105 -0
- package/types/js/figure/FigurePrimitives/FigurePrimitives.d.ts +173 -0
- package/types/js/figure/FigurePrimitives/Generic.d.ts +5 -0
- package/types/js/figure/FigurePrimitives/Text.d.ts +17 -0
- package/types/js/figure/FontManager.d.ts +113 -0
- package/types/js/figure/Gesture.d.ts +39 -0
- package/types/js/figure/Recorder/Recorder.d.ts +291 -0
- package/types/js/figure/Recorder/parseState.d.ts +3 -0
- package/types/js/figure/Recorder/recorder.worker.d.ts +1 -0
- package/types/js/figure/Recorder/state.d.ts +7 -0
- package/types/js/figure/SlideNavigator.d.ts +606 -0
- package/types/js/figure/TimeKeeper.d.ts +174 -0
- package/types/js/figure/geometries/arc.d.ts +18 -0
- package/types/js/figure/geometries/arrow.d.ts +215 -0
- package/types/js/figure/geometries/buffer.d.ts +4 -0
- package/types/js/figure/geometries/copy/copy.d.ts +178 -0
- package/types/js/figure/geometries/ellipse.d.ts +17 -0
- package/types/js/figure/geometries/line.d.ts +13 -0
- package/types/js/figure/geometries/lines/corners.d.ts +7 -0
- package/types/js/figure/geometries/lines/dashes.d.ts +23 -0
- package/types/js/figure/geometries/lines/lines.d.ts +31 -0
- package/types/js/figure/geometries/polygon/polygon.d.ts +12 -0
- package/types/js/figure/geometries/rectangle.d.ts +19 -0
- package/types/js/figure/geometries/triangle.d.ts +27 -0
- package/types/js/figure/webgl/Atlas.d.ts +42 -0
- package/types/js/figure/webgl/shaders.d.ts +143 -0
- package/types/js/figure/webgl/target.d.ts +9 -0
- package/types/js/figure/webgl/webgl.d.ts +54 -0
- package/types/js/tools/FunctionMap.d.ts +69 -0
- package/types/js/tools/color.d.ts +11 -0
- package/types/js/tools/colorNames.d.ts +2 -0
- package/types/js/tools/d2/polygon.d.ts +60 -0
- package/types/js/tools/d2/triangles.d.ts +0 -0
- package/types/js/tools/d3/cone.d.ts +57 -0
- package/types/js/tools/d3/cube.d.ts +26 -0
- package/types/js/tools/d3/cylinder.d.ts +45 -0
- package/types/js/tools/d3/line3.d.ts +55 -0
- package/types/js/tools/d3/prism.d.ts +49 -0
- package/types/js/tools/d3/revolve.d.ts +87 -0
- package/types/js/tools/d3/sphere.d.ts +33 -0
- package/types/js/tools/d3/surface.d.ts +47 -0
- package/types/js/tools/g2.d.ts +242 -0
- package/types/js/tools/geometry/Bounds.d.ts +446 -0
- package/types/js/tools/geometry/Line.d.ts +314 -0
- package/types/js/tools/geometry/Path.d.ts +67 -0
- package/types/js/tools/geometry/Plane.d.ts +201 -0
- package/types/js/tools/geometry/Point.d.ts +359 -0
- package/types/js/tools/geometry/Rect.d.ts +115 -0
- package/types/js/tools/geometry/Transform.d.ts +623 -0
- package/types/js/tools/geometry/angle.d.ts +105 -0
- package/types/js/tools/geometry/common.d.ts +9 -0
- package/types/js/tools/geometry/coordinates.d.ts +30 -0
- package/types/js/tools/geometry/deceleration.d.ts +13 -0
- package/types/js/tools/geometry/polygon.d.ts +4 -0
- package/types/js/tools/geometry/quaternion.d.ts +15 -0
- package/types/js/tools/geometry/scene.d.ts +282 -0
- package/types/js/tools/geometry/tools.d.ts +8 -0
- package/types/js/tools/geometry/types.d.ts +2 -0
- package/types/js/tools/getCssColors.d.ts +1 -0
- package/types/js/tools/getCssVariables.d.ts +4 -0
- package/types/js/tools/getImageData.d.ts +1 -0
- package/types/js/tools/getScssColors.d.ts +2 -0
- package/types/js/tools/htmlGenerator.d.ts +85 -0
- package/types/js/tools/m2.d.ts +24 -0
- package/types/js/tools/m3.d.ts +71 -0
- package/types/js/tools/math.d.ts +112 -0
- package/types/js/tools/morph.d.ts +651 -0
- package/types/js/tools/styleSheets.d.ts +3 -0
- package/types/js/tools/tools.d.ts +281 -0
- package/types/js/tools/types.d.ts +305 -0
- package/figureone.worker.js +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bounds from './Bounds';
|
|
3
|
+
import type { ElementInterface } from './Element';
|
|
4
|
+
import SymbolNew from '../Symbols/SymbolNew';
|
|
5
|
+
import { FunctionMap } from '../../../tools/FunctionMap';
|
|
6
|
+
import type { TypeColor } from '../../../tools/types';
|
|
7
|
+
export type EQN_Annotation = {
|
|
8
|
+
xPosition: 'left' | 'center' | 'right' | number;
|
|
9
|
+
yPosition: 'bottom' | 'baseline' | 'middle' | 'top' | number;
|
|
10
|
+
xAlign: 'left' | 'center' | 'right' | number;
|
|
11
|
+
yAlign: 'bottom' | 'baseline' | 'middle' | 'top' | number;
|
|
12
|
+
offset: Point;
|
|
13
|
+
scale: number;
|
|
14
|
+
content: ElementInterface;
|
|
15
|
+
inSize: boolean;
|
|
16
|
+
fullContentBounds: boolean;
|
|
17
|
+
reference?: string;
|
|
18
|
+
};
|
|
19
|
+
export type EQN_EncompassGlyph = {
|
|
20
|
+
symbol?: string;
|
|
21
|
+
annotations?: Array<EQN_Annotation>;
|
|
22
|
+
space: number;
|
|
23
|
+
topSpace?: number;
|
|
24
|
+
leftSpace?: number;
|
|
25
|
+
bottomSpace?: number;
|
|
26
|
+
rightSpace?: number;
|
|
27
|
+
};
|
|
28
|
+
export type EQN_LineGlyph = {
|
|
29
|
+
symbol?: string;
|
|
30
|
+
annotationIndex: number;
|
|
31
|
+
content: {
|
|
32
|
+
xAlign: 'left' | 'center' | 'right' | number | string;
|
|
33
|
+
yAlign: 'bottom' | 'baseline' | 'middle' | 'top' | number | string;
|
|
34
|
+
space: number;
|
|
35
|
+
};
|
|
36
|
+
annotation: {
|
|
37
|
+
xAlign: 'left' | 'center' | 'right' | number | string;
|
|
38
|
+
yAlign: 'bottom' | 'baseline' | 'middle' | 'top' | number | string;
|
|
39
|
+
space: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type EQN_LeftRightGlyph = {
|
|
43
|
+
symbol?: string;
|
|
44
|
+
annotations?: Array<EQN_Annotation>;
|
|
45
|
+
space: number;
|
|
46
|
+
overhang: number;
|
|
47
|
+
topSpace?: number;
|
|
48
|
+
bottomSpace?: number;
|
|
49
|
+
minContentHeight?: number;
|
|
50
|
+
minContentDescent?: number;
|
|
51
|
+
minContentAscent?: number;
|
|
52
|
+
descent?: number;
|
|
53
|
+
height?: number;
|
|
54
|
+
yOffset: number;
|
|
55
|
+
annotationsOverContent?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type EQN_TopBottomGlyph = {
|
|
58
|
+
symbol?: string;
|
|
59
|
+
annotations?: Array<EQN_Annotation>;
|
|
60
|
+
space: number;
|
|
61
|
+
overhang: number;
|
|
62
|
+
width?: number;
|
|
63
|
+
leftSpace?: number;
|
|
64
|
+
rightSpace?: number;
|
|
65
|
+
xOffset: number;
|
|
66
|
+
annotationsOverContent?: boolean;
|
|
67
|
+
};
|
|
68
|
+
export type TypeAnnotatedGlyph = {
|
|
69
|
+
glyph: SymbolNew;
|
|
70
|
+
annotations: Array<EQN_Annotation>;
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
location: Point;
|
|
74
|
+
};
|
|
75
|
+
export type EQN_Glyphs = {
|
|
76
|
+
left?: TypeAnnotatedGlyph & EQN_LeftRightGlyph;
|
|
77
|
+
right?: TypeAnnotatedGlyph & EQN_LeftRightGlyph;
|
|
78
|
+
top?: TypeAnnotatedGlyph & EQN_TopBottomGlyph;
|
|
79
|
+
bottom?: TypeAnnotatedGlyph & EQN_TopBottomGlyph;
|
|
80
|
+
encompass?: TypeAnnotatedGlyph & EQN_EncompassGlyph;
|
|
81
|
+
line?: TypeAnnotatedGlyph & EQN_LineGlyph;
|
|
82
|
+
};
|
|
83
|
+
export default class BaseAnnotationFunction implements ElementInterface {
|
|
84
|
+
ascent: number;
|
|
85
|
+
descent: number;
|
|
86
|
+
width: number;
|
|
87
|
+
location: Point;
|
|
88
|
+
height: number;
|
|
89
|
+
scale: number;
|
|
90
|
+
showContent: boolean;
|
|
91
|
+
color: TypeColor | null;
|
|
92
|
+
fullSize: {
|
|
93
|
+
leftOffset: number;
|
|
94
|
+
width: number;
|
|
95
|
+
descent: number;
|
|
96
|
+
ascent: number;
|
|
97
|
+
height: number;
|
|
98
|
+
};
|
|
99
|
+
fnMap: FunctionMap;
|
|
100
|
+
content: ElementInterface;
|
|
101
|
+
annotations: Array<EQN_Annotation>;
|
|
102
|
+
glyphs: EQN_Glyphs;
|
|
103
|
+
options: Record<string, any>;
|
|
104
|
+
constructor(content: ElementInterface, annotations: Array<EQN_Annotation>, glyphs: EQN_Glyphs, options: Record<string, any>, showContent?: boolean);
|
|
105
|
+
_dup(namedCollection?: Record<string, any>): any;
|
|
106
|
+
cleanup(): void;
|
|
107
|
+
getAllElements(includeHidden?: boolean): any[];
|
|
108
|
+
setPositions(): void;
|
|
109
|
+
setColor(colorIn?: TypeColor | null): void;
|
|
110
|
+
offsetLocation(offset?: Point): void;
|
|
111
|
+
calcSize(location: Point, scale: number): void;
|
|
112
|
+
setEncompassGlyph(scale: number, contentBoundsIn: Bounds): [Bounds, Bounds];
|
|
113
|
+
setLineGlyph(annotationBounds: Bounds, contentBounds: Bounds): void;
|
|
114
|
+
setVerticalGlyph(scale: number, contentBounds: Bounds, glyphName: 'left' | 'right'): [Bounds, Bounds];
|
|
115
|
+
setHorizontalGlyph(scale: number, contentBoundsIn: Bounds, glyphName: 'top' | 'bottom'): [Bounds, Bounds];
|
|
116
|
+
setAnnotationPosition(contentToAnnotateBounds: Bounds, annotation: EQN_Annotation, scale: number): void;
|
|
117
|
+
getBounds(useFullSize?: boolean): Bounds;
|
|
118
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import { Elements } from './Element';
|
|
3
|
+
import Symbol from '../Symbols/SymbolNew';
|
|
4
|
+
import type { TypeColor } from '../../../tools/types';
|
|
5
|
+
export default class BaseEquationFunction extends Elements {
|
|
6
|
+
contents: Array<Elements | null>;
|
|
7
|
+
glyphs: Array<Symbol | null | undefined>;
|
|
8
|
+
glyphLocations: Array<Point>;
|
|
9
|
+
glyphWidths: Array<number>;
|
|
10
|
+
glyphHeights: Array<number>;
|
|
11
|
+
showContent: boolean;
|
|
12
|
+
options: Record<string, any>;
|
|
13
|
+
constructor(content: Elements | null | Array<Elements | null>, glyph: Symbol | null | undefined | Array<Symbol | null | undefined>, options: Record<string, any>, showContent?: boolean);
|
|
14
|
+
_dup(namedCollection?: Record<string, any>): any;
|
|
15
|
+
getAllElements(includeHidden?: boolean): any[];
|
|
16
|
+
setPositions(): void;
|
|
17
|
+
setColor(colorIn?: TypeColor | null): void;
|
|
18
|
+
offsetLocation(offset?: Point): void;
|
|
19
|
+
calcSize(location: Point, scale: number): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Point, Rect } from '../../../tools/g2';
|
|
2
|
+
type TypeBounds = {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
ascent: number;
|
|
6
|
+
descent: number;
|
|
7
|
+
top: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left: number;
|
|
10
|
+
right: number;
|
|
11
|
+
annotations?: {
|
|
12
|
+
[referenceName: string]: {
|
|
13
|
+
xPosition: 'left' | 'center' | 'right' | number;
|
|
14
|
+
yPosition: 'bottom' | 'baseline' | 'middle' | 'top' | number;
|
|
15
|
+
xAlign: 'left' | 'center' | 'right' | number;
|
|
16
|
+
yAlign: 'bottom' | 'baseline' | 'middle' | 'top' | number;
|
|
17
|
+
offset?: Point;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default class Bounds {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
ascent: number;
|
|
25
|
+
descent: number;
|
|
26
|
+
top: number;
|
|
27
|
+
bottom: number;
|
|
28
|
+
left: number;
|
|
29
|
+
right: number;
|
|
30
|
+
constructor(boundsIn?: {
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
ascent?: number;
|
|
34
|
+
descent?: number;
|
|
35
|
+
top?: number;
|
|
36
|
+
bottom?: number;
|
|
37
|
+
left?: number;
|
|
38
|
+
right?: number;
|
|
39
|
+
});
|
|
40
|
+
toRect(): Rect;
|
|
41
|
+
copyFrom(from: Record<string, any>): void;
|
|
42
|
+
leftOffset(leftDelta: number): void;
|
|
43
|
+
rightOffset(rightDelta: number): void;
|
|
44
|
+
topOffset(topDelta: number): void;
|
|
45
|
+
bottomOffset(bottomDelta: number): void;
|
|
46
|
+
offset(top: number, right: number, bottom: number, left: number): void;
|
|
47
|
+
growWithSameBaseline(newBounds: TypeBounds): void;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import BaseEquationFunction from './BaseEquationFunction';
|
|
3
|
+
import type { TypeColor } from '../../../tools/types';
|
|
4
|
+
export default class Color extends BaseEquationFunction {
|
|
5
|
+
color: TypeColor | null;
|
|
6
|
+
calcSize(location: Point, scale: number): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bounds from './Bounds';
|
|
3
|
+
import { FigureElementPrimitive, FigureElementCollection } from '../../Element';
|
|
4
|
+
import { FunctionMap } from '../../../tools/FunctionMap';
|
|
5
|
+
import type { TypeColor } from '../../../tools/types';
|
|
6
|
+
export interface ElementInterface {
|
|
7
|
+
ascent: number;
|
|
8
|
+
descent: number;
|
|
9
|
+
width: number;
|
|
10
|
+
location: Point;
|
|
11
|
+
height: number;
|
|
12
|
+
showContent: boolean;
|
|
13
|
+
fullSize: {
|
|
14
|
+
leftOffset: number;
|
|
15
|
+
width: number;
|
|
16
|
+
descent: number;
|
|
17
|
+
ascent: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
fnMap: FunctionMap;
|
|
21
|
+
calcSize(location: Point, scale: number): void;
|
|
22
|
+
_dup(namedCollection?: Record<string, any>): ElementInterface;
|
|
23
|
+
getAllElements(includeHidden?: boolean): Array<ElementInterface | FigureElementPrimitive | FigureElementCollection>;
|
|
24
|
+
setPositions(): void;
|
|
25
|
+
offsetLocation(offset: Point): void;
|
|
26
|
+
getBounds(useFullSize?: boolean): Bounds;
|
|
27
|
+
cleanup(): void;
|
|
28
|
+
setColor(colorIn: TypeColor | null): void;
|
|
29
|
+
}
|
|
30
|
+
declare class BlankElement {
|
|
31
|
+
ascent: number;
|
|
32
|
+
descent: number;
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
color: TypeColor;
|
|
36
|
+
constructor(width?: number, ascent?: number, descent?: number);
|
|
37
|
+
_dup(): BlankElement;
|
|
38
|
+
}
|
|
39
|
+
declare class Element implements ElementInterface {
|
|
40
|
+
content: FigureElementPrimitive | FigureElementCollection | BlankElement;
|
|
41
|
+
ascent: number;
|
|
42
|
+
descent: number;
|
|
43
|
+
width: number;
|
|
44
|
+
location: Point;
|
|
45
|
+
height: number;
|
|
46
|
+
scale: number;
|
|
47
|
+
fnMap: FunctionMap;
|
|
48
|
+
showContent: boolean;
|
|
49
|
+
color: TypeColor | null;
|
|
50
|
+
defaultColor: TypeColor;
|
|
51
|
+
fullSize: {
|
|
52
|
+
leftOffset: number;
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
ascent: number;
|
|
56
|
+
descent: number;
|
|
57
|
+
};
|
|
58
|
+
constructor(content: FigureElementPrimitive | FigureElementCollection | BlankElement);
|
|
59
|
+
cleanup(): void;
|
|
60
|
+
calcSize(location: Point, scale: number): void;
|
|
61
|
+
_dup(namedCollection?: Record<string, any>): Element;
|
|
62
|
+
getAllElements(includeHidden?: boolean): (FigureElementCollection | FigureElementPrimitive)[];
|
|
63
|
+
setPositions(): void;
|
|
64
|
+
setColor(colorIn?: TypeColor | null): void;
|
|
65
|
+
offsetLocation(offset?: Point): void;
|
|
66
|
+
getBounds(useFullSize?: boolean): Bounds;
|
|
67
|
+
}
|
|
68
|
+
declare class Elements implements ElementInterface {
|
|
69
|
+
content: Array<ElementInterface>;
|
|
70
|
+
ascent: number;
|
|
71
|
+
descent: number;
|
|
72
|
+
width: number;
|
|
73
|
+
location: Point;
|
|
74
|
+
height: number;
|
|
75
|
+
fnMap: FunctionMap;
|
|
76
|
+
showContent: boolean;
|
|
77
|
+
color: TypeColor | null;
|
|
78
|
+
fullSize: {
|
|
79
|
+
leftOffset: number;
|
|
80
|
+
width: number;
|
|
81
|
+
height: number;
|
|
82
|
+
ascent: number;
|
|
83
|
+
descent: number;
|
|
84
|
+
};
|
|
85
|
+
constructor(content: Array<ElementInterface | null>);
|
|
86
|
+
cleanup(): void;
|
|
87
|
+
_dup(namedCollection?: Record<string, any>): Elements;
|
|
88
|
+
calcSize(location: Point, scale: number): void;
|
|
89
|
+
getAllElements(includeHidden?: boolean): (FigureElementCollection | FigureElementPrimitive | ElementInterface)[];
|
|
90
|
+
setPositions(): void;
|
|
91
|
+
setColor(colorIn?: TypeColor | null): void;
|
|
92
|
+
offsetLocation(offset?: Point): void;
|
|
93
|
+
getBounds(useFullSize?: boolean): Bounds;
|
|
94
|
+
}
|
|
95
|
+
export { BlankElement, Element, Elements };
|