@nasser-sw/fabric 7.0.0-beta1 → 7.0.1-beta10
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/0 +0 -0
- package/debug/{konva → konva-master}/CHANGELOG.md +2 -1
- package/debug/{konva → konva-master}/README.md +7 -3
- package/debug/{konva → konva-master}/package.json +1 -1
- package/debug/{konva → konva-master}/release.sh +1 -4
- package/debug/{konva → konva-master}/src/Canvas.ts +37 -0
- package/debug/{konva → konva-master}/src/shapes/Text.ts +2 -2
- package/dist/index.js +2198 -272
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +2198 -272
- package/dist/index.mjs.map +1 -1
- package/dist/index.node.cjs +2198 -272
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +2198 -272
- package/dist/index.node.mjs.map +1 -1
- package/dist/package.json.min.mjs +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/shapes/Line.d.ts +33 -86
- package/dist/src/shapes/Line.d.ts.map +1 -1
- package/dist/src/shapes/Line.min.mjs +1 -1
- package/dist/src/shapes/Line.min.mjs.map +1 -1
- package/dist/src/shapes/Line.mjs +405 -159
- package/dist/src/shapes/Line.mjs.map +1 -1
- package/dist/src/shapes/Polyline.d.ts +7 -0
- package/dist/src/shapes/Polyline.d.ts.map +1 -1
- package/dist/src/shapes/Polyline.min.mjs +1 -1
- package/dist/src/shapes/Polyline.min.mjs.map +1 -1
- package/dist/src/shapes/Polyline.mjs +48 -16
- package/dist/src/shapes/Polyline.mjs.map +1 -1
- package/dist/src/shapes/Text/Text.d.ts +19 -0
- package/dist/src/shapes/Text/Text.d.ts.map +1 -1
- package/dist/src/shapes/Text/Text.min.mjs +1 -1
- package/dist/src/shapes/Text/Text.min.mjs.map +1 -1
- package/dist/src/shapes/Text/Text.mjs +302 -16
- package/dist/src/shapes/Text/Text.mjs.map +1 -1
- package/dist/src/shapes/Textbox.d.ts +56 -1
- package/dist/src/shapes/Textbox.d.ts.map +1 -1
- package/dist/src/shapes/Textbox.min.mjs +1 -1
- package/dist/src/shapes/Textbox.min.mjs.map +1 -1
- package/dist/src/shapes/Textbox.mjs +633 -11
- package/dist/src/shapes/Textbox.mjs.map +1 -1
- package/dist/src/shapes/Triangle.d.ts +27 -2
- package/dist/src/shapes/Triangle.d.ts.map +1 -1
- package/dist/src/shapes/Triangle.min.mjs +1 -1
- package/dist/src/shapes/Triangle.min.mjs.map +1 -1
- package/dist/src/shapes/Triangle.mjs +72 -12
- package/dist/src/shapes/Triangle.mjs.map +1 -1
- package/dist/src/text/examples/arabicTextExample.d.ts +60 -0
- package/dist/src/text/examples/arabicTextExample.d.ts.map +1 -0
- package/dist/src/text/measure.d.ts +9 -0
- package/dist/src/text/measure.d.ts.map +1 -1
- package/dist/src/text/measure.min.mjs +1 -1
- package/dist/src/text/measure.min.mjs.map +1 -1
- package/dist/src/text/measure.mjs +175 -4
- package/dist/src/text/measure.mjs.map +1 -1
- package/dist/src/text/overlayEditor.d.ts +8 -0
- package/dist/src/text/overlayEditor.d.ts.map +1 -1
- package/dist/src/text/overlayEditor.min.mjs +1 -1
- package/dist/src/text/overlayEditor.min.mjs.map +1 -1
- package/dist/src/text/overlayEditor.mjs +395 -56
- package/dist/src/text/overlayEditor.mjs.map +1 -1
- package/dist/src/text/scriptUtils.d.ts +142 -0
- package/dist/src/text/scriptUtils.d.ts.map +1 -0
- package/dist/src/text/scriptUtils.min.mjs +2 -0
- package/dist/src/text/scriptUtils.min.mjs.map +1 -0
- package/dist/src/text/scriptUtils.mjs +212 -0
- package/dist/src/text/scriptUtils.mjs.map +1 -0
- package/dist/src/util/misc/cornerRadius.d.ts +70 -0
- package/dist/src/util/misc/cornerRadius.d.ts.map +1 -0
- package/dist/src/util/misc/cornerRadius.min.mjs +2 -0
- package/dist/src/util/misc/cornerRadius.min.mjs.map +1 -0
- package/dist/src/util/misc/cornerRadius.mjs +181 -0
- package/dist/src/util/misc/cornerRadius.mjs.map +1 -0
- package/dist-extensions/src/shapes/CustomLine.d.ts +10 -0
- package/dist-extensions/src/shapes/CustomLine.d.ts.map +1 -0
- package/dist-extensions/src/shapes/Line.d.ts +33 -86
- package/dist-extensions/src/shapes/Line.d.ts.map +1 -1
- package/dist-extensions/src/shapes/Polyline.d.ts +7 -0
- package/dist-extensions/src/shapes/Polyline.d.ts.map +1 -1
- package/dist-extensions/src/shapes/Text/Text.d.ts +19 -0
- package/dist-extensions/src/shapes/Text/Text.d.ts.map +1 -1
- package/dist-extensions/src/shapes/Textbox.d.ts +56 -1
- package/dist-extensions/src/shapes/Textbox.d.ts.map +1 -1
- package/dist-extensions/src/shapes/Triangle.d.ts +27 -2
- package/dist-extensions/src/shapes/Triangle.d.ts.map +1 -1
- package/dist-extensions/src/text/measure.d.ts +9 -0
- package/dist-extensions/src/text/measure.d.ts.map +1 -1
- package/dist-extensions/src/text/overlayEditor.d.ts +8 -0
- package/dist-extensions/src/text/overlayEditor.d.ts.map +1 -1
- package/dist-extensions/src/text/scriptUtils.d.ts +142 -0
- package/dist-extensions/src/text/scriptUtils.d.ts.map +1 -0
- package/dist-extensions/src/util/misc/cornerRadius.d.ts +70 -0
- package/dist-extensions/src/util/misc/cornerRadius.d.ts.map +1 -0
- package/fabric-test-editor.html +3552 -0
- package/fabric-test2.html +647 -0
- package/fabric.ts +182 -182
- package/fonts/STV Bold.ttf +0 -0
- package/fonts/STV Light.ttf +0 -0
- package/fonts/STV Regular.ttf +0 -0
- package/package.json +164 -164
- package/src/shapes/Line.ts +484 -157
- package/src/shapes/Polyline.ts +70 -29
- package/src/shapes/Text/Text.ts +317 -19
- package/src/shapes/Textbox.ts +663 -12
- package/src/shapes/Triangle.spec.ts +76 -0
- package/src/shapes/Triangle.ts +85 -15
- package/src/text/measure.ts +200 -50
- package/src/text/overlayEditor.ts +504 -94
- package/src/util/misc/cornerRadius.spec.ts +141 -0
- package/src/util/misc/cornerRadius.ts +269 -0
- /package/debug/{konva → konva-master}/LICENSE +0 -0
- /package/debug/{konva → konva-master}/gulpfile.mjs +0 -0
- /package/debug/{konva → konva-master}/resources/doc-includes/ContainerParams.txt +0 -0
- /package/debug/{konva → konva-master}/resources/doc-includes/NodeParams.txt +0 -0
- /package/debug/{konva → konva-master}/resources/doc-includes/ShapeParams.txt +0 -0
- /package/debug/{konva → konva-master}/resources/jsdoc.conf.json +0 -0
- /package/debug/{konva → konva-master}/rollup.config.mjs +0 -0
- /package/debug/{konva → konva-master}/src/Animation.ts +0 -0
- /package/debug/{konva → konva-master}/src/BezierFunctions.ts +0 -0
- /package/debug/{konva → konva-master}/src/Container.ts +0 -0
- /package/debug/{konva → konva-master}/src/Context.ts +0 -0
- /package/debug/{konva → konva-master}/src/Core.ts +0 -0
- /package/debug/{konva → konva-master}/src/DragAndDrop.ts +0 -0
- /package/debug/{konva → konva-master}/src/Factory.ts +0 -0
- /package/debug/{konva → konva-master}/src/FastLayer.ts +0 -0
- /package/debug/{konva → konva-master}/src/Global.ts +0 -0
- /package/debug/{konva → konva-master}/src/Group.ts +0 -0
- /package/debug/{konva → konva-master}/src/Layer.ts +0 -0
- /package/debug/{konva → konva-master}/src/Node.ts +0 -0
- /package/debug/{konva → konva-master}/src/PointerEvents.ts +0 -0
- /package/debug/{konva → konva-master}/src/Shape.ts +0 -0
- /package/debug/{konva → konva-master}/src/Stage.ts +0 -0
- /package/debug/{konva → konva-master}/src/Tween.ts +0 -0
- /package/debug/{konva → konva-master}/src/Util.ts +0 -0
- /package/debug/{konva → konva-master}/src/Validators.ts +0 -0
- /package/debug/{konva → konva-master}/src/_CoreInternals.ts +0 -0
- /package/debug/{konva → konva-master}/src/_FullInternals.ts +0 -0
- /package/debug/{konva → konva-master}/src/canvas-backend.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Blur.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Brighten.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Brightness.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Contrast.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Emboss.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Enhance.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Grayscale.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/HSL.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/HSV.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Invert.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Kaleidoscope.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Mask.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Noise.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Pixelate.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Posterize.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/RGB.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/RGBA.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Sepia.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Solarize.ts +0 -0
- /package/debug/{konva → konva-master}/src/filters/Threshold.ts +0 -0
- /package/debug/{konva → konva-master}/src/index.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Arc.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Arrow.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Circle.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Ellipse.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Image.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Label.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Line.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Path.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Rect.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/RegularPolygon.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Ring.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Sprite.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Star.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/TextPath.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Transformer.ts +0 -0
- /package/debug/{konva → konva-master}/src/shapes/Wedge.ts +0 -0
- /package/debug/{konva → konva-master}/src/skia-backend.ts +0 -0
- /package/debug/{konva → konva-master}/src/types.ts +0 -0
- /package/debug/{konva → konva-master}/tsconfig.json +0 -0
- /package/debug/{konva → konva-master}/tsconfig.test.json +0 -0
package/fabric.ts
CHANGED
|
@@ -1,182 +1,182 @@
|
|
|
1
|
-
export { getEnv, getFabricDocument, getFabricWindow, setEnv } from './src/env';
|
|
2
|
-
export { cache } from './src/cache';
|
|
3
|
-
export { VERSION as version, iMatrix } from './src/constants';
|
|
4
|
-
export { config } from './src/config';
|
|
5
|
-
export { classRegistry } from './src/ClassRegistry';
|
|
6
|
-
export { runningAnimations } from './src/util/animation/AnimationRegistry';
|
|
7
|
-
|
|
8
|
-
export type * from './src/typedefs';
|
|
9
|
-
|
|
10
|
-
export type * from './src/EventTypeDefs';
|
|
11
|
-
export type { ITextEvents } from './src/shapes/IText/ITextBehavior';
|
|
12
|
-
|
|
13
|
-
export { Observable } from './src/Observable';
|
|
14
|
-
|
|
15
|
-
export type {
|
|
16
|
-
TCanvasSizeOptions,
|
|
17
|
-
TSVGExportOptions,
|
|
18
|
-
} from './src/canvas/StaticCanvas';
|
|
19
|
-
export type { StaticCanvasOptions } from './src/canvas/StaticCanvasOptions';
|
|
20
|
-
export { StaticCanvas } from './src/canvas/StaticCanvas';
|
|
21
|
-
export { Canvas } from './src/canvas/Canvas';
|
|
22
|
-
export type { CanvasOptions } from './src/canvas/CanvasOptions';
|
|
23
|
-
export { CanvasDOMManager } from './src/canvas/DOMManagers/CanvasDOMManager';
|
|
24
|
-
export { StaticCanvasDOMManager } from './src/canvas/DOMManagers/StaticCanvasDOMManager';
|
|
25
|
-
|
|
26
|
-
export type { XY } from './src/Point';
|
|
27
|
-
export { Point } from './src/Point';
|
|
28
|
-
export type { IntersectionType } from './src/Intersection';
|
|
29
|
-
export { Intersection } from './src/Intersection';
|
|
30
|
-
export { Color } from './src/color/Color';
|
|
31
|
-
export type * from './src/color/typedefs';
|
|
32
|
-
|
|
33
|
-
export * from './src/gradient';
|
|
34
|
-
export * from './src/Pattern';
|
|
35
|
-
export { Shadow } from './src/Shadow';
|
|
36
|
-
export type { SerializedShadowOptions } from './src/Shadow';
|
|
37
|
-
|
|
38
|
-
export { BaseBrush } from './src/brushes/BaseBrush';
|
|
39
|
-
export type * from './src/brushes/typedefs';
|
|
40
|
-
|
|
41
|
-
export { PencilBrush } from './src/brushes/PencilBrush';
|
|
42
|
-
export { CircleBrush } from './src/brushes/CircleBrush';
|
|
43
|
-
export { SprayBrush } from './src/brushes/SprayBrush';
|
|
44
|
-
export { PatternBrush } from './src/brushes/PatternBrush';
|
|
45
|
-
|
|
46
|
-
// many path types
|
|
47
|
-
export type * from './src/util/path/typedefs';
|
|
48
|
-
|
|
49
|
-
export {
|
|
50
|
-
FabricObject,
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated Due to a naming conflict with the
|
|
54
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object JS API},
|
|
55
|
-
* `fabric.Object` has been renamed to `FabricObject`
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* import { Object } from 'fabric'; // deprecated
|
|
59
|
-
* import { FabricObject } from 'fabric'; // migration path
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
FabricObject as Object,
|
|
63
|
-
} from './src/shapes/Object/FabricObject';
|
|
64
|
-
/**
|
|
65
|
-
* Exported so we can tweak default values
|
|
66
|
-
*/
|
|
67
|
-
export {
|
|
68
|
-
FabricObject as BaseFabricObject,
|
|
69
|
-
type DrawContext,
|
|
70
|
-
} from './src/shapes/Object/Object';
|
|
71
|
-
/**
|
|
72
|
-
* Exported so we can tweak default values
|
|
73
|
-
*/
|
|
74
|
-
export { InteractiveFabricObject } from './src/shapes/Object/InteractiveObject';
|
|
75
|
-
|
|
76
|
-
export type {
|
|
77
|
-
TFabricObjectProps,
|
|
78
|
-
FabricObjectProps,
|
|
79
|
-
SerializedObjectProps,
|
|
80
|
-
} from './src/shapes/Object/types';
|
|
81
|
-
export type { SerializedLineProps } from './src/shapes/Line';
|
|
82
|
-
export { Line } from './src/shapes/Line';
|
|
83
|
-
export type { CircleProps, SerializedCircleProps } from './src/shapes/Circle';
|
|
84
|
-
export { Circle } from './src/shapes/Circle';
|
|
85
|
-
export { Triangle } from './src/shapes/Triangle';
|
|
86
|
-
export type {
|
|
87
|
-
EllipseProps,
|
|
88
|
-
SerializedEllipseProps,
|
|
89
|
-
} from './src/shapes/Ellipse';
|
|
90
|
-
export { Ellipse } from './src/shapes/Ellipse';
|
|
91
|
-
export type { RectProps, SerializedRectProps } from './src/shapes/Rect';
|
|
92
|
-
export { Rect } from './src/shapes/Rect';
|
|
93
|
-
export type { PathProps, SerializedPathProps } from './src/shapes/Path';
|
|
94
|
-
export { Path } from './src/shapes/Path';
|
|
95
|
-
export type { SerializedPolylineProps } from './src/shapes/Polyline';
|
|
96
|
-
export { Polyline } from './src/shapes/Polyline';
|
|
97
|
-
export { Polygon } from './src/shapes/Polygon';
|
|
98
|
-
export type {
|
|
99
|
-
GraphemeBBox,
|
|
100
|
-
SerializedTextProps,
|
|
101
|
-
TPathAlign,
|
|
102
|
-
TPathSide,
|
|
103
|
-
TextProps,
|
|
104
|
-
} from './src/shapes/Text/Text';
|
|
105
|
-
export {
|
|
106
|
-
FabricText,
|
|
107
|
-
/**
|
|
108
|
-
* @deprecated Due to a naming conflict with the
|
|
109
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Text/Text Web API},
|
|
110
|
-
* `fabric.Text` has been renamed to `FabricText`
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* import { Text } from 'fabric'; // deprecated
|
|
114
|
-
* import { FabricText } from 'fabric'; // migration path
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
FabricText as Text,
|
|
118
|
-
} from './src/shapes/Text/Text';
|
|
119
|
-
export type {
|
|
120
|
-
ITextProps,
|
|
121
|
-
SerializedITextProps,
|
|
122
|
-
CursorRenderingData,
|
|
123
|
-
CursorBoundaries,
|
|
124
|
-
} from './src/shapes/IText/IText';
|
|
125
|
-
export { IText } from './src/shapes/IText/IText';
|
|
126
|
-
export type {
|
|
127
|
-
GraphemeData,
|
|
128
|
-
SerializedTextboxProps,
|
|
129
|
-
TextboxProps,
|
|
130
|
-
} from './src/shapes/Textbox';
|
|
131
|
-
export { Textbox } from './src/shapes/Textbox';
|
|
132
|
-
export type {
|
|
133
|
-
CompleteTextStyleDeclaration,
|
|
134
|
-
TextStyleDeclaration,
|
|
135
|
-
TextStyle,
|
|
136
|
-
} from './src/shapes/Text/StyledText';
|
|
137
|
-
export type {
|
|
138
|
-
GroupEvents,
|
|
139
|
-
GroupProps,
|
|
140
|
-
GroupOwnProps,
|
|
141
|
-
SerializedGroupProps,
|
|
142
|
-
} from './src/shapes/Group';
|
|
143
|
-
export { Group } from './src/shapes/Group';
|
|
144
|
-
export * from './src/LayoutManager';
|
|
145
|
-
export type { SerializedLayoutManager } from './src/LayoutManager';
|
|
146
|
-
export type {
|
|
147
|
-
ActiveSelectionOptions,
|
|
148
|
-
MultiSelectionStacking,
|
|
149
|
-
} from './src/shapes/ActiveSelection';
|
|
150
|
-
export { ActiveSelection } from './src/shapes/ActiveSelection';
|
|
151
|
-
export {
|
|
152
|
-
FabricImage,
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @deprecated Due to a naming conflict with the
|
|
156
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image Web API},
|
|
157
|
-
* `fabric.Image` has been renamed to `FabricImage`
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* import { Image } from 'fabric'; // deprecated
|
|
161
|
-
* import { FabricImage } from 'fabric'; // migration path
|
|
162
|
-
*
|
|
163
|
-
*/
|
|
164
|
-
FabricImage as Image,
|
|
165
|
-
} from './src/shapes/Image';
|
|
166
|
-
export type {
|
|
167
|
-
ImageSource,
|
|
168
|
-
SerializedImageProps,
|
|
169
|
-
ImageProps,
|
|
170
|
-
} from './src/shapes/Image';
|
|
171
|
-
export { createCollectionMixin } from './src/Collection';
|
|
172
|
-
|
|
173
|
-
export * as util from './src/util';
|
|
174
|
-
|
|
175
|
-
export { loadSVGFromString } from './src/parser/loadSVGFromString';
|
|
176
|
-
export { loadSVGFromURL } from './src/parser/loadSVGFromURL';
|
|
177
|
-
export { parseSVGDocument } from './src/parser/parseSVGDocument';
|
|
178
|
-
|
|
179
|
-
export { Control } from './src/controls/Control';
|
|
180
|
-
export * as controlsUtils from './src/controls';
|
|
181
|
-
|
|
182
|
-
export * from './src/filters';
|
|
1
|
+
export { getEnv, getFabricDocument, getFabricWindow, setEnv } from './src/env';
|
|
2
|
+
export { cache } from './src/cache';
|
|
3
|
+
export { VERSION as version, iMatrix } from './src/constants';
|
|
4
|
+
export { config } from './src/config';
|
|
5
|
+
export { classRegistry } from './src/ClassRegistry';
|
|
6
|
+
export { runningAnimations } from './src/util/animation/AnimationRegistry';
|
|
7
|
+
|
|
8
|
+
export type * from './src/typedefs';
|
|
9
|
+
|
|
10
|
+
export type * from './src/EventTypeDefs';
|
|
11
|
+
export type { ITextEvents } from './src/shapes/IText/ITextBehavior';
|
|
12
|
+
|
|
13
|
+
export { Observable } from './src/Observable';
|
|
14
|
+
|
|
15
|
+
export type {
|
|
16
|
+
TCanvasSizeOptions,
|
|
17
|
+
TSVGExportOptions,
|
|
18
|
+
} from './src/canvas/StaticCanvas';
|
|
19
|
+
export type { StaticCanvasOptions } from './src/canvas/StaticCanvasOptions';
|
|
20
|
+
export { StaticCanvas } from './src/canvas/StaticCanvas';
|
|
21
|
+
export { Canvas } from './src/canvas/Canvas';
|
|
22
|
+
export type { CanvasOptions } from './src/canvas/CanvasOptions';
|
|
23
|
+
export { CanvasDOMManager } from './src/canvas/DOMManagers/CanvasDOMManager';
|
|
24
|
+
export { StaticCanvasDOMManager } from './src/canvas/DOMManagers/StaticCanvasDOMManager';
|
|
25
|
+
|
|
26
|
+
export type { XY } from './src/Point';
|
|
27
|
+
export { Point } from './src/Point';
|
|
28
|
+
export type { IntersectionType } from './src/Intersection';
|
|
29
|
+
export { Intersection } from './src/Intersection';
|
|
30
|
+
export { Color } from './src/color/Color';
|
|
31
|
+
export type * from './src/color/typedefs';
|
|
32
|
+
|
|
33
|
+
export * from './src/gradient';
|
|
34
|
+
export * from './src/Pattern';
|
|
35
|
+
export { Shadow } from './src/Shadow';
|
|
36
|
+
export type { SerializedShadowOptions } from './src/Shadow';
|
|
37
|
+
|
|
38
|
+
export { BaseBrush } from './src/brushes/BaseBrush';
|
|
39
|
+
export type * from './src/brushes/typedefs';
|
|
40
|
+
|
|
41
|
+
export { PencilBrush } from './src/brushes/PencilBrush';
|
|
42
|
+
export { CircleBrush } from './src/brushes/CircleBrush';
|
|
43
|
+
export { SprayBrush } from './src/brushes/SprayBrush';
|
|
44
|
+
export { PatternBrush } from './src/brushes/PatternBrush';
|
|
45
|
+
|
|
46
|
+
// many path types
|
|
47
|
+
export type * from './src/util/path/typedefs';
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
FabricObject,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Due to a naming conflict with the
|
|
54
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object JS API},
|
|
55
|
+
* `fabric.Object` has been renamed to `FabricObject`
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* import { Object } from 'fabric'; // deprecated
|
|
59
|
+
* import { FabricObject } from 'fabric'; // migration path
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
FabricObject as Object,
|
|
63
|
+
} from './src/shapes/Object/FabricObject';
|
|
64
|
+
/**
|
|
65
|
+
* Exported so we can tweak default values
|
|
66
|
+
*/
|
|
67
|
+
export {
|
|
68
|
+
FabricObject as BaseFabricObject,
|
|
69
|
+
type DrawContext,
|
|
70
|
+
} from './src/shapes/Object/Object';
|
|
71
|
+
/**
|
|
72
|
+
* Exported so we can tweak default values
|
|
73
|
+
*/
|
|
74
|
+
export { InteractiveFabricObject } from './src/shapes/Object/InteractiveObject';
|
|
75
|
+
|
|
76
|
+
export type {
|
|
77
|
+
TFabricObjectProps,
|
|
78
|
+
FabricObjectProps,
|
|
79
|
+
SerializedObjectProps,
|
|
80
|
+
} from './src/shapes/Object/types';
|
|
81
|
+
export type { SerializedLineProps } from './src/shapes/Line';
|
|
82
|
+
export { Line } from './src/shapes/Line';
|
|
83
|
+
export type { CircleProps, SerializedCircleProps } from './src/shapes/Circle';
|
|
84
|
+
export { Circle } from './src/shapes/Circle';
|
|
85
|
+
export { Triangle } from './src/shapes/Triangle';
|
|
86
|
+
export type {
|
|
87
|
+
EllipseProps,
|
|
88
|
+
SerializedEllipseProps,
|
|
89
|
+
} from './src/shapes/Ellipse';
|
|
90
|
+
export { Ellipse } from './src/shapes/Ellipse';
|
|
91
|
+
export type { RectProps, SerializedRectProps } from './src/shapes/Rect';
|
|
92
|
+
export { Rect } from './src/shapes/Rect';
|
|
93
|
+
export type { PathProps, SerializedPathProps } from './src/shapes/Path';
|
|
94
|
+
export { Path } from './src/shapes/Path';
|
|
95
|
+
export type { SerializedPolylineProps } from './src/shapes/Polyline';
|
|
96
|
+
export { Polyline } from './src/shapes/Polyline';
|
|
97
|
+
export { Polygon } from './src/shapes/Polygon';
|
|
98
|
+
export type {
|
|
99
|
+
GraphemeBBox,
|
|
100
|
+
SerializedTextProps,
|
|
101
|
+
TPathAlign,
|
|
102
|
+
TPathSide,
|
|
103
|
+
TextProps,
|
|
104
|
+
} from './src/shapes/Text/Text';
|
|
105
|
+
export {
|
|
106
|
+
FabricText,
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated Due to a naming conflict with the
|
|
109
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Text/Text Web API},
|
|
110
|
+
* `fabric.Text` has been renamed to `FabricText`
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* import { Text } from 'fabric'; // deprecated
|
|
114
|
+
* import { FabricText } from 'fabric'; // migration path
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
FabricText as Text,
|
|
118
|
+
} from './src/shapes/Text/Text';
|
|
119
|
+
export type {
|
|
120
|
+
ITextProps,
|
|
121
|
+
SerializedITextProps,
|
|
122
|
+
CursorRenderingData,
|
|
123
|
+
CursorBoundaries,
|
|
124
|
+
} from './src/shapes/IText/IText';
|
|
125
|
+
export { IText } from './src/shapes/IText/IText';
|
|
126
|
+
export type {
|
|
127
|
+
GraphemeData,
|
|
128
|
+
SerializedTextboxProps,
|
|
129
|
+
TextboxProps,
|
|
130
|
+
} from './src/shapes/Textbox';
|
|
131
|
+
export { Textbox } from './src/shapes/Textbox';
|
|
132
|
+
export type {
|
|
133
|
+
CompleteTextStyleDeclaration,
|
|
134
|
+
TextStyleDeclaration,
|
|
135
|
+
TextStyle,
|
|
136
|
+
} from './src/shapes/Text/StyledText';
|
|
137
|
+
export type {
|
|
138
|
+
GroupEvents,
|
|
139
|
+
GroupProps,
|
|
140
|
+
GroupOwnProps,
|
|
141
|
+
SerializedGroupProps,
|
|
142
|
+
} from './src/shapes/Group';
|
|
143
|
+
export { Group } from './src/shapes/Group';
|
|
144
|
+
export * from './src/LayoutManager';
|
|
145
|
+
export type { SerializedLayoutManager } from './src/LayoutManager';
|
|
146
|
+
export type {
|
|
147
|
+
ActiveSelectionOptions,
|
|
148
|
+
MultiSelectionStacking,
|
|
149
|
+
} from './src/shapes/ActiveSelection';
|
|
150
|
+
export { ActiveSelection } from './src/shapes/ActiveSelection';
|
|
151
|
+
export {
|
|
152
|
+
FabricImage,
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated Due to a naming conflict with the
|
|
156
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image Web API},
|
|
157
|
+
* `fabric.Image` has been renamed to `FabricImage`
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* import { Image } from 'fabric'; // deprecated
|
|
161
|
+
* import { FabricImage } from 'fabric'; // migration path
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
FabricImage as Image,
|
|
165
|
+
} from './src/shapes/Image';
|
|
166
|
+
export type {
|
|
167
|
+
ImageSource,
|
|
168
|
+
SerializedImageProps,
|
|
169
|
+
ImageProps,
|
|
170
|
+
} from './src/shapes/Image';
|
|
171
|
+
export { createCollectionMixin } from './src/Collection';
|
|
172
|
+
|
|
173
|
+
export * as util from './src/util';
|
|
174
|
+
|
|
175
|
+
export { loadSVGFromString } from './src/parser/loadSVGFromString';
|
|
176
|
+
export { loadSVGFromURL } from './src/parser/loadSVGFromURL';
|
|
177
|
+
export { parseSVGDocument } from './src/parser/parseSVGDocument';
|
|
178
|
+
|
|
179
|
+
export { Control } from './src/controls/Control';
|
|
180
|
+
export * as controlsUtils from './src/controls';
|
|
181
|
+
|
|
182
|
+
export * from './src/filters';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|