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.
Files changed (159) hide show
  1. package/figureone.min.js +1 -1
  2. package/index.js +79167 -0
  3. package/package.json +15 -1
  4. package/types/index.d.ts +132 -0
  5. package/types/js/figure/Animation/Animation.d.ts +36 -0
  6. package/types/js/figure/Animation/AnimationBuilder.d.ts +173 -0
  7. package/types/js/figure/Animation/AnimationManager.d.ts +392 -0
  8. package/types/js/figure/Animation/AnimationStep/CustomStep.d.ts +99 -0
  9. package/types/js/figure/Animation/AnimationStep/DelayStep.d.ts +24 -0
  10. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ColorAnimationStep.d.ts +203 -0
  11. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/OpacityAnimationStep.d.ts +220 -0
  12. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PositionAnimationStep.d.ts +124 -0
  13. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PulseAnimationStep.d.ts +137 -0
  14. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/PulseTransformAnimationStep.d.ts +52 -0
  15. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/RotationAnimationStep.d.ts +119 -0
  16. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ScaleAnimationStep.d.ts +93 -0
  17. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/ScenarioAnimationStep.d.ts +204 -0
  18. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep/TransformAnimationStep.d.ts +163 -0
  19. package/types/js/figure/Animation/AnimationStep/ElementAnimationStep.d.ts +56 -0
  20. package/types/js/figure/Animation/AnimationStep/ParallelAnimationStep.d.ts +70 -0
  21. package/types/js/figure/Animation/AnimationStep/SerialAnimationStep.d.ts +84 -0
  22. package/types/js/figure/Animation/AnimationStep/TriggerStep.d.ts +106 -0
  23. package/types/js/figure/Animation/AnimationStep.d.ts +110 -0
  24. package/types/js/figure/DrawContext2D.d.ts +9 -0
  25. package/types/js/figure/DrawingObjects/DrawingObject.d.ts +45 -0
  26. package/types/js/figure/DrawingObjects/GLObject/GLObject.d.ts +146 -0
  27. package/types/js/figure/DrawingObjects/HTMLObject/HTMLObject.d.ts +29 -0
  28. package/types/js/figure/DrawingObjects/TextObject/TextObject.d.ts +94 -0
  29. package/types/js/figure/DrawingObjects/TextObject/glyphMeasures.d.ts +7 -0
  30. package/types/js/figure/DrawingObjects/VertexObject/VertexGeneric.d.ts +21 -0
  31. package/types/js/figure/DrawingObjects/VertexObject/VertexObject.d.ts +0 -0
  32. package/types/js/figure/DrawingObjects/VertexObject/VertexText.d.ts +34 -0
  33. package/types/js/figure/Element.d.ts +1212 -0
  34. package/types/js/figure/Equation/Elements/BaseAnnotationFunction.d.ts +118 -0
  35. package/types/js/figure/Equation/Elements/BaseEquationFunction.d.ts +20 -0
  36. package/types/js/figure/Equation/Elements/Bounds.d.ts +49 -0
  37. package/types/js/figure/Equation/Elements/Color.d.ts +7 -0
  38. package/types/js/figure/Equation/Elements/Container.d.ts +5 -0
  39. package/types/js/figure/Equation/Elements/Element.d.ts +95 -0
  40. package/types/js/figure/Equation/Elements/Fraction.d.ts +5 -0
  41. package/types/js/figure/Equation/Elements/Lines.d.ts +5 -0
  42. package/types/js/figure/Equation/Elements/Matrix.d.ts +5 -0
  43. package/types/js/figure/Equation/Elements/Offset.d.ts +5 -0
  44. package/types/js/figure/Equation/Elements/Scale.d.ts +5 -0
  45. package/types/js/figure/Equation/Equation.d.ts +984 -0
  46. package/types/js/figure/Equation/EquationForm.d.ts +139 -0
  47. package/types/js/figure/Equation/EquationFunctions.d.ts +3367 -0
  48. package/types/js/figure/Equation/EquationSymbols.d.ts +1646 -0
  49. package/types/js/figure/Equation/HTMLEquation.d.ts +56 -0
  50. package/types/js/figure/Equation/Symbols/AngleBracket.d.ts +6 -0
  51. package/types/js/figure/Equation/Symbols/Arrow.d.ts +17 -0
  52. package/types/js/figure/Equation/Symbols/Bar.d.ts +6 -0
  53. package/types/js/figure/Equation/Symbols/Box.d.ts +11 -0
  54. package/types/js/figure/Equation/Symbols/Brace.d.ts +6 -0
  55. package/types/js/figure/Equation/Symbols/Bracket.d.ts +8 -0
  56. package/types/js/figure/Equation/Symbols/Division.d.ts +8 -0
  57. package/types/js/figure/Equation/Symbols/Integral.d.ts +7 -0
  58. package/types/js/figure/Equation/Symbols/Line.d.ts +5 -0
  59. package/types/js/figure/Equation/Symbols/Product.d.ts +6 -0
  60. package/types/js/figure/Equation/Symbols/Radical.d.ts +9 -0
  61. package/types/js/figure/Equation/Symbols/SquareBracket.d.ts +6 -0
  62. package/types/js/figure/Equation/Symbols/Strike.d.ts +8 -0
  63. package/types/js/figure/Equation/Symbols/Sum.d.ts +6 -0
  64. package/types/js/figure/Equation/Symbols/SymbolNew.d.ts +15 -0
  65. package/types/js/figure/Equation/Symbols/Vinculum.d.ts +6 -0
  66. package/types/js/figure/Figure.d.ts +711 -0
  67. package/types/js/figure/FigureCollections/Angle.d.ts +766 -0
  68. package/types/js/figure/FigureCollections/Axis.d.ts +517 -0
  69. package/types/js/figure/FigureCollections/Axis3.d.ts +118 -0
  70. package/types/js/figure/FigureCollections/Button.d.ts +195 -0
  71. package/types/js/figure/FigureCollections/EquationLabel.d.ts +77 -0
  72. package/types/js/figure/FigureCollections/FigureCollections.d.ts +122 -0
  73. package/types/js/figure/FigureCollections/Legend.d.ts +270 -0
  74. package/types/js/figure/FigureCollections/Line.d.ts +587 -0
  75. package/types/js/figure/FigureCollections/Plot.d.ts +558 -0
  76. package/types/js/figure/FigureCollections/PolyLine.d.ts +487 -0
  77. package/types/js/figure/FigureCollections/Rectangle.d.ts +235 -0
  78. package/types/js/figure/FigureCollections/SlideNavigator.d.ts +255 -0
  79. package/types/js/figure/FigureCollections/Slider.d.ts +155 -0
  80. package/types/js/figure/FigureCollections/Text.d.ts +307 -0
  81. package/types/js/figure/FigureCollections/Toggle.d.ts +185 -0
  82. package/types/js/figure/FigureCollections/Trace.d.ts +237 -0
  83. package/types/js/figure/FigurePrimitives/FigureElementPrimitive2DText.d.ts +119 -0
  84. package/types/js/figure/FigurePrimitives/FigureElementPrimitiveGLText.d.ts +94 -0
  85. package/types/js/figure/FigurePrimitives/FigureElementPrimitiveGesture.d.ts +536 -0
  86. package/types/js/figure/FigurePrimitives/FigureElementPrimitiveMorph.d.ts +175 -0
  87. package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes.d.ts +788 -0
  88. package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes2D.d.ts +1324 -0
  89. package/types/js/figure/FigurePrimitives/FigurePrimitiveTypes3D.d.ts +1105 -0
  90. package/types/js/figure/FigurePrimitives/FigurePrimitives.d.ts +173 -0
  91. package/types/js/figure/FigurePrimitives/Generic.d.ts +5 -0
  92. package/types/js/figure/FigurePrimitives/Text.d.ts +17 -0
  93. package/types/js/figure/FontManager.d.ts +113 -0
  94. package/types/js/figure/Gesture.d.ts +39 -0
  95. package/types/js/figure/Recorder/Recorder.d.ts +291 -0
  96. package/types/js/figure/Recorder/parseState.d.ts +3 -0
  97. package/types/js/figure/Recorder/recorder.worker.d.ts +1 -0
  98. package/types/js/figure/Recorder/state.d.ts +7 -0
  99. package/types/js/figure/SlideNavigator.d.ts +606 -0
  100. package/types/js/figure/TimeKeeper.d.ts +174 -0
  101. package/types/js/figure/geometries/arc.d.ts +18 -0
  102. package/types/js/figure/geometries/arrow.d.ts +215 -0
  103. package/types/js/figure/geometries/buffer.d.ts +4 -0
  104. package/types/js/figure/geometries/copy/copy.d.ts +178 -0
  105. package/types/js/figure/geometries/ellipse.d.ts +17 -0
  106. package/types/js/figure/geometries/line.d.ts +13 -0
  107. package/types/js/figure/geometries/lines/corners.d.ts +7 -0
  108. package/types/js/figure/geometries/lines/dashes.d.ts +23 -0
  109. package/types/js/figure/geometries/lines/lines.d.ts +31 -0
  110. package/types/js/figure/geometries/polygon/polygon.d.ts +12 -0
  111. package/types/js/figure/geometries/rectangle.d.ts +19 -0
  112. package/types/js/figure/geometries/triangle.d.ts +27 -0
  113. package/types/js/figure/webgl/Atlas.d.ts +42 -0
  114. package/types/js/figure/webgl/shaders.d.ts +143 -0
  115. package/types/js/figure/webgl/target.d.ts +9 -0
  116. package/types/js/figure/webgl/webgl.d.ts +54 -0
  117. package/types/js/tools/FunctionMap.d.ts +69 -0
  118. package/types/js/tools/color.d.ts +11 -0
  119. package/types/js/tools/colorNames.d.ts +2 -0
  120. package/types/js/tools/d2/polygon.d.ts +60 -0
  121. package/types/js/tools/d2/triangles.d.ts +0 -0
  122. package/types/js/tools/d3/cone.d.ts +57 -0
  123. package/types/js/tools/d3/cube.d.ts +26 -0
  124. package/types/js/tools/d3/cylinder.d.ts +45 -0
  125. package/types/js/tools/d3/line3.d.ts +55 -0
  126. package/types/js/tools/d3/prism.d.ts +49 -0
  127. package/types/js/tools/d3/revolve.d.ts +87 -0
  128. package/types/js/tools/d3/sphere.d.ts +33 -0
  129. package/types/js/tools/d3/surface.d.ts +47 -0
  130. package/types/js/tools/g2.d.ts +242 -0
  131. package/types/js/tools/geometry/Bounds.d.ts +446 -0
  132. package/types/js/tools/geometry/Line.d.ts +314 -0
  133. package/types/js/tools/geometry/Path.d.ts +67 -0
  134. package/types/js/tools/geometry/Plane.d.ts +201 -0
  135. package/types/js/tools/geometry/Point.d.ts +359 -0
  136. package/types/js/tools/geometry/Rect.d.ts +115 -0
  137. package/types/js/tools/geometry/Transform.d.ts +623 -0
  138. package/types/js/tools/geometry/angle.d.ts +105 -0
  139. package/types/js/tools/geometry/common.d.ts +9 -0
  140. package/types/js/tools/geometry/coordinates.d.ts +30 -0
  141. package/types/js/tools/geometry/deceleration.d.ts +13 -0
  142. package/types/js/tools/geometry/polygon.d.ts +4 -0
  143. package/types/js/tools/geometry/quaternion.d.ts +15 -0
  144. package/types/js/tools/geometry/scene.d.ts +282 -0
  145. package/types/js/tools/geometry/tools.d.ts +8 -0
  146. package/types/js/tools/geometry/types.d.ts +2 -0
  147. package/types/js/tools/getCssColors.d.ts +1 -0
  148. package/types/js/tools/getCssVariables.d.ts +4 -0
  149. package/types/js/tools/getImageData.d.ts +1 -0
  150. package/types/js/tools/getScssColors.d.ts +2 -0
  151. package/types/js/tools/htmlGenerator.d.ts +85 -0
  152. package/types/js/tools/m2.d.ts +24 -0
  153. package/types/js/tools/m3.d.ts +71 -0
  154. package/types/js/tools/math.d.ts +112 -0
  155. package/types/js/tools/morph.d.ts +651 -0
  156. package/types/js/tools/styleSheets.d.ts +3 -0
  157. package/types/js/tools/tools.d.ts +281 -0
  158. package/types/js/tools/types.d.ts +305 -0
  159. 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,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Container extends BaseEquationFunction {
4
+ calcSize(location: Point, scale: number): void;
5
+ }
@@ -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 };
@@ -0,0 +1,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Fraction extends BaseEquationFunction {
4
+ calcSize(location: Point, incomingScale: number): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Lines extends BaseEquationFunction {
4
+ calcSize(location: Point, scale: number): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Matrix extends BaseEquationFunction {
4
+ calcSize(location: Point, scale: number): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Offset extends BaseEquationFunction {
4
+ calcSize(location: Point, scale: number): void;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Point } from '../../../tools/g2';
2
+ import BaseEquationFunction from './BaseEquationFunction';
3
+ export default class Scale extends BaseEquationFunction {
4
+ calcSize(location: Point, scale: number): void;
5
+ }