@turnix-co/konva-editor 3.0.47 → 3.0.48
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 +33 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -437,6 +437,11 @@ type CanvasState = {
|
|
|
437
437
|
presentationMetadata: PresentationMetadata;
|
|
438
438
|
metadataLoaded: boolean;
|
|
439
439
|
viewerMode: boolean;
|
|
440
|
+
editingOverlayPosition: {
|
|
441
|
+
top: number;
|
|
442
|
+
left: number;
|
|
443
|
+
scale: number;
|
|
444
|
+
} | null;
|
|
440
445
|
};
|
|
441
446
|
declare const createEmptySlide: (name?: string) => Slide;
|
|
442
447
|
declare const addSlide: _reduxjs_toolkit.ActionCreatorWithoutPayload<"canvas/addSlide">;
|
|
@@ -827,6 +832,8 @@ type ScreenRecorderProps = {
|
|
|
827
832
|
};
|
|
828
833
|
declare const ScreenRecorder: React$1.FC<ScreenRecorderProps>;
|
|
829
834
|
|
|
835
|
+
declare const MobilePrevPanel: () => react_jsx_runtime.JSX.Element;
|
|
836
|
+
|
|
830
837
|
type ToolbarState = {
|
|
831
838
|
selectedTool: string;
|
|
832
839
|
penColor: string;
|
|
@@ -856,6 +863,11 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
|
|
|
856
863
|
presentationMetadata: PresentationMetadata;
|
|
857
864
|
metadataLoaded: boolean;
|
|
858
865
|
viewerMode: boolean;
|
|
866
|
+
editingOverlayPosition: {
|
|
867
|
+
top: number;
|
|
868
|
+
left: number;
|
|
869
|
+
scale: number;
|
|
870
|
+
} | null;
|
|
859
871
|
};
|
|
860
872
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
861
873
|
dispatch: redux_thunk.ThunkDispatch<{
|
|
@@ -872,6 +884,11 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
|
|
|
872
884
|
presentationMetadata: PresentationMetadata;
|
|
873
885
|
metadataLoaded: boolean;
|
|
874
886
|
viewerMode: boolean;
|
|
887
|
+
editingOverlayPosition: {
|
|
888
|
+
top: number;
|
|
889
|
+
left: number;
|
|
890
|
+
scale: number;
|
|
891
|
+
} | null;
|
|
875
892
|
};
|
|
876
893
|
}, undefined, redux.UnknownAction>;
|
|
877
894
|
}>, redux.StoreEnhancer]>>;
|
|
@@ -889,6 +906,11 @@ declare const createViewerStore: () => _reduxjs_toolkit.EnhancedStore<{
|
|
|
889
906
|
presentationMetadata: PresentationMetadata;
|
|
890
907
|
metadataLoaded: boolean;
|
|
891
908
|
viewerMode: boolean;
|
|
909
|
+
editingOverlayPosition: {
|
|
910
|
+
top: number;
|
|
911
|
+
left: number;
|
|
912
|
+
scale: number;
|
|
913
|
+
} | null;
|
|
892
914
|
};
|
|
893
915
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
894
916
|
dispatch: redux_thunk.ThunkDispatch<{
|
|
@@ -905,6 +927,11 @@ declare const createViewerStore: () => _reduxjs_toolkit.EnhancedStore<{
|
|
|
905
927
|
presentationMetadata: PresentationMetadata;
|
|
906
928
|
metadataLoaded: boolean;
|
|
907
929
|
viewerMode: boolean;
|
|
930
|
+
editingOverlayPosition: {
|
|
931
|
+
top: number;
|
|
932
|
+
left: number;
|
|
933
|
+
scale: number;
|
|
934
|
+
} | null;
|
|
908
935
|
};
|
|
909
936
|
}, undefined, redux.UnknownAction>;
|
|
910
937
|
}>, redux.StoreEnhancer]>>;
|
|
@@ -1050,6 +1077,11 @@ declare const useDispatch: () => redux_thunk.ThunkDispatch<{
|
|
|
1050
1077
|
presentationMetadata: PresentationMetadata;
|
|
1051
1078
|
metadataLoaded: boolean;
|
|
1052
1079
|
viewerMode: boolean;
|
|
1080
|
+
editingOverlayPosition: {
|
|
1081
|
+
top: number;
|
|
1082
|
+
left: number;
|
|
1083
|
+
scale: number;
|
|
1084
|
+
} | null;
|
|
1053
1085
|
};
|
|
1054
1086
|
}, undefined, redux.UnknownAction> & redux.Dispatch<redux.UnknownAction>;
|
|
1055
1087
|
declare const useSelector: <T>(selector: (state: RootState) => T) => T;
|
|
@@ -1108,4 +1140,4 @@ declare const loadCurrentSlideId: () => string | null;
|
|
|
1108
1140
|
declare const savePresentationMetadata: (metadata: PresentationMetadata) => Promise<void>;
|
|
1109
1141
|
declare const loadPresentationMetadata: () => Promise<PresentationMetadata | null>;
|
|
1110
1142
|
|
|
1111
|
-
export { type ActionType, type ActivityType, type AppDispatch, BASIC_EDITOR_TOOLBAR_CONFIG, BottomToolbar, type BottomToolbarProps, Canvas, type CanvasProps, type ContextMenuConfig, DEFAULT_CONTEXT_MENU_CONFIG, DEFAULT_TOOLBAR_CONFIG, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, type InitialSlidesConfig, type Line$1 as Line, type LongAnswer, type MediaType, type MultipleChoice, type PhotoFrameElement, type PreparedImageElement, type PreparedPhotoFrameElement, type PreparedSlide, type PreparedVideoElement, type PresentationMetadata, PublishButton, type PublishButtonProps, type PublishPayload, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShapeType, type ShortAnswer, type Slide, SlideNavigation, type SlideNavigationProps, type SlidesPayload, type TextElement, type ToolType, Toolbar, type ToolbarActionsConfig, type ToolbarConfig, type ToolbarProps, type ToolbarToolsConfig, TopNavBar, type TopNavBarProps, type TrueFalse, VIEWER_TOOLBAR_CONFIG, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, arrayBufferToBase64, bringToFront, clearCanvas, clearImageAnnotations, clearLocalData, clearPhotoFrameAnnotations, createEmptySlide, createViewerStore, deleteFillInTheBlanks, deleteFlashcard, deleteImage, deleteLineById, deleteLongAnswer, deleteMultipleChoice, deletePhotoFrame, deleteShape, deleteShortAnswer, deleteSlide, deleteText, deleteTrueFalse, deleteVideo, duplicateFillInTheBlanks, duplicateFlashcard, duplicateImage, duplicateLine, duplicateLongAnswer, duplicateMultipleChoice, duplicatePhotoFrame, duplicateShape, duplicateShortAnswer, duplicateSlide, duplicateText, duplicateTrueFalse, duplicateVideo, editFlashcard, editMultipleChoice, exportSlideAsBlob, exportSlideAsImage, finalizeDrawing, getCompressionStats, getSlideDataURL, loadCurrentSlideId, loadFromIndexedDB, loadPresentationMetadata$1 as loadPresentationMetadata, loadPresentationMetadata as loadPresentationMetadataFromDB, loadSlides, mergeToolbarConfig, nextFlashcard, prepareFormData, prepareSlidesForPublishing, previousFlashcard, redo, removeLine, reorderSlides, savePresentationMetadata, saveToHistory, selectAllSlides, selectAllSlidesIncludingInactive, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectMetadataLoaded, selectPresentationMetadata, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setMetadataLoaded, setPenColor, setPresentationDescription, setPresentationTitle, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, setViewerMode, simplifyFlatPoints, simplifyLine, simplifyLines, store, toggleImageDrawingMode, toggleLock, togglePhotoFrameDrawingMode, toggleSketchMode, toggleVideoPlaying, undo, updateElementOrder, updateFillInTheBlanks, updateFlashcard, updateImage, updateImageAnnotation, updateLastLine, updateLinePosition, updateLineTransform, updateLongAnswer, updateMultipleChoice, updatePhotoFrame, updatePhotoFrameAnnotation, updateShape, updateShortAnswer, updateSlideThumbnail, updateText, updateTrueFalse, updateVideo, useDispatch, useInitialSlides, useModalPortal, useSelector, useSlidesPersistence };
|
|
1143
|
+
export { type ActionType, type ActivityType, type AppDispatch, BASIC_EDITOR_TOOLBAR_CONFIG, BottomToolbar, type BottomToolbarProps, Canvas, type CanvasProps, type ContextMenuConfig, DEFAULT_CONTEXT_MENU_CONFIG, DEFAULT_TOOLBAR_CONFIG, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, type InitialSlidesConfig, type Line$1 as Line, type LongAnswer, type MediaType, MobilePrevPanel, type MultipleChoice, type PhotoFrameElement, type PreparedImageElement, type PreparedPhotoFrameElement, type PreparedSlide, type PreparedVideoElement, type PresentationMetadata, PublishButton, type PublishButtonProps, type PublishPayload, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShapeType, type ShortAnswer, type Slide, SlideNavigation, type SlideNavigationProps, type SlidesPayload, type TextElement, type ToolType, Toolbar, type ToolbarActionsConfig, type ToolbarConfig, type ToolbarProps, type ToolbarToolsConfig, TopNavBar, type TopNavBarProps, type TrueFalse, VIEWER_TOOLBAR_CONFIG, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, arrayBufferToBase64, bringToFront, clearCanvas, clearImageAnnotations, clearLocalData, clearPhotoFrameAnnotations, createEmptySlide, createViewerStore, deleteFillInTheBlanks, deleteFlashcard, deleteImage, deleteLineById, deleteLongAnswer, deleteMultipleChoice, deletePhotoFrame, deleteShape, deleteShortAnswer, deleteSlide, deleteText, deleteTrueFalse, deleteVideo, duplicateFillInTheBlanks, duplicateFlashcard, duplicateImage, duplicateLine, duplicateLongAnswer, duplicateMultipleChoice, duplicatePhotoFrame, duplicateShape, duplicateShortAnswer, duplicateSlide, duplicateText, duplicateTrueFalse, duplicateVideo, editFlashcard, editMultipleChoice, exportSlideAsBlob, exportSlideAsImage, finalizeDrawing, getCompressionStats, getSlideDataURL, loadCurrentSlideId, loadFromIndexedDB, loadPresentationMetadata$1 as loadPresentationMetadata, loadPresentationMetadata as loadPresentationMetadataFromDB, loadSlides, mergeToolbarConfig, nextFlashcard, prepareFormData, prepareSlidesForPublishing, previousFlashcard, redo, removeLine, reorderSlides, savePresentationMetadata, saveToHistory, selectAllSlides, selectAllSlidesIncludingInactive, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectMetadataLoaded, selectPresentationMetadata, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setMetadataLoaded, setPenColor, setPresentationDescription, setPresentationTitle, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, setViewerMode, simplifyFlatPoints, simplifyLine, simplifyLines, store, toggleImageDrawingMode, toggleLock, togglePhotoFrameDrawingMode, toggleSketchMode, toggleVideoPlaying, undo, updateElementOrder, updateFillInTheBlanks, updateFlashcard, updateImage, updateImageAnnotation, updateLastLine, updateLinePosition, updateLineTransform, updateLongAnswer, updateMultipleChoice, updatePhotoFrame, updatePhotoFrameAnnotation, updateShape, updateShortAnswer, updateSlideThumbnail, updateText, updateTrueFalse, updateVideo, useDispatch, useInitialSlides, useModalPortal, useSelector, useSlidesPersistence };
|