@ibodr/draw 0.2.15 → 0.2.17

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.d.ts CHANGED
@@ -3089,7 +3089,6 @@ declare class ImageShapeUtil extends BaseBoxShapeUtil<DrImageShape> {
3089
3089
  stroke: null;
3090
3090
  strokeWidth: number;
3091
3091
  unmountWhenCulled: boolean;
3092
- snapshotBelowPx: number;
3093
3092
  };
3094
3093
  getDefaultProps(): DrImageShape['props'];
3095
3094
  createShapeForAsset(asset: DrAsset, position: VecModel): DrShapePartial | null;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { objectMapValues, WeakCache, useMaybeEditor, uniqueId, useValue, assert, tlenv, track, useEditor, useEditorComponents, useContainer, preventDefault, usePassThroughWheelEvents, debugFlags, PageRecordType, setPointerCapture, releasePointerCapture, usePresence, USER_COLORS, tltime, modulate, isEqual, approximately, Box, debounce, EditorAtom, useReactor, unsafe__withoutCapture, isEqualAllowingForFloatingPointErrors, createComputedCache as createComputedCache$1, useUniqueSafeId, useEvent, resolveLineHeightPx, toRichText, Vec, getChangedKeys, useSharedSafeId, useIsEditing, toDomPrecision, LruCache, HTMLContainer, MediaHelpers, Image, getGlobalDocument, defaultUserPreferences, useShallowArrayIdentity, mergeArraysAndReplaceDefaults, useDrStore, Editor as Editor$1, T, registerDrawLibraryVersion, getOwnProperty, atom, tlenvReactive, warnOnce, safeParseUrl, useGlobalMenuIsOpen, getFromLocalStorage, setInLocalStorage, getIndexAbove, getIndexBelow, getIndexBetween, exhaustiveSwitchError, getOwnerWindow, DefaultColorStyle, getColorValue, tlmenus, SharedStyleMap, DefaultDashStyle, DefaultFillStyle, DefaultSizeStyle, kickoutOccludedShapes, useAtom, react, lerp, isSafeFloat, Mat, isAccelKey, openWindow, Polyline2d, Arc2d, Edge2d, useSvgExportContext, useColorMode, getVerticesCountForArcLength, Group2d, assertExists, clamp, rng, canonicalizeRotation, getPolygonVertices, useDelaySvgExport, noop, getGlobalWindow, useShallowObjectIdentity, GeoShapeGeoStyle, ShapeUtil, textShapeProps, textShapeMigrations, Rectangle2d, getFontsFromRichText, resizeScaled, BaseBoxShapeUtil, bookmarkShapeProps, bookmarkShapeMigrations, drawShapeProps, drawShapeMigrations, Circle2d, Polygon2d, SVGContainer, last, geoShapeProps, geoShapeMigrations, EMPTY_ARRAY, noteShapeProps, noteShapeMigrations, lineShapeProps, lineShapeMigrations, getIndices, sortByIndex, mapObjectMapValues, maybeSnapToGrid, ZERO_INDEX_KEY, BaseFrameLikeShapeUtil, frameShapeProps, frameShapeMigrations, compact, arrowShapeProps, arrowShapeMigrations, invLerp, structuredClone, highlightShapeProps, highlightShapeMigrations, embedShapeProps, embedShapeMigrations, resizeBox, imageShapeProps, imageShapeMigrations, LOD_SNAPSHOT_SCREEN_PX, createShapeId, Ellipse2d, videoShapeProps, videoShapeMigrations, BindingUtil, arrowBindingProps, arrowBindingMigrations, 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, getFirstCharacter, usePeerIds, objectMapEntries, getIndicesBetween, AssetRecordType, getHashForString, b64Vecs, computed, objectMapKeys, intersectLineSegmentCircle, EASINGS, fetch, FileHelpers, isFontEntry, PI2, hardResetEditor, sanitizeId, Result, transact, isShapeId, richTextValidator, isDefined, featureFlags, useQuickReactor, objectMapFromEntries, uniq, createBindingId, getHashForBuffer, bind, getPointOnCircle, AssetUtil, bookmarkAssetProps, bookmarkAssetMigrations, clampToBrowserMaxCanvasSize, imageAssetProps, imageAssetMigrations, DEFAULT_SUPPORTED_IMAGE_TYPES, videoAssetProps, videoAssetMigrations, DEFAULT_SUPPORT_VIDEO_TYPES, OverlayUtil, getOverlayDisplayValues, isCursorInViewport, getSvgPathFromPoints, strokeShapeIndicators, SIDES, rangeIntersection, StateNode, BaseBoxShapeTool, DrawEditor, useOnMount, createDrStore, MigrationFailureReason, DIM_2D, toFixed, snapAngle, rotateSelectionHandle, areAnglesCompatible, getRotationSnapshot, applyRotationToSnapshotShapes, shortAngleDist, degreesToRadians, isPageId, polygonsIntersect, LoadingScreen as LoadingScreen$1, SIN, throttle } from '@ibodr/editor';
