UNPKG

@tldraw/tlschema

Version:

tldraw infinite canvas SDK (schema).

212 lines (211 loc) • 12.9 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var index_exports = {}; __export(index_exports, { ArrowShapeArrowheadEndStyle: () => import_TLArrowShape.ArrowShapeArrowheadEndStyle, ArrowShapeArrowheadStartStyle: () => import_TLArrowShape.ArrowShapeArrowheadStartStyle, ArrowShapeKindStyle: () => import_TLArrowShape.ArrowShapeKindStyle, AssetRecordType: () => import_TLAsset.AssetRecordType, CameraRecordType: () => import_TLCamera.CameraRecordType, DefaultColorStyle: () => import_TLColorStyle.DefaultColorStyle, DefaultDashStyle: () => import_TLDashStyle.DefaultDashStyle, DefaultFillStyle: () => import_TLFillStyle.DefaultFillStyle, DefaultFontFamilies: () => import_TLFontStyle.DefaultFontFamilies, DefaultFontStyle: () => import_TLFontStyle.DefaultFontStyle, DefaultHorizontalAlignStyle: () => import_TLHorizontalAlignStyle.DefaultHorizontalAlignStyle, DefaultSizeStyle: () => import_TLSizeStyle.DefaultSizeStyle, DefaultTextAlignStyle: () => import_TLTextAlignStyle.DefaultTextAlignStyle, DefaultVerticalAlignStyle: () => import_TLVerticalAlignStyle.DefaultVerticalAlignStyle, DocumentRecordType: () => import_TLDocument.DocumentRecordType, ElbowArrowSnap: () => import_TLArrowBinding.ElbowArrowSnap, EnumStyleProp: () => import_StyleProp.EnumStyleProp, GeoShapeGeoStyle: () => import_TLGeoShape.GeoShapeGeoStyle, ImageShapeCrop: () => import_TLImageShape.ImageShapeCrop, InstancePageStateRecordType: () => import_TLPageState.InstancePageStateRecordType, InstancePresenceRecordType: () => import_TLPresence.InstancePresenceRecordType, LANGUAGES: () => import_translations.LANGUAGES, LineShapeSplineStyle: () => import_TLLineShape.LineShapeSplineStyle, PageRecordType: () => import_TLPage.PageRecordType, PointerRecordType: () => import_TLPointer.PointerRecordType, StyleProp: () => import_StyleProp.StyleProp, TLDOCUMENT_ID: () => import_TLDocument.TLDOCUMENT_ID, TLINSTANCE_ID: () => import_TLInstance.TLINSTANCE_ID, TLPOINTER_ID: () => import_TLPointer.TLPOINTER_ID, TL_CANVAS_UI_COLOR_TYPES: () => import_TLColor.TL_CANVAS_UI_COLOR_TYPES, TL_CURSOR_TYPES: () => import_TLCursor.TL_CURSOR_TYPES, TL_HANDLE_TYPES: () => import_TLHandle.TL_HANDLE_TYPES, TL_SCRIBBLE_STATES: () => import_TLScribble.TL_SCRIBBLE_STATES, UserRecordType: () => import_TLUser.UserRecordType, arrowBindingMigrations: () => import_TLArrowBinding.arrowBindingMigrations, arrowBindingProps: () => import_TLArrowBinding.arrowBindingProps, arrowBindingVersions: () => import_TLArrowBinding.arrowBindingVersions, arrowShapeMigrations: () => import_TLArrowShape.arrowShapeMigrations, arrowShapeProps: () => import_TLArrowShape.arrowShapeProps, arrowShapeVersions: () => import_TLArrowShape.arrowShapeVersions, assetIdValidator: () => import_TLBaseAsset.assetIdValidator, assetMigrations: () => import_TLAsset.assetMigrations, b64Vecs: () => import_b64Vecs.b64Vecs, bindingIdValidator: () => import_TLBaseBinding.bindingIdValidator, bookmarkAssetMigrations: () => import_TLBookmarkAsset.bookmarkAssetMigrations, bookmarkAssetProps: () => import_TLBookmarkAsset.bookmarkAssetProps, bookmarkShapeMigrations: () => import_TLBookmarkShape.bookmarkShapeMigrations, bookmarkShapeProps: () => import_TLBookmarkShape.bookmarkShapeProps, boxModelValidator: () => import_geometry_types.boxModelValidator, canvasUiColorTypeValidator: () => import_TLColor.canvasUiColorTypeValidator, compressLegacySegments: () => import_TLDrawShape.compressLegacySegments, createAssetPropsMigrationIds: () => import_TLAsset.createAssetPropsMigrationIds, createAssetPropsMigrationSequence: () => import_TLAsset.createAssetPropsMigrationSequence, createAssetRecordType: () => import_TLAsset.createAssetRecordType, createAssetValidator: () => import_TLBaseAsset.createAssetValidator, createBindingId: () => import_TLBinding.createBindingId, createBindingPropsMigrationIds: () => import_TLBinding.createBindingPropsMigrationIds, createBindingPropsMigrationSequence: () => import_TLBinding.createBindingPropsMigrationSequence, createBindingValidator: () => import_TLBaseBinding.createBindingValidator, createCachedUserResolve: () => import_TLStore.createCachedUserResolve, createCustomRecordId: () => import_TLCustomRecord.createCustomRecordId, createCustomRecordMigrationIds: () => import_TLCustomRecord.createCustomRecordMigrationIds, createCustomRecordMigrationSequence: () => import_TLCustomRecord.createCustomRecordMigrationSequence, createPresenceStateDerivation: () => import_createPresenceStateDerivation.createPresenceStateDerivation, createShapeId: () => import_TLShape.createShapeId, createShapePropsMigrationIds: () => import_TLShape.createShapePropsMigrationIds, createShapePropsMigrationSequence: () => import_TLShape.createShapePropsMigrationSequence, createShapeValidator: () => import_TLBaseShape.createShapeValidator, createTLSchema: () => import_createTLSchema.createTLSchema, createUserId: () => import_TLUser.createUserId, createUserRecordType: () => import_TLUser.createUserRecordType, defaultAssetSchemas: () => import_createTLSchema.defaultAssetSchemas, defaultBindingSchemas: () => import_createTLSchema.defaultBindingSchemas, defaultShapeSchemas: () => import_createTLSchema.defaultShapeSchemas, drawShapeMigrations: () => import_TLDrawShape.drawShapeMigrations, drawShapeProps: () => import_TLDrawShape.drawShapeProps, embedShapeMigrations: () => import_TLEmbedShape.embedShapeMigrations, embedShapeProps: () => import_TLEmbedShape.embedShapeProps, frameShapeMigrations: () => import_TLFrameShape.frameShapeMigrations, frameShapeProps: () => import_TLFrameShape.frameShapeProps, geoShapeMigrations: () => import_TLGeoShape.geoShapeMigrations, geoShapeProps: () => import_TLGeoShape.geoShapeProps, getDefaultTranslationLocale: () => import_translations.getDefaultTranslationLocale, getDefaultUserPresence: () => import_createPresenceStateDerivation.getDefaultUserPresence, getShapePropKeysByStyle: () => import_TLShape.getShapePropKeysByStyle, groupShapeMigrations: () => import_TLGroupShape.groupShapeMigrations, groupShapeProps: () => import_TLGroupShape.groupShapeProps, highlightShapeMigrations: () => import_TLHighlightShape.highlightShapeMigrations, highlightShapeProps: () => import_TLHighlightShape.highlightShapeProps, idValidator: () => import_id_validator.idValidator, imageAssetMigrations: () => import_TLImageAsset.imageAssetMigrations, imageAssetProps: () => import_TLImageAsset.imageAssetProps, imageShapeMigrations: () => import_TLImageShape.imageShapeMigrations, imageShapeProps: () => import_TLImageShape.imageShapeProps, isBinding: () => import_TLBinding.isBinding, isBindingId: () => import_TLBinding.isBindingId, isCustomRecord: () => import_TLCustomRecord.isCustomRecord, isCustomRecordId: () => import_TLCustomRecord.isCustomRecordId, isDocument: () => import_TLDocument.isDocument, isFontEntry: () => import_TLFontStyle.isFontEntry, isPageId: () => import_TLPage.isPageId, isShape: () => import_TLShape.isShape, isShapeId: () => import_TLShape.isShapeId, isUserId: () => import_TLUser.isUserId, lineShapeMigrations: () => import_TLLineShape.lineShapeMigrations, lineShapeProps: () => import_TLLineShape.lineShapeProps, noteShapeMigrations: () => import_TLNoteShape.noteShapeMigrations, noteShapeProps: () => import_TLNoteShape.noteShapeProps, opacityValidator: () => import_TLOpacity.opacityValidator, pageIdValidator: () => import_TLPage.pageIdValidator, parentIdValidator: () => import_TLBaseShape.parentIdValidator, pluckPreservingValues: () => import_TLInstance.pluckPreservingValues, registerColorsFromThemes: () => import_TLColorStyle.registerColorsFromThemes, registerFontsFromThemes: () => import_TLFontStyle.registerFontsFromThemes, richTextValidator: () => import_TLRichText.richTextValidator, rootBindingMigrations: () => import_TLBinding.rootBindingMigrations, rootShapeMigrations: () => import_TLShape.rootShapeMigrations, scribbleValidator: () => import_TLScribble.scribbleValidator, shapeIdValidator: () => import_TLBaseShape.shapeIdValidator, textShapeMigrations: () => import_TLTextShape.textShapeMigrations, textShapeProps: () => import_TLTextShape.textShapeProps, toRichText: () => import_TLRichText.toRichText, userIdValidator: () => import_TLUser.userIdValidator, vecModelValidator: () => import_geometry_types.vecModelValidator, videoAssetMigrations: () => import_TLVideoAsset.videoAssetMigrations, videoAssetProps: () => import_TLVideoAsset.videoAssetProps, videoShapeMigrations: () => import_TLVideoShape.videoShapeMigrations, videoShapeProps: () => import_TLVideoShape.videoShapeProps }); module.exports = __toCommonJS(index_exports); var import_utils = require("@tldraw/utils"); var import_TLBaseAsset = require("./assets/TLBaseAsset"); var import_TLBookmarkAsset = require("./assets/TLBookmarkAsset"); var import_TLImageAsset = require("./assets/TLImageAsset"); var import_TLVideoAsset = require("./assets/TLVideoAsset"); var import_TLArrowBinding = require("./bindings/TLArrowBinding"); var import_TLBaseBinding = require("./bindings/TLBaseBinding"); var import_createPresenceStateDerivation = require("./createPresenceStateDerivation"); var import_createTLSchema = require("./createTLSchema"); var import_geometry_types = require("./misc/geometry-types"); var import_id_validator = require("./misc/id-validator"); var import_TLColor = require("./misc/TLColor"); var import_TLCursor = require("./misc/TLCursor"); var import_TLHandle = require("./misc/TLHandle"); var import_TLOpacity = require("./misc/TLOpacity"); var import_TLRichText = require("./misc/TLRichText"); var import_TLScribble = require("./misc/TLScribble"); var import_TLAsset = require("./records/TLAsset"); var import_TLBinding = require("./records/TLBinding"); var import_TLCamera = require("./records/TLCamera"); var import_TLCustomRecord = require("./records/TLCustomRecord"); var import_TLDocument = require("./records/TLDocument"); var import_TLInstance = require("./records/TLInstance"); var import_TLPage = require("./records/TLPage"); var import_TLPageState = require("./records/TLPageState"); var import_TLPointer = require("./records/TLPointer"); var import_TLPresence = require("./records/TLPresence"); var import_TLShape = require("./records/TLShape"); var import_TLUser = require("./records/TLUser"); var import_TLArrowShape = require("./shapes/TLArrowShape"); var import_TLBaseShape = require("./shapes/TLBaseShape"); var import_TLBookmarkShape = require("./shapes/TLBookmarkShape"); var import_TLDrawShape = require("./shapes/TLDrawShape"); var import_TLEmbedShape = require("./shapes/TLEmbedShape"); var import_TLFrameShape = require("./shapes/TLFrameShape"); var import_TLGeoShape = require("./shapes/TLGeoShape"); var import_TLGroupShape = require("./shapes/TLGroupShape"); var import_TLHighlightShape = require("./shapes/TLHighlightShape"); var import_TLImageShape = require("./shapes/TLImageShape"); var import_TLLineShape = require("./shapes/TLLineShape"); var import_TLNoteShape = require("./shapes/TLNoteShape"); var import_TLTextShape = require("./shapes/TLTextShape"); var import_TLVideoShape = require("./shapes/TLVideoShape"); var import_StyleProp = require("./styles/StyleProp"); var import_TLColorStyle = require("./styles/TLColorStyle"); var import_TLDashStyle = require("./styles/TLDashStyle"); var import_TLFillStyle = require("./styles/TLFillStyle"); var import_TLFontStyle = require("./styles/TLFontStyle"); var import_TLHorizontalAlignStyle = require("./styles/TLHorizontalAlignStyle"); var import_TLSizeStyle = require("./styles/TLSizeStyle"); var import_TLTextAlignStyle = require("./styles/TLTextAlignStyle"); var import_TLVerticalAlignStyle = require("./styles/TLVerticalAlignStyle"); var import_TLStore = require("./TLStore"); var import_translations = require("./translations/translations"); var import_b64Vecs = require("./misc/b64Vecs"); (0, import_utils.registerTldrawLibraryVersion)( "@tldraw/tlschema", "5.0.1", "cjs" ); //# sourceMappingURL=index.js.map