@tldraw/tlschema
Version:
A tiny little drawing app (schema).
278 lines (277 loc) • 6.68 kB
JavaScript
import { registerTldrawLibraryVersion } from "@tldraw/utils";
import { assetIdValidator, createAssetValidator } from "./assets/TLBaseAsset.mjs";
import {
arrowBindingMigrations,
arrowBindingProps
} from "./bindings/TLArrowBinding.mjs";
import {
bindingIdValidator,
createBindingValidator
} from "./bindings/TLBaseBinding.mjs";
import {
createPresenceStateDerivation,
getDefaultUserPresence
} from "./createPresenceStateDerivation.mjs";
import {
createTLSchema,
defaultBindingSchemas,
defaultShapeSchemas
} from "./createTLSchema.mjs";
import {
TL_CANVAS_UI_COLOR_TYPES,
canvasUiColorTypeValidator
} from "./misc/TLColor.mjs";
import { TL_CURSOR_TYPES } from "./misc/TLCursor.mjs";
import { TL_HANDLE_TYPES } from "./misc/TLHandle.mjs";
import { opacityValidator } from "./misc/TLOpacity.mjs";
import { richTextValidator, toRichText } from "./misc/TLRichText.mjs";
import { TL_SCRIBBLE_STATES, scribbleValidator } from "./misc/TLScribble.mjs";
import {
boxModelValidator,
vecModelValidator
} from "./misc/geometry-types.mjs";
import { idValidator } from "./misc/id-validator.mjs";
import {
AssetRecordType,
assetMigrations,
assetValidator
} from "./records/TLAsset.mjs";
import {
createBindingId,
createBindingPropsMigrationIds,
createBindingPropsMigrationSequence,
isBinding,
isBindingId,
rootBindingMigrations
} from "./records/TLBinding.mjs";
import { CameraRecordType } from "./records/TLCamera.mjs";
import {
DocumentRecordType,
TLDOCUMENT_ID,
isDocument
} from "./records/TLDocument.mjs";
import {
TLINSTANCE_ID,
pluckPreservingValues
} from "./records/TLInstance.mjs";
import {
PageRecordType,
isPageId,
pageIdValidator
} from "./records/TLPage.mjs";
import {
InstancePageStateRecordType
} from "./records/TLPageState.mjs";
import {
PointerRecordType,
TLPOINTER_ID
} from "./records/TLPointer.mjs";
import {
InstancePresenceRecordType
} from "./records/TLPresence.mjs";
import {
createShapeId,
createShapePropsMigrationIds,
createShapePropsMigrationSequence,
getShapePropKeysByStyle,
isShape,
isShapeId,
rootShapeMigrations
} from "./records/TLShape.mjs";
import {
ArrowShapeArrowheadEndStyle,
ArrowShapeArrowheadStartStyle,
arrowShapeMigrations,
arrowShapeProps
} from "./shapes/TLArrowShape.mjs";
import {
createShapeValidator,
parentIdValidator,
shapeIdValidator
} from "./shapes/TLBaseShape.mjs";
import {
bookmarkShapeMigrations,
bookmarkShapeProps
} from "./shapes/TLBookmarkShape.mjs";
import {
drawShapeMigrations,
drawShapeProps
} from "./shapes/TLDrawShape.mjs";
import {
embedShapeMigrations,
embedShapeProps
} from "./shapes/TLEmbedShape.mjs";
import {
frameShapeMigrations,
frameShapeProps
} from "./shapes/TLFrameShape.mjs";
import {
GeoShapeGeoStyle,
geoShapeMigrations,
geoShapeProps
} from "./shapes/TLGeoShape.mjs";
import {
groupShapeMigrations,
groupShapeProps
} from "./shapes/TLGroupShape.mjs";
import {
highlightShapeMigrations,
highlightShapeProps
} from "./shapes/TLHighlightShape.mjs";
import {
ImageShapeCrop,
imageShapeMigrations,
imageShapeProps
} from "./shapes/TLImageShape.mjs";
import {
LineShapeSplineStyle,
lineShapeMigrations,
lineShapeProps
} from "./shapes/TLLineShape.mjs";
import {
noteShapeMigrations,
noteShapeProps
} from "./shapes/TLNoteShape.mjs";
import {
textShapeMigrations,
textShapeProps
} from "./shapes/TLTextShape.mjs";
import {
videoShapeMigrations,
videoShapeProps
} from "./shapes/TLVideoShape.mjs";
import { EnumStyleProp, StyleProp } from "./styles/StyleProp.mjs";
import {
DefaultColorStyle,
DefaultColorThemePalette,
defaultColorNames,
getDefaultColorTheme
} from "./styles/TLColorStyle.mjs";
import { DefaultDashStyle } from "./styles/TLDashStyle.mjs";
import { DefaultFillStyle } from "./styles/TLFillStyle.mjs";
import {
DefaultFontFamilies,
DefaultFontStyle
} from "./styles/TLFontStyle.mjs";
import {
DefaultHorizontalAlignStyle
} from "./styles/TLHorizontalAlignStyle.mjs";
import { DefaultSizeStyle } from "./styles/TLSizeStyle.mjs";
import { DefaultTextAlignStyle } from "./styles/TLTextAlignStyle.mjs";
import {
DefaultVerticalAlignStyle
} from "./styles/TLVerticalAlignStyle.mjs";
import {
LANGUAGES,
getDefaultTranslationLocale
} from "./translations/translations.mjs";
registerTldrawLibraryVersion(
"@tldraw/tlschema",
"3.12.0",
"esm"
);
export {
ArrowShapeArrowheadEndStyle,
ArrowShapeArrowheadStartStyle,
AssetRecordType,
CameraRecordType,
DefaultColorStyle,
DefaultColorThemePalette,
DefaultDashStyle,
DefaultFillStyle,
DefaultFontFamilies,
DefaultFontStyle,
DefaultHorizontalAlignStyle,
DefaultSizeStyle,
DefaultTextAlignStyle,
DefaultVerticalAlignStyle,
DocumentRecordType,
EnumStyleProp,
GeoShapeGeoStyle,
ImageShapeCrop,
InstancePageStateRecordType,
InstancePresenceRecordType,
LANGUAGES,
LineShapeSplineStyle,
PageRecordType,
PointerRecordType,
StyleProp,
TLDOCUMENT_ID,
TLINSTANCE_ID,
TLPOINTER_ID,
TL_CANVAS_UI_COLOR_TYPES,
TL_CURSOR_TYPES,
TL_HANDLE_TYPES,
TL_SCRIBBLE_STATES,
arrowBindingMigrations,
arrowBindingProps,
arrowShapeMigrations,
arrowShapeProps,
assetIdValidator,
assetMigrations,
assetValidator,
bindingIdValidator,
bookmarkShapeMigrations,
bookmarkShapeProps,
boxModelValidator,
canvasUiColorTypeValidator,
createAssetValidator,
createBindingId,
createBindingPropsMigrationIds,
createBindingPropsMigrationSequence,
createBindingValidator,
createPresenceStateDerivation,
createShapeId,
createShapePropsMigrationIds,
createShapePropsMigrationSequence,
createShapeValidator,
createTLSchema,
defaultBindingSchemas,
defaultColorNames,
defaultShapeSchemas,
drawShapeMigrations,
drawShapeProps,
embedShapeMigrations,
embedShapeProps,
frameShapeMigrations,
frameShapeProps,
geoShapeMigrations,
geoShapeProps,
getDefaultColorTheme,
getDefaultTranslationLocale,
getDefaultUserPresence,
getShapePropKeysByStyle,
groupShapeMigrations,
groupShapeProps,
highlightShapeMigrations,
highlightShapeProps,
idValidator,
imageShapeMigrations,
imageShapeProps,
isBinding,
isBindingId,
isDocument,
isPageId,
isShape,
isShapeId,
lineShapeMigrations,
lineShapeProps,
noteShapeMigrations,
noteShapeProps,
opacityValidator,
pageIdValidator,
parentIdValidator,
pluckPreservingValues,
richTextValidator,
rootBindingMigrations,
rootShapeMigrations,
scribbleValidator,
shapeIdValidator,
textShapeMigrations,
textShapeProps,
toRichText,
vecModelValidator,
videoShapeMigrations,
videoShapeProps
};
//# sourceMappingURL=index.mjs.map