1
+ import { objectMapValues, WeakCache, useMaybeEditor, uniqueId, useValue, assert, tlenv, track, useEditor, useEditorComponents, useContainer, preventDefault, usePassThroughWheelEvents, debugFlags, PageRecordType, setPointerCapture, releasePointerCapture, usePresence, USER_COLORS, tltime, modulate, isEqual, approximately, Box, debounce, EditorAtom, useReactor, unsafe__withoutCapture, isEqualAllowingForFloatingPointErrors, createComputedCache as createComputedCache$1, useUniqueSafeId, useEvent, resolveLineHeightPx, toRichText, Vec, getChangedKeys, useSharedSafeId, useIsEditing, toDomPrecision, LruCache, HTMLContainer, MediaHelpers, Image, getGlobalDocument, defaultUserPreferences, useShallowArrayIdentity, mergeArraysAndReplaceDefaults, useDrStore, Editor as Editor$1, T, registerDrawLibraryVersion, getOwnProperty, atom, tlenvReactive, warnOnce, safeParseUrl, useGlobalMenuIsOpen, getFromLocalStorage, setInLocalStorage, getIndexAbove, getIndexBelow, getIndexBetween, exhaustiveSwitchError, getOwnerWindow, DefaultColorStyle, getColorValue, tlmenus, SharedStyleMap, DefaultDashStyle, DefaultFillStyle, DefaultSizeStyle, kickoutOccludedShapes, useAtom, react, lerp, isSafeFloat, Mat, isAccelKey, openWindow, Polyline2d, Arc2d, Edge2d, useSvgExportContext, useColorMode, getVerticesCountForArcLength, Group2d, assertExists, clamp, rng, canonicalizeRotation, getPolygonVertices, useDelaySvgExport, noop, getGlobalWindow, useShallowObjectIdentity, GeoShapeGeoStyle, ShapeUtil, textShapeProps, textShapeMigrations, Rectangle2d, getFontsFromRichText, resizeScaled, BaseBoxShapeUtil, bookmarkShapeProps, bookmarkShapeMigrations, drawShapeProps, drawShapeMigrations, Circle2d, Polygon2d, SVGContainer, last, geoShapeProps, geoShapeMigrations, EMPTY_ARRAY, noteShapeProps, noteShapeMigrations, lineShapeProps, lineShapeMigrations, getIndices, sortByIndex, mapObjectMapValues, maybeSnapToGrid, ZERO_INDEX_KEY, BaseFrameLikeShapeUtil, frameShapeProps, frameShapeMigrations, compact, arrowShapeProps, arrowShapeMigrations, invLerp, structuredClone, highlightShapeProps, highlightShapeMigrations, embedShapeProps, embedShapeMigrations, resizeBox, imageShapeProps, imageShapeMigrations, createShapeId, Ellipse2d, videoShapeProps, videoShapeMigrations, BindingUtil, arrowBindingProps, arrowBindingMigrations, 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, getFirstCharacter, usePeerIds, objectMapEntries, getIndicesBetween, AssetRecordType, getHashForString, b64Vecs, computed, objectMapKeys, intersectLineSegmentCircle, EASINGS, fetch, FileHelpers, isFontEntry, PI2, hardResetEditor, sanitizeId, Result, transact, isShapeId, richTextValidator, isDefined, featureFlags, useQuickReactor, objectMapFromEntries, uniq, createBindingId, getHashForBuffer, bind, getPointOnCircle, AssetUtil, bookmarkAssetProps, bookmarkAssetMigrations, clampToBrowserMaxCanvasSize, imageAssetProps, imageAssetMigrations, DEFAULT_SUPPORTED_IMAGE_TYPES, videoAssetProps, videoAssetMigrations, DEFAULT_SUPPORT_VIDEO_TYPES, OverlayUtil, getOverlayDisplayValues, isCursorInViewport, getSvgPathFromPoints, strokeShapeIndicators, SIDES, rangeIntersection, StateNode, BaseBoxShapeTool, DrawEditor, useOnMount, createDrStore, MigrationFailureReason, DIM_2D, toFixed, snapAngle, rotateSelectionHandle, areAnglesCompatible, getRotationSnapshot, applyRotationToSnapshotShapes, shortAngleDist, degreesToRadians, isPageId, polygonsIntersect, 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';
@@ -31278,13 +31278,7 @@ var ImageShapeUtil = class extends BaseBoxShapeUtil {
31278
31278
  return true;
31279
31279
  }
31280
31280
  getLodStyle(_shape) {
31281
- return {
31282
- fill: null,
31283
- stroke: null,
31284
- strokeWidth: 0,
31285
- unmountWhenCulled: true,
31286
- snapshotBelowPx: LOD_SNAPSHOT_SCREEN_PX
31287
- };
31281
+ return { fill: null, stroke: null, strokeWidth: 0, unmountWhenCulled: true };
31288
31282
  }
31289
31283
  getDefaultProps() {
31290
31284
  return {
@@ -40253,7 +40247,7 @@ init_sanitizeSvg();
40253
40247
  // src/index.ts
40254
40248
  registerDrawLibraryVersion(
40255
40249
  "@ibodr/draw",
40256
- "0.2.15",
40250
+ "0.2.17",
40257
40251
  "esm"
40258
40252
  );
40259
40253
  /*!