8 Star 33 Fork 8

Gitee 极速下载/FabricJS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fabricjs/fabric.js/
克隆/下载
fabric.ts 5.91 KB
一键复制 编辑 原始数据 按行查看 历史
export { getEnv, getFabricDocument, getFabricWindow, setEnv } from './src/env';
export { cache } from './src/cache';
export { VERSION as version, iMatrix } from './src/constants';
export { config } from './src/config';
export { classRegistry } from './src/ClassRegistry';
export { runningAnimations } from './src/util/animation/AnimationRegistry';
export * from './src/typedefs';
export * from './src/EventTypeDefs';
export { Observable } from './src/Observable';
export type {
TCanvasSizeOptions,
TSVGExportOptions,
} from './src/canvas/StaticCanvas';
export type { StaticCanvasOptions } from './src/canvas/StaticCanvasOptions';
export { StaticCanvas } from './src/canvas/StaticCanvas';
export { Canvas } from './src/canvas/Canvas';
export type { CanvasOptions } from './src/canvas/CanvasOptions';
export { CanvasDOMManager } from './src/canvas/DOMManagers/CanvasDOMManager';
export { StaticCanvasDOMManager } from './src/canvas/DOMManagers/StaticCanvasDOMManager';
export type { XY } from './src/Point';
export { Point } from './src/Point';
export type { IntersectionType } from './src/Intersection';
export { Intersection } from './src/Intersection';
export { Color } from './src/color/Color';
export * from './src/color/typedefs';
export * from './src/gradient';
export * from './src/Pattern';
export { Shadow } from './src/Shadow';
export type { SerializedShadowOptions } from './src/Shadow';
export { BaseBrush } from './src/brushes/BaseBrush';
export * from './src/brushes/typedefs';
export { PencilBrush } from './src/brushes/PencilBrush';
export { CircleBrush } from './src/brushes/CircleBrush';
export { SprayBrush } from './src/brushes/SprayBrush';
export { PatternBrush } from './src/brushes/PatternBrush';
export {
FabricObject,
/**
* @deprecated Due to a naming conflict with the
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object JS API},
* `fabric.Object` has been renamed to `FabricObject`
*
* @example
* import { Object } from 'fabric'; // deprecated
* import { FabricObject } from 'fabric'; // migration path
*
*/
FabricObject as Object,
} from './src/shapes/Object/FabricObject';
/**
* Exported so we can tweak default values
*/
export { FabricObject as BaseFabricObject } from './src/shapes/Object/Object';
export type {
TFabricObjectProps,
FabricObjectProps,
SerializedObjectProps,
} from './src/shapes/Object/types';
export type { SerializedLineProps } from './src/shapes/Line';
export { Line } from './src/shapes/Line';
export type { CircleProps, SerializedCircleProps } from './src/shapes/Circle';
export { Circle } from './src/shapes/Circle';
export { Triangle } from './src/shapes/Triangle';
export type {
EllipseProps,
SerializedEllipseProps,
} from './src/shapes/Ellipse';
export { Ellipse } from './src/shapes/Ellipse';
export type { RectProps, SerializedRectProps } from './src/shapes/Rect';
export { Rect } from './src/shapes/Rect';
export type { PathProps, SerializedPathProps } from './src/shapes/Path';
export { Path } from './src/shapes/Path';
export type { SerializedPolylineProps } from './src/shapes/Polyline';
export { Polyline } from './src/shapes/Polyline';
export { Polygon } from './src/shapes/Polygon';
export type {
GraphemeBBox,
SerializedTextProps,
TPathAlign,
TPathSide,
TextProps,
} from './src/shapes/Text/Text';
export {
FabricText,
/**
* @deprecated Due to a naming conflict with the
* {@link https://developer.mozilla.org/en-US/docs/Web/API/Text/Text Web API},
* `fabric.Text` has been renamed to `FabricText`
*
* @example
* import { Text } from 'fabric'; // deprecated
* import { FabricText } from 'fabric'; // migration path
*
*/
FabricText as Text,
} from './src/shapes/Text/Text';
export type {
ITextProps,
SerializedITextProps,
} from './src/shapes/IText/IText';
export { IText } from './src/shapes/IText/IText';
export type {
GraphemeData,
SerializedTextboxProps,
TextboxProps,
} from './src/shapes/Textbox';
export { Textbox } from './src/shapes/Textbox';
export type {
CompleteTextStyleDeclaration,
TextStyleDeclaration,
TextStyle,
} from './src/shapes/Text/StyledText';
export type {
GroupEvents,
GroupProps,
GroupOwnProps,
SerializedGroupProps,
} from './src/shapes/Group';
export { Group } from './src/shapes/Group';
export * from './src/LayoutManager';
export type { SerializedLayoutManager } from './src/LayoutManager';
export type {
ActiveSelectionOptions,
MultiSelectionStacking,
} from './src/shapes/ActiveSelection';
export { ActiveSelection } from './src/shapes/ActiveSelection';
export {
FabricImage,
/**
* @deprecated Due to a naming conflict with the
* {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image Web API},
* `fabric.Image` has been renamed to `FabricImage`
*
* @example
* import { Image } from 'fabric'; // deprecated
* import { FabricImage } from 'fabric'; // migration path
*
*/
FabricImage as Image,
} from './src/shapes/Image';
export type {
ImageSource,
SerializedImageProps,
ImageProps,
} from './src/shapes/Image';
export { createCollectionMixin } from './src/Collection';
export * as util from './src/util';
export { loadSVGFromString } from './src/parser/loadSVGFromString';
export { loadSVGFromURL } from './src/parser/loadSVGFromURL';
export { parseSVGDocument } from './src/parser/parseSVGDocument';
// todo convert tests to jest and stop exporting those.
export { parseAttributes } from './src/parser/parseAttributes';
export { parseStyleAttribute } from './src/parser/parseStyleAttribute';
export { parsePointsAttribute } from './src/parser/parsePointsAttribute';
export { parseTransformAttribute } from './src/parser/parseTransformAttribute';
export { getCSSRules } from './src/parser/getCSSRules';
export { parseFontDeclaration } from './src/parser/parseFontDeclaration';
export { Control } from './src/controls/Control';
export * as controlsUtils from './src/controls';
export * from './src/filters';
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/FabricJS.git
git@gitee.com:mirrors/FabricJS.git
mirrors
FabricJS
FabricJS
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385