@hussmartinez/image-sdk 0.7.3 → 0.8.0
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/assets/image/job.worker.js +1 -1
- package/dist/assets/image/render.worker.js +1 -1
- package/dist/element.js +2 -2
- package/dist/index.js +1 -1
- package/dist/lazy/{inline-job-worker-B-NXVhUL.js → inline-job-worker-BSYw65Yh.js} +2 -2
- package/dist/lazy/{inline-job-worker-B-NXVhUL.js.map → inline-job-worker-BSYw65Yh.js.map} +1 -1
- package/dist/lazy/{inline-worker-DXE7yL4C.js → inline-worker-CNWqkatu.js} +2 -2
- package/dist/lazy/{inline-worker-DXE7yL4C.js.map → inline-worker-CNWqkatu.js.map} +1 -1
- package/dist/react.js +1 -1
- package/dist/shared/{core-BiKXMhuI.js → core-Dl1fQBA9.js} +4 -4
- package/dist/shared/{core-BiKXMhuI.js.map → core-Dl1fQBA9.js.map} +1 -1
- package/dist/shared/{editor-BLQCHS3B.js → editor-B5NuHohd.js} +6 -13
- package/dist/shared/{editor-BLQCHS3B.js.map → editor-B5NuHohd.js.map} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as dragHandle, At as createImageRenderer, B as outputSize, C as drawingBounds, Ct as MAX_SCENE_COORDINATE, D as aspectRatio, E as ASPECT_PRESETS, F as wholeCrop, Ft as createImageProcessor, I as compositionSize, It as createImageEngine, J as FORBIDDEN_IN_TEXT, Jt as isImageError, Kt as asImageError, L as compositionToSource, Lt as engineInternals, M as handleInSource, N as moveCrop, Nt as fittedView, O as compositionDeltaToSource, P as nudgeCropOnScreen, Pt as placement, R as cropRect, Rt as ANIMATION_LIMITS, T as simplifyStroke, Tt as MAX_STROKE_WIDTH, _ as layerToScene, _t as MAX_FRAME_DELAY, a as compositionRectToScene, at as MAX_METADATA_LENGTH, b as createImageKey, bt as MAX_LAYER_TEXT_LENGTH, ct as DEVELOP_ADJUSTMENTS, d as sceneRectToComposition, dt as LAYER_ALIGNMENTS, f as applyMatrix, ft as LAYER_FONTS, g as layerToOutput, i as newLayerBox, j as fitAspect, k as cropInComposition, kt as createPlan, lt as FILTER_PRESETS, m as invertMatrix, n as createImageSession, o as fitRedactionRegion, q as createImageReducer, r as keepsFields, st as longerThan, t as imageMessages, x as arrowBounds, y as sceneToOutput } from "./core-
|
|
1
|
+
import { A as dragHandle, At as createImageRenderer, B as outputSize, C as drawingBounds, Ct as MAX_SCENE_COORDINATE, D as aspectRatio, E as ASPECT_PRESETS, F as wholeCrop, Ft as createImageProcessor, I as compositionSize, It as createImageEngine, J as FORBIDDEN_IN_TEXT, Jt as isImageError, Kt as asImageError, L as compositionToSource, Lt as engineInternals, M as handleInSource, N as moveCrop, Nt as fittedView, O as compositionDeltaToSource, P as nudgeCropOnScreen, Pt as placement, R as cropRect, Rt as ANIMATION_LIMITS, T as simplifyStroke, Tt as MAX_STROKE_WIDTH, _ as layerToScene, _t as MAX_FRAME_DELAY, a as compositionRectToScene, at as MAX_METADATA_LENGTH, b as createImageKey, bt as MAX_LAYER_TEXT_LENGTH, ct as DEVELOP_ADJUSTMENTS, d as sceneRectToComposition, dt as LAYER_ALIGNMENTS, f as applyMatrix, ft as LAYER_FONTS, g as layerToOutput, i as newLayerBox, j as fitAspect, k as cropInComposition, kt as createPlan, lt as FILTER_PRESETS, m as invertMatrix, n as createImageSession, o as fitRedactionRegion, q as createImageReducer, r as keepsFields, st as longerThan, t as imageMessages, x as arrowBounds, y as sceneToOutput } from "./core-Dl1fQBA9.js";
|
|
2
2
|
import { applyCommands, createMessages, createShortcutRegistry, createStore, createToolRegistry, defineMessages, defineTool, plural } from "@hussmartinez/sdk-core";
|
|
3
3
|
import { AddIcon, AnnouncerProvider, ArrowIcon, Button, CloseIcon, ColorField, CropIcon, DeleteIcon, Dialog, DownloadIcon, DuplicateIcon, EllipseIcon, Field, FileDropZone, FitIcon, FlipHorizontalIcon, FlipVerticalIcon, HiddenIcon, IconButton, LayersIcon, MoveDownIcon, MoveUpIcon, NumberField, OpenIcon, PageGridIcon, PauseIcon, PenIcon, PlayIcon, ProgressBar, RectangleIcon, RedactIcon, RedoIcon, ReorderableList, ReorderableListItem, RotateLeftIcon, RotateRightIcon, SearchIcon, SegmentedControl, Slider, Spinner, TextArea, TextField, TextIcon, ToggleButton, Toolbar, ToolbarGroup, Tooltip, UiMessagesProvider, UndoIcon, VisibleIcon, ZoomInIcon, ZoomOutIcon, useAnnounce, usePlatform } from "@hussmartinez/ui/react";
|
|
4
4
|
import { createContext, forwardRef, useContext, useEffect, useId, useImperativeHandle, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -4482,18 +4482,11 @@ function ImageRedactPanel(props) {
|
|
|
4482
4482
|
function sliderGesture(gesture, command) {
|
|
4483
4483
|
return {
|
|
4484
4484
|
onValueChange: (value) => gesture.preview([command(value)]),
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
if (event.key !== "Escape" && gesture.active()) gesture.commitSoon();
|
|
4485
|
+
onValueCommit: (value) => {
|
|
4486
|
+
gesture.preview([command(value)]);
|
|
4487
|
+
gesture.commit();
|
|
4489
4488
|
},
|
|
4490
|
-
|
|
4491
|
-
if (event.key === "Escape" && gesture.active()) {
|
|
4492
|
-
event.preventDefault();
|
|
4493
|
-
event.stopPropagation();
|
|
4494
|
-
gesture.cancel();
|
|
4495
|
-
}
|
|
4496
|
-
}
|
|
4489
|
+
onValueCancel: (_value) => gesture.cancel()
|
|
4497
4490
|
};
|
|
4498
4491
|
}
|
|
4499
4492
|
// src/react/panels/AdjustPanel.tsx
|
|
@@ -5131,4 +5124,4 @@ var ImageEditor = forwardRef(function ImageEditor(props, ref) {
|
|
|
5131
5124
|
});
|
|
5132
5125
|
export { imageTools as S, useImageDocument as _, ImageFilterPanel as a, useImageSession as b, ImageLayersPanel as c, imageEditorMessages as d, ImageExportDialog as f, ImageCropPanel as g, ImageDrawPanel as h, ImageInfoPanel as i, ImageFramesPanel as l, ImageStage as m, imageIcons as n, ImageAdjustPanel as o, ExportListenerContext as p, ImageToolbar as r, ImageRedactPanel as s, ImageEditor as t, ImageEditorProvider as u, useImageEditorState as v, useImageView as x, useImageMessages as y };
|
|
5133
5126
|
|
|
5134
|
-
//# sourceMappingURL=editor-
|
|
5127
|
+
//# sourceMappingURL=editor-B5NuHohd.js.map
|