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,56 @@
|
|
|
1
|
+
declare class HTMLElementProperties {
|
|
2
|
+
id: string;
|
|
3
|
+
classes: Array<string>;
|
|
4
|
+
constructor(id?: string, classes?: string | Array<string>);
|
|
5
|
+
render(indent?: number, text?: string): string;
|
|
6
|
+
}
|
|
7
|
+
declare class HTMLElement extends HTMLElementProperties {
|
|
8
|
+
text: string;
|
|
9
|
+
constructor(text: string, id?: string, classes?: string | Array<string>);
|
|
10
|
+
render(indent?: number): string;
|
|
11
|
+
}
|
|
12
|
+
declare class HTMLElements extends HTMLElementProperties {
|
|
13
|
+
content: Array<HTMLElement | HTMLElements | HTMLElementProperties>;
|
|
14
|
+
constructor(content: Array<HTMLElement | HTMLElements | HTMLElementProperties | null>, id?: string, classes?: string | Array<string>);
|
|
15
|
+
render(indent?: number): string;
|
|
16
|
+
}
|
|
17
|
+
declare class Fraction extends HTMLElementProperties {
|
|
18
|
+
numerator: HTMLElements;
|
|
19
|
+
denominator: HTMLElements;
|
|
20
|
+
constructor(numerator: HTMLElements, denominator: HTMLElements, id?: string, classes?: string | Array<string>);
|
|
21
|
+
render(indent?: number): string;
|
|
22
|
+
}
|
|
23
|
+
declare class SuperSub extends HTMLElementProperties {
|
|
24
|
+
superscript: HTMLElements | null;
|
|
25
|
+
subscript: HTMLElements | null;
|
|
26
|
+
content: HTMLElements;
|
|
27
|
+
constructor(content: HTMLElements, superscript: HTMLElements | null, subscript: HTMLElements | null, id?: string, classes?: string | Array<string>);
|
|
28
|
+
render(indent?: number): string;
|
|
29
|
+
}
|
|
30
|
+
declare class Subscript extends SuperSub {
|
|
31
|
+
constructor(content: HTMLElements, // eslint-disable-line no-use-before-define
|
|
32
|
+
subscript: HTMLElements, id?: string, classes?: string | Array<string>);
|
|
33
|
+
}
|
|
34
|
+
declare class Superscript extends SuperSub {
|
|
35
|
+
constructor(content: HTMLElements, // eslint-disable-line no-use-before-define
|
|
36
|
+
superscript: HTMLElements, id?: string, classes?: string | Array<string>);
|
|
37
|
+
}
|
|
38
|
+
declare class Root extends HTMLElementProperties {
|
|
39
|
+
content: HTMLElements;
|
|
40
|
+
constructor(content: HTMLElements, // eslint-disable-line no-use-before-define
|
|
41
|
+
id?: string, classes?: string | Array<string>);
|
|
42
|
+
render(indent?: number): string;
|
|
43
|
+
}
|
|
44
|
+
type EquationInput = Array<HTMLElements | HTMLElementProperties | HTMLElement | string> | HTMLElements | HTMLElementProperties | HTMLElement | string;
|
|
45
|
+
export default class HTMLEquation extends HTMLElements {
|
|
46
|
+
constructor(id?: string, classes?: string | Array<string>);
|
|
47
|
+
createEq(content: Array<HTMLElements | HTMLElementProperties | string>): void;
|
|
48
|
+
htmlElement(): HTMLDivElement;
|
|
49
|
+
el(content: 'string', id?: string, classes?: string | Array<string>): HTMLElement;
|
|
50
|
+
supsub(content: EquationInput, superscript: EquationInput, subscript: EquationInput, id?: string, classes?: string | Array<string>): SuperSub;
|
|
51
|
+
sub(content: EquationInput, subscript: EquationInput, id?: string, classes?: string | Array<string>): Subscript;
|
|
52
|
+
sup(content: EquationInput, superscript: EquationInput, id?: string, classes?: string | Array<string>): Superscript;
|
|
53
|
+
frac(numerator: EquationInput, denominator: EquationInput, id?: string, classes?: string | Array<string>): Fraction;
|
|
54
|
+
sqrt(content: EquationInput, id?: string, classes?: string | Array<string>): Root;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bracket from './Bracket';
|
|
3
|
+
export default class AngleBracket extends Bracket {
|
|
4
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, Array<Point>, number, number];
|
|
5
|
+
getVerticalDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bracket from './Bracket';
|
|
3
|
+
import type { TypeColor } from '../../../tools/types';
|
|
4
|
+
export type TypeEquationSymbolArrowBracket = {
|
|
5
|
+
symbol: 'arrow';
|
|
6
|
+
direction?: 'down' | 'left' | 'up' | 'right';
|
|
7
|
+
lineWidth?: number;
|
|
8
|
+
arrowWidth?: number;
|
|
9
|
+
arrowHeight?: number;
|
|
10
|
+
draw?: 'static' | 'dynamic';
|
|
11
|
+
color?: TypeColor;
|
|
12
|
+
mods?: Record<string, any>;
|
|
13
|
+
};
|
|
14
|
+
export default class Arrow extends Bracket {
|
|
15
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, lengthIn: number): [Array<Point>, Array<Point>, number, number];
|
|
16
|
+
getVerticalDefaultValues(length: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bracket from './Bracket';
|
|
3
|
+
export default class Bar extends Bracket {
|
|
4
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, Array<Point>, number, number];
|
|
5
|
+
getVerticalDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FigureElement } from '../../Element';
|
|
2
|
+
import { Point } from '../../../tools/g2';
|
|
3
|
+
import type { TypeParsablePoint } from '../../../tools/g2';
|
|
4
|
+
import Symbol from './SymbolNew';
|
|
5
|
+
import Bounds from '../Elements/Bounds';
|
|
6
|
+
export default class Box extends Symbol {
|
|
7
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
8
|
+
getBounds(options: Record<string, any>, leftIn: number, bottomIn: number, widthIn: number, heightIn: number): Bounds;
|
|
9
|
+
getDefaultValues(height: number, width: number, options: Record<string, any>): Record<string, any>;
|
|
10
|
+
surround(parent: FigureElement, children: Array<string | FigureElement> | null | undefined, spaceIn?: TypeParsablePoint | number, drawingSpace?: 'figure' | 'local' | 'gl' | 'draw'): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bracket from './Bracket';
|
|
3
|
+
export default class Brace extends Bracket {
|
|
4
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, Array<Point>, number, number];
|
|
5
|
+
getVerticalDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class Bracket extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, Array<Point>, number, number];
|
|
6
|
+
getDefaultValues(contentHeight: number, contentWidth: number, options: Record<string, any>): Record<string, any>;
|
|
7
|
+
getVerticalDefaultValues(contentHeight: number, contentWidth: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
import Bounds from '../Elements/Bounds';
|
|
4
|
+
export default class Division extends Symbol {
|
|
5
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
6
|
+
getBounds(options: Record<string, any>, leftIn: number, bottomIn: number, widthIn: number, heightIn: number): Bounds;
|
|
7
|
+
getDefaultValues(height: number, width: number, options: Record<string, any>): Record<string, any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class Integral extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
getLineIntegralPoints(lineWidth: number, num: number, width: number, height: number, sides: number): Point[];
|
|
6
|
+
getDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class EquationLine extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, angle: number, length: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class Product extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
getDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
import Bounds from '../Elements/Bounds';
|
|
4
|
+
export default class Radical extends Symbol {
|
|
5
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
6
|
+
getBounds(options: Record<string, any>, contentX: number, contentY: number, contentWidthIn: number, contentHeightIn: number): Bounds;
|
|
7
|
+
getHeightFromContentHeight(contentHeightIn: number, options: Record<string, any>): number;
|
|
8
|
+
getDefaultValues(height: number | null | undefined, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Bracket from './Bracket';
|
|
3
|
+
export default class SquareBracket extends Bracket {
|
|
4
|
+
getLeftPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, Array<Point>, number, number];
|
|
5
|
+
getVerticalDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
import Bounds from '../Elements/Bounds';
|
|
4
|
+
export default class Strike extends Symbol {
|
|
5
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
6
|
+
getBounds(options: Record<string, any>, leftIn: number, bottomIn: number, widthIn: number, heightIn: number): Bounds;
|
|
7
|
+
getDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class Sum extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, widthIn: number, height: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
getDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FigureElementPrimitive } from '../../Element';
|
|
2
|
+
import { Point, Transform } from '../../../tools/g2';
|
|
3
|
+
import WebGLInstance from '../../webgl/webgl';
|
|
4
|
+
import Bounds from '../Elements/Bounds';
|
|
5
|
+
import type { TypeColor } from '../../../tools/types';
|
|
6
|
+
export default class Symbol extends FigureElementPrimitive {
|
|
7
|
+
constructor(webgl: WebGLInstance, color: TypeColor, transformOrLocation: Transform | Point, symbolOptions: Record<string, any>);
|
|
8
|
+
updateSymbol(pointsIn: Array<Point>, width: number, height: number, drawType: 'STRIP' | 'TRIANGLES' | 'FAN'): void;
|
|
9
|
+
getTransform(): Transform;
|
|
10
|
+
getWidth(options: Record<string, any>, height: number): any;
|
|
11
|
+
getHeight(options: Record<string, any>, width: number): any;
|
|
12
|
+
getBounds(options: Record<string, any>, contentX: number, contentY: number, contentWidth: number, contentHeight: number, side?: 'left' | 'right' | 'bottom' | 'top'): Bounds;
|
|
13
|
+
getPoints(options: Record<string, any>, width: number, height: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
14
|
+
getDefaultValues(height: number, width: number, options: Record<string, any>): Record<string, any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Point } from '../../../tools/g2';
|
|
2
|
+
import Symbol from './SymbolNew';
|
|
3
|
+
export default class Vinculum extends Symbol {
|
|
4
|
+
getPoints(options: Record<string, any>, widthIn: number, heightIn: number): [Array<Point>, number, number, 'STRIP' | 'TRIANGLES' | 'FAN'];
|
|
5
|
+
getDefaultValues(height: number, width: number | null | undefined, options: Record<string, any>): Record<string, any>;
|
|
6
|
+
}
|