@ibodr/draw 0.1.1 → 0.1.2
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/dist/index.mjs +188 -202
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useMaybeEditor, uniqueId, useValue, assert, useReactor, unsafe__withoutCapture, useContainer, debugFlags, objectMapValues, WeakCache, tltime, tlenv, track, useEditor, usePassThroughWheelEvents, useEditorComponents, preventDefault, PageRecordType, setPointerCapture, releasePointerCapture, usePresence, USER_COLORS, modulate, isEqual, approximately, Box, debounce, isEqualAllowingForFloatingPointErrors, createComputedCache as createComputedCache$1, useUniqueSafeId, useEvent, toRichText, Vec, getChangedKeys, useSharedSafeId, useIsEditing, toDomPrecision, LruCache, HTMLContainer, MediaHelpers, Image, getGlobalDocument,
|
|
1
|
+
import { useMaybeEditor, uniqueId, useValue, assert, useReactor, unsafe__withoutCapture, useContainer, debugFlags, objectMapValues, WeakCache, tltime, tlenv, track, useEditor, usePassThroughWheelEvents, useEditorComponents, preventDefault, PageRecordType, setPointerCapture, releasePointerCapture, usePresence, USER_COLORS, modulate, isEqual, approximately, Box, debounce, isEqualAllowingForFloatingPointErrors, createComputedCache as createComputedCache$1, useUniqueSafeId, useEvent, toRichText, Vec, getChangedKeys, useSharedSafeId, useIsEditing, toDomPrecision, LruCache, HTMLContainer, MediaHelpers, Image, getGlobalDocument, defaultUserPreferences, useShallowArrayIdentity, mergeArraysAndReplaceDefaults, useDrStore, Editor as Editor$1, T, registerDrawLibraryVersion, safeParseUrl, useGlobalMenuIsOpen, getFromLocalStorage, setInLocalStorage, getIndexAbove, getIndexBelow, getIndexBetween, exhaustiveSwitchError, getOwnerWindow, DefaultColorStyle, getColorValue, tlmenus, SharedStyleMap, DefaultDashStyle, DefaultFillStyle, DefaultSizeStyle, kickoutOccludedShapes, usePassThroughMouseOverEvents, useAtom, react, lerp, isSafeFloat, Mat, isAccelKey, openWindow, Polyline2d, Arc2d, Edge2d, useSvgExportContext, useColorMode, getVerticesCountForArcLength, Group2d, assertExists, clamp, rng, canonicalizeRotation, getPolygonVertices, useDelaySvgExport, noop, getGlobalWindow, useShallowObjectIdentity, objectMapEntries, GeoShapeGeoStyle, ShapeUtil, textShapeProps, textShapeMigrations, Rectangle2d, getFontsFromRichText, resizeScaled, BaseBoxShapeUtil, bookmarkShapeProps, bookmarkShapeMigrations, drawShapeProps, drawShapeMigrations, Circle2d, Polygon2d, SVGContainer, last, geoShapeProps, geoShapeMigrations, EMPTY_ARRAY, noteShapeProps, noteShapeMigrations, DefaultFontFamilies, lineShapeProps, lineShapeMigrations, getIndices, sortByIndex, mapObjectMapValues, maybeSnapToGrid, ZERO_INDEX_KEY, BaseFrameLikeShapeUtil, frameShapeProps, frameShapeMigrations, compact, arrowShapeProps, arrowShapeMigrations, invLerp, structuredClone, highlightShapeProps, highlightShapeMigrations, tlenvReactive, embedShapeProps, embedShapeMigrations, resizeBox, imageShapeProps, imageShapeMigrations, createShapeId, Ellipse2d, videoShapeProps, videoShapeMigrations, BindingUtil, arrowBindingProps, arrowBindingMigrations, getOwnProperty, atom, DefaultSpinner, elementShouldCaptureKeys, minBy, DefaultFontStyle, DefaultTextAlignStyle, DefaultHorizontalAlignStyle, DefaultVerticalAlignStyle, ArrowShapeKindStyle, ArrowShapeArrowheadEndStyle, ArrowShapeArrowheadStartStyle, LineShapeSplineStyle, activeElementShouldCaptureKeys, Geometry2dFilters, pointInPolygon, intersectLineSegmentPolygon, centerOfCircleFromThreePoints, clockwiseAngleDist, counterClockwiseAngleDist, PI, getPointerInfo, intersectCircleCircle, HALF_PI, suffixSafeId, getPerfectDashProps, Geometry2d, CubicBezier2d, LANGUAGES, usePeerIds, normalizeWheel, getIndicesBetween, AssetRecordType, getHashForString, precise, average, b64Vecs, computed, objectMapKeys, intersectLineSegmentCircle, EASINGS, fetch, FileHelpers, isFontEntry, PI2, isDefined, hardResetEditor, sanitizeId, Result, transact, isShapeId, richTextValidator, featureFlags, useQuickReactor, objectMapFromEntries, uniq, ShapeIndicatorOverlayUtil, createBindingId, getHashForBuffer, bind, getPointOnCircle, AssetUtil, bookmarkAssetProps, bookmarkAssetMigrations, clampToBrowserMaxCanvasSize, imageAssetProps, imageAssetMigrations, DEFAULT_SUPPORTED_IMAGE_TYPES, videoAssetProps, videoAssetMigrations, DEFAULT_SUPPORT_VIDEO_TYPES, OverlayUtil, getOverlayDisplayValues, getSvgPathFromPoints, strokeShapeIndicators, SIDES, rangeIntersection, StateNode, BaseBoxShapeTool, DrawEditor, useOnMount, createDrStore, MigrationFailureReason, toFixed, snapAngle, isPageId, polygonsIntersect, areAnglesCompatible, getRotationSnapshot, applyRotationToSnapshotShapes, shortAngleDist, degreesToRadians, warnOnce, LoadingScreen as LoadingScreen$1, SIN, throttle } from '@ibodr/editor';
|
|
2
2
|
export * from '@ibodr/editor';
|
|
3
3
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as React4 from 'react';
|
|
@@ -34998,25 +34998,13 @@ var PlainTextLabel = React4__default.memo(function PlainTextLabel2({
|
|
|
34998
34998
|
);
|
|
34999
34999
|
});
|
|
35000
35000
|
var defaultEditorAssetUrls = {
|
|
35001
|
-
fonts: {
|
|
35002
|
-
draw_mono: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexMono-Medium.woff2`,
|
|
35003
|
-
draw_mono_italic: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexMono-MediumItalic.woff2`,
|
|
35004
|
-
draw_mono_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexMono-Bold.woff2`,
|
|
35005
|
-
draw_mono_italic_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexMono-BoldItalic.woff2`,
|
|
35006
|
-
draw_serif: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSerif-Medium.woff2`,
|
|
35007
|
-
draw_serif_italic: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSerif-MediumItalic.woff2`,
|
|
35008
|
-
draw_serif_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSerif-Bold.woff2`,
|
|
35009
|
-
draw_serif_italic_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSerif-BoldItalic.woff2`,
|
|
35010
|
-
draw_sans: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSans-Medium.woff2`,
|
|
35011
|
-
draw_sans_italic: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSans-MediumItalic.woff2`,
|
|
35012
|
-
draw_sans_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSans-Bold.woff2`,
|
|
35013
|
-
draw_sans_italic_bold: `${getDefaultCdnBaseUrl()}/fonts/IBMPlexSans-BoldItalic.woff2`,
|
|
35014
|
-
draw_draw: `${getDefaultCdnBaseUrl()}/fonts/Shantell_Sans-Informal_Regular.woff2`,
|
|
35015
|
-
draw_draw_italic: `${getDefaultCdnBaseUrl()}/fonts/Shantell_Sans-Informal_Regular_Italic.woff2`,
|
|
35016
|
-
draw_draw_bold: `${getDefaultCdnBaseUrl()}/fonts/Shantell_Sans-Informal_Bold.woff2`,
|
|
35017
|
-
draw_draw_italic_bold: `${getDefaultCdnBaseUrl()}/fonts/Shantell_Sans-Informal_Bold_Italic.woff2`
|
|
35018
|
-
}
|
|
35001
|
+
fonts: {}
|
|
35019
35002
|
};
|
|
35003
|
+
function hasExternalFontUrls(fonts) {
|
|
35004
|
+
return Object.values(fonts ?? {}).some(
|
|
35005
|
+
(url) => typeof url === "string" && (url.startsWith("http://") || url.startsWith("https://"))
|
|
35006
|
+
);
|
|
35007
|
+
}
|
|
35020
35008
|
function setDefaultEditorAssetUrls(assetUrls) {
|
|
35021
35009
|
defaultEditorAssetUrls = assetUrls;
|
|
35022
35010
|
}
|
|
@@ -35029,185 +35017,12 @@ function useDefaultEditorAssetsWithOverrides(overrides) {
|
|
|
35029
35017
|
}, [overrides]);
|
|
35030
35018
|
}
|
|
35031
35019
|
|
|
35032
|
-
// src/lib/ui/icon-types.ts
|
|
35033
|
-
var iconTypes = [
|
|
35034
|
-
"align-bottom",
|
|
35035
|
-
"align-center-horizontal",
|
|
35036
|
-
"align-center-vertical",
|
|
35037
|
-
"align-left",
|
|
35038
|
-
"align-right",
|
|
35039
|
-
"align-top",
|
|
35040
|
-
"alt",
|
|
35041
|
-
"arrow-arc",
|
|
35042
|
-
"arrow-cycle",
|
|
35043
|
-
"arrow-elbow",
|
|
35044
|
-
"arrow-left",
|
|
35045
|
-
"arrowhead-arrow",
|
|
35046
|
-
"arrowhead-bar",
|
|
35047
|
-
"arrowhead-diamond",
|
|
35048
|
-
"arrowhead-dot",
|
|
35049
|
-
"arrowhead-none",
|
|
35050
|
-
"arrowhead-square",
|
|
35051
|
-
"arrowhead-triangle-inverted",
|
|
35052
|
-
"arrowhead-triangle",
|
|
35053
|
-
"blob",
|
|
35054
|
-
"bold",
|
|
35055
|
-
"bookmark",
|
|
35056
|
-
"bring-forward",
|
|
35057
|
-
"bring-to-front",
|
|
35058
|
-
"broken",
|
|
35059
|
-
"bulletList",
|
|
35060
|
-
"check-circle",
|
|
35061
|
-
"check",
|
|
35062
|
-
"chevron-down",
|
|
35063
|
-
"chevron-left",
|
|
35064
|
-
"chevron-right",
|
|
35065
|
-
"chevron-up",
|
|
35066
|
-
"chevrons-ne",
|
|
35067
|
-
"chevrons-sw",
|
|
35068
|
-
"clipboard-copied",
|
|
35069
|
-
"clipboard-copy",
|
|
35070
|
-
"code",
|
|
35071
|
-
"color",
|
|
35072
|
-
"comment",
|
|
35073
|
-
"corners",
|
|
35074
|
-
"crop",
|
|
35075
|
-
"cross-2",
|
|
35076
|
-
"cross-circle",
|
|
35077
|
-
"dash-dashed",
|
|
35078
|
-
"dash-dotted",
|
|
35079
|
-
"dash-draw",
|
|
35080
|
-
"dash-solid",
|
|
35081
|
-
"disconnected",
|
|
35082
|
-
"discord",
|
|
35083
|
-
"distribute-horizontal",
|
|
35084
|
-
"distribute-vertical",
|
|
35085
|
-
"dot",
|
|
35086
|
-
"dots-horizontal",
|
|
35087
|
-
"dots-vertical",
|
|
35088
|
-
"download",
|
|
35089
|
-
"drag-handle-dots",
|
|
35090
|
-
"duplicate",
|
|
35091
|
-
"edit",
|
|
35092
|
-
"external-link",
|
|
35093
|
-
"fill-fill",
|
|
35094
|
-
"fill-lined-fill",
|
|
35095
|
-
"fill-none",
|
|
35096
|
-
"fill-pattern",
|
|
35097
|
-
"fill-semi",
|
|
35098
|
-
"fill-solid",
|
|
35099
|
-
"follow",
|
|
35100
|
-
"following",
|
|
35101
|
-
"font-draw",
|
|
35102
|
-
"font-mono",
|
|
35103
|
-
"font-sans",
|
|
35104
|
-
"font-serif",
|
|
35105
|
-
"geo-arrow-down",
|
|
35106
|
-
"geo-arrow-left",
|
|
35107
|
-
"geo-arrow-right",
|
|
35108
|
-
"geo-arrow-up",
|
|
35109
|
-
"geo-check-box",
|
|
35110
|
-
"geo-cloud",
|
|
35111
|
-
"geo-diamond",
|
|
35112
|
-
"geo-ellipse",
|
|
35113
|
-
"geo-heart",
|
|
35114
|
-
"geo-hexagon",
|
|
35115
|
-
"geo-octagon",
|
|
35116
|
-
"geo-oval",
|
|
35117
|
-
"geo-pentagon",
|
|
35118
|
-
"geo-rectangle",
|
|
35119
|
-
"geo-rhombus-2",
|
|
35120
|
-
"geo-rhombus",
|
|
35121
|
-
"geo-star",
|
|
35122
|
-
"geo-trapezoid",
|
|
35123
|
-
"geo-triangle",
|
|
35124
|
-
"geo-x-box",
|
|
35125
|
-
"github",
|
|
35126
|
-
"group",
|
|
35127
|
-
"heading",
|
|
35128
|
-
"help-circle",
|
|
35129
|
-
"highlight",
|
|
35130
|
-
"horizontal-align-end",
|
|
35131
|
-
"horizontal-align-middle",
|
|
35132
|
-
"horizontal-align-start",
|
|
35133
|
-
"info-circle",
|
|
35134
|
-
"italic",
|
|
35135
|
-
"leading",
|
|
35136
|
-
"link",
|
|
35137
|
-
"list",
|
|
35138
|
-
"lock",
|
|
35139
|
-
"manual",
|
|
35140
|
-
"menu",
|
|
35141
|
-
"minus",
|
|
35142
|
-
"mixed",
|
|
35143
|
-
"pack",
|
|
35144
|
-
"plus",
|
|
35145
|
-
"question-mark-circle",
|
|
35146
|
-
"question-mark",
|
|
35147
|
-
"redo",
|
|
35148
|
-
"reset-zoom",
|
|
35149
|
-
"rotate-ccw",
|
|
35150
|
-
"rotate-cw",
|
|
35151
|
-
"send-backward",
|
|
35152
|
-
"send-to-back",
|
|
35153
|
-
"share-1",
|
|
35154
|
-
"size-extra-large",
|
|
35155
|
-
"size-large",
|
|
35156
|
-
"size-medium",
|
|
35157
|
-
"size-small",
|
|
35158
|
-
"spline-cubic",
|
|
35159
|
-
"spline-line",
|
|
35160
|
-
"stack-horizontal",
|
|
35161
|
-
"stack-vertical",
|
|
35162
|
-
"status-offline",
|
|
35163
|
-
"stretch-horizontal",
|
|
35164
|
-
"stretch-vertical",
|
|
35165
|
-
"strike",
|
|
35166
|
-
"text-align-center",
|
|
35167
|
-
"text-align-left",
|
|
35168
|
-
"text-align-right",
|
|
35169
|
-
"toggle-off",
|
|
35170
|
-
"toggle-on",
|
|
35171
|
-
"tool-arrow",
|
|
35172
|
-
"tool-eraser",
|
|
35173
|
-
"tool-frame",
|
|
35174
|
-
"tool-hand",
|
|
35175
|
-
"tool-highlight",
|
|
35176
|
-
"tool-laser",
|
|
35177
|
-
"tool-line",
|
|
35178
|
-
"tool-media",
|
|
35179
|
-
"tool-note",
|
|
35180
|
-
"tool-pencil",
|
|
35181
|
-
"tool-pointer",
|
|
35182
|
-
"tool-screenshot",
|
|
35183
|
-
"tool-text",
|
|
35184
|
-
"trash",
|
|
35185
|
-
"twitter",
|
|
35186
|
-
"underline",
|
|
35187
|
-
"undo",
|
|
35188
|
-
"ungroup",
|
|
35189
|
-
"unlock",
|
|
35190
|
-
"vertical-align-end",
|
|
35191
|
-
"vertical-align-middle",
|
|
35192
|
-
"vertical-align-start",
|
|
35193
|
-
"warning-triangle",
|
|
35194
|
-
"zoom-in",
|
|
35195
|
-
"zoom-out"
|
|
35196
|
-
];
|
|
35197
|
-
|
|
35198
35020
|
// src/lib/ui/assetUrls.ts
|
|
35199
35021
|
var defaultUiAssetUrls = {
|
|
35200
35022
|
...defaultEditorAssetUrls,
|
|
35201
|
-
icons:
|
|
35202
|
-
iconTypes.map((name) => [name, `${getDefaultCdnBaseUrl()}/icons/icon/0_merged.svg#${name}`])
|
|
35203
|
-
),
|
|
35023
|
+
icons: {},
|
|
35204
35024
|
translations: {},
|
|
35205
|
-
embedIcons:
|
|
35206
|
-
DEFAULT_EMBED_DEFINITIONS.map((def) => [
|
|
35207
|
-
def.type,
|
|
35208
|
-
`${getDefaultCdnBaseUrl()}/embed-icons/${def.type}.png`
|
|
35209
|
-
])
|
|
35210
|
-
)
|
|
35025
|
+
embedIcons: {}
|
|
35211
35026
|
};
|
|
35212
35027
|
function setDefaultUiAssetUrls(urls) {
|
|
35213
35028
|
defaultUiAssetUrls = urls;
|
|
@@ -35548,6 +35363,7 @@ function Draw(props) {
|
|
|
35548
35363
|
[_imageMimeTypes, _videoMimeTypes]
|
|
35549
35364
|
);
|
|
35550
35365
|
const assets = useDefaultEditorAssetsWithOverrides(rest.assetUrls);
|
|
35366
|
+
const preloadDefaultFonts = hasExternalFontUrls(assets.fonts);
|
|
35551
35367
|
const embedShapeUtil = shapeUtilsWithDefaults.find((util) => util.type === "embed");
|
|
35552
35368
|
if (embedShapeUtil && embeds) {
|
|
35553
35369
|
EmbedShapeUtil.setEmbedDefinitions(embeds);
|
|
@@ -35582,6 +35398,7 @@ function Draw(props) {
|
|
|
35582
35398
|
maxAssetSize,
|
|
35583
35399
|
acceptedImageMimeTypes: _imageMimeTypes,
|
|
35584
35400
|
acceptedVideoMimeTypes: _videoMimeTypes,
|
|
35401
|
+
preloadDefaultFonts,
|
|
35585
35402
|
onMount
|
|
35586
35403
|
}
|
|
35587
35404
|
),
|
|
@@ -35598,6 +35415,7 @@ function InsideOfEditorAndUiContext({
|
|
|
35598
35415
|
maxAssetSize,
|
|
35599
35416
|
acceptedImageMimeTypes,
|
|
35600
35417
|
acceptedVideoMimeTypes,
|
|
35418
|
+
preloadDefaultFonts,
|
|
35601
35419
|
onMount
|
|
35602
35420
|
}) {
|
|
35603
35421
|
const editor = useEditor();
|
|
@@ -35607,13 +35425,15 @@ function InsideOfEditorAndUiContext({
|
|
|
35607
35425
|
useOnMount(() => {
|
|
35608
35426
|
const unsubs = [];
|
|
35609
35427
|
unsubs.push(registerDefaultSideEffects(editor));
|
|
35610
|
-
|
|
35611
|
-
|
|
35612
|
-
|
|
35613
|
-
for (const
|
|
35614
|
-
const
|
|
35615
|
-
|
|
35616
|
-
|
|
35428
|
+
if (preloadDefaultFonts) {
|
|
35429
|
+
editor.fonts.requestFonts(allDefaultFontFaces);
|
|
35430
|
+
const themes = editor.getThemes();
|
|
35431
|
+
for (const theme of Object.values(themes)) {
|
|
35432
|
+
for (const key of Object.keys(theme.fonts)) {
|
|
35433
|
+
const font = theme.fonts[key];
|
|
35434
|
+
if (font.faces?.length) {
|
|
35435
|
+
editor.fonts.requestFonts(font.faces);
|
|
35436
|
+
}
|
|
35617
35437
|
}
|
|
35618
35438
|
}
|
|
35619
35439
|
}
|
|
@@ -35930,6 +35750,172 @@ function CenteredTopPanelContainer({
|
|
|
35930
35750
|
});
|
|
35931
35751
|
return /* @__PURE__ */ jsx("div", { ref, className: "tlui-top-panel__container", children });
|
|
35932
35752
|
}
|
|
35753
|
+
|
|
35754
|
+
// src/lib/ui/icon-types.ts
|
|
35755
|
+
var iconTypes = [
|
|
35756
|
+
"align-bottom",
|
|
35757
|
+
"align-center-horizontal",
|
|
35758
|
+
"align-center-vertical",
|
|
35759
|
+
"align-left",
|
|
35760
|
+
"align-right",
|
|
35761
|
+
"align-top",
|
|
35762
|
+
"alt",
|
|
35763
|
+
"arrow-arc",
|
|
35764
|
+
"arrow-cycle",
|
|
35765
|
+
"arrow-elbow",
|
|
35766
|
+
"arrow-left",
|
|
35767
|
+
"arrowhead-arrow",
|
|
35768
|
+
"arrowhead-bar",
|
|
35769
|
+
"arrowhead-diamond",
|
|
35770
|
+
"arrowhead-dot",
|
|
35771
|
+
"arrowhead-none",
|
|
35772
|
+
"arrowhead-square",
|
|
35773
|
+
"arrowhead-triangle-inverted",
|
|
35774
|
+
"arrowhead-triangle",
|
|
35775
|
+
"blob",
|
|
35776
|
+
"bold",
|
|
35777
|
+
"bookmark",
|
|
35778
|
+
"bring-forward",
|
|
35779
|
+
"bring-to-front",
|
|
35780
|
+
"broken",
|
|
35781
|
+
"bulletList",
|
|
35782
|
+
"check-circle",
|
|
35783
|
+
"check",
|
|
35784
|
+
"chevron-down",
|
|
35785
|
+
"chevron-left",
|
|
35786
|
+
"chevron-right",
|
|
35787
|
+
"chevron-up",
|
|
35788
|
+
"chevrons-ne",
|
|
35789
|
+
"chevrons-sw",
|
|
35790
|
+
"clipboard-copied",
|
|
35791
|
+
"clipboard-copy",
|
|
35792
|
+
"code",
|
|
35793
|
+
"color",
|
|
35794
|
+
"comment",
|
|
35795
|
+
"corners",
|
|
35796
|
+
"crop",
|
|
35797
|
+
"cross-2",
|
|
35798
|
+
"cross-circle",
|
|
35799
|
+
"dash-dashed",
|
|
35800
|
+
"dash-dotted",
|
|
35801
|
+
"dash-draw",
|
|
35802
|
+
"dash-solid",
|
|
35803
|
+
"disconnected",
|
|
35804
|
+
"discord",
|
|
35805
|
+
"distribute-horizontal",
|
|
35806
|
+
"distribute-vertical",
|
|
35807
|
+
"dot",
|
|
35808
|
+
"dots-horizontal",
|
|
35809
|
+
"dots-vertical",
|
|
35810
|
+
"download",
|
|
35811
|
+
"drag-handle-dots",
|
|
35812
|
+
"duplicate",
|
|
35813
|
+
"edit",
|
|
35814
|
+
"external-link",
|
|
35815
|
+
"fill-fill",
|
|
35816
|
+
"fill-lined-fill",
|
|
35817
|
+
"fill-none",
|
|
35818
|
+
"fill-pattern",
|
|
35819
|
+
"fill-semi",
|
|
35820
|
+
"fill-solid",
|
|
35821
|
+
"follow",
|
|
35822
|
+
"following",
|
|
35823
|
+
"font-draw",
|
|
35824
|
+
"font-mono",
|
|
35825
|
+
"font-sans",
|
|
35826
|
+
"font-serif",
|
|
35827
|
+
"geo-arrow-down",
|
|
35828
|
+
"geo-arrow-left",
|
|
35829
|
+
"geo-arrow-right",
|
|
35830
|
+
"geo-arrow-up",
|
|
35831
|
+
"geo-check-box",
|
|
35832
|
+
"geo-cloud",
|
|
35833
|
+
"geo-diamond",
|
|
35834
|
+
"geo-ellipse",
|
|
35835
|
+
"geo-heart",
|
|
35836
|
+
"geo-hexagon",
|
|
35837
|
+
"geo-octagon",
|
|
35838
|
+
"geo-oval",
|
|
35839
|
+
"geo-pentagon",
|
|
35840
|
+
"geo-rectangle",
|
|
35841
|
+
"geo-rhombus-2",
|
|
35842
|
+
"geo-rhombus",
|
|
35843
|
+
"geo-star",
|
|
35844
|
+
"geo-trapezoid",
|
|
35845
|
+
"geo-triangle",
|
|
35846
|
+
"geo-x-box",
|
|
35847
|
+
"github",
|
|
35848
|
+
"group",
|
|
35849
|
+
"heading",
|
|
35850
|
+
"help-circle",
|
|
35851
|
+
"highlight",
|
|
35852
|
+
"horizontal-align-end",
|
|
35853
|
+
"horizontal-align-middle",
|
|
35854
|
+
"horizontal-align-start",
|
|
35855
|
+
"info-circle",
|
|
35856
|
+
"italic",
|
|
35857
|
+
"leading",
|
|
35858
|
+
"link",
|
|
35859
|
+
"list",
|
|
35860
|
+
"lock",
|
|
35861
|
+
"manual",
|
|
35862
|
+
"menu",
|
|
35863
|
+
"minus",
|
|
35864
|
+
"mixed",
|
|
35865
|
+
"pack",
|
|
35866
|
+
"plus",
|
|
35867
|
+
"question-mark-circle",
|
|
35868
|
+
"question-mark",
|
|
35869
|
+
"redo",
|
|
35870
|
+
"reset-zoom",
|
|
35871
|
+
"rotate-ccw",
|
|
35872
|
+
"rotate-cw",
|
|
35873
|
+
"send-backward",
|
|
35874
|
+
"send-to-back",
|
|
35875
|
+
"share-1",
|
|
35876
|
+
"size-extra-large",
|
|
35877
|
+
"size-large",
|
|
35878
|
+
"size-medium",
|
|
35879
|
+
"size-small",
|
|
35880
|
+
"spline-cubic",
|
|
35881
|
+
"spline-line",
|
|
35882
|
+
"stack-horizontal",
|
|
35883
|
+
"stack-vertical",
|
|
35884
|
+
"status-offline",
|
|
35885
|
+
"stretch-horizontal",
|
|
35886
|
+
"stretch-vertical",
|
|
35887
|
+
"strike",
|
|
35888
|
+
"text-align-center",
|
|
35889
|
+
"text-align-left",
|
|
35890
|
+
"text-align-right",
|
|
35891
|
+
"toggle-off",
|
|
35892
|
+
"toggle-on",
|
|
35893
|
+
"tool-arrow",
|
|
35894
|
+
"tool-eraser",
|
|
35895
|
+
"tool-frame",
|
|
35896
|
+
"tool-hand",
|
|
35897
|
+
"tool-highlight",
|
|
35898
|
+
"tool-laser",
|
|
35899
|
+
"tool-line",
|
|
35900
|
+
"tool-media",
|
|
35901
|
+
"tool-note",
|
|
35902
|
+
"tool-pencil",
|
|
35903
|
+
"tool-pointer",
|
|
35904
|
+
"tool-screenshot",
|
|
35905
|
+
"tool-text",
|
|
35906
|
+
"trash",
|
|
35907
|
+
"twitter",
|
|
35908
|
+
"underline",
|
|
35909
|
+
"undo",
|
|
35910
|
+
"ungroup",
|
|
35911
|
+
"unlock",
|
|
35912
|
+
"vertical-align-end",
|
|
35913
|
+
"vertical-align-middle",
|
|
35914
|
+
"vertical-align-start",
|
|
35915
|
+
"warning-triangle",
|
|
35916
|
+
"zoom-in",
|
|
35917
|
+
"zoom-out"
|
|
35918
|
+
];
|
|
35933
35919
|
async function preloadFont(id, font, targetDocument) {
|
|
35934
35920
|
const {
|
|
35935
35921
|
url,
|
|
@@ -36972,7 +36958,7 @@ async function extractAssets(editor, snapshot, msg, addToast) {
|
|
|
36972
36958
|
// src/index.ts
|
|
36973
36959
|
registerDrawLibraryVersion(
|
|
36974
36960
|
"@ibodr/draw",
|
|
36975
|
-
"0.1.
|
|
36961
|
+
"0.1.2",
|
|
36976
36962
|
"esm"
|
|
36977
36963
|
);
|
|
36978
36964
|
/*!
|