@edifice.io/react 2.0.0-develop-rc.4 → 2.0.0-develop-rc.10
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/README.md +17 -88
- package/dist/audience.js +15 -14
- package/dist/audience.js.map +1 -0
- package/dist/components/ActionBar/ActionBar.js +8 -7
- package/dist/components/ActionBar/ActionBar.js.map +1 -0
- package/dist/components/Alert/Alert.js +62 -61
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/AppHeader/AppHeader.js +19 -18
- package/dist/components/AppHeader/AppHeader.js.map +1 -0
- package/dist/components/AppIcon/AppIcon.d.ts +1 -1
- package/dist/components/AppIcon/AppIcon.js +45 -44
- package/dist/components/AppIcon/AppIcon.js.map +1 -0
- package/dist/components/Attachment/Attachment.js +14 -13
- package/dist/components/Attachment/Attachment.js.map +1 -0
- package/dist/components/Avatar/Avatar.js +28 -27
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Badge/Badge.js +21 -20
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +24 -23
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +12 -11
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js +11 -10
- package/dist/components/Breadcrumb/BreadcrumbList.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbNav.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbNav.js +16 -15
- package/dist/components/Breadcrumb/BreadcrumbNav.js.map +1 -0
- package/dist/components/Button/Button.js +33 -32
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/IconButton.js +16 -15
- package/dist/components/Button/IconButton.js.map +1 -0
- package/dist/components/Button/SearchButton.js +16 -15
- package/dist/components/Button/SearchButton.js.map +1 -0
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +48 -47
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/CardBody.js +14 -13
- package/dist/components/Card/CardBody.js.map +1 -0
- package/dist/components/Card/CardContext.d.ts +1 -1
- package/dist/components/Card/CardContext.js +8 -7
- package/dist/components/Card/CardContext.js.map +1 -0
- package/dist/components/Card/CardFooter.js +6 -5
- package/dist/components/Card/CardFooter.js.map +1 -0
- package/dist/components/Card/CardHeader.js +15 -14
- package/dist/components/Card/CardHeader.js.map +1 -0
- package/dist/components/Card/CardImage.js +14 -13
- package/dist/components/Card/CardImage.js.map +1 -0
- package/dist/components/Card/CardText.js +9 -8
- package/dist/components/Card/CardText.js.map +1 -0
- package/dist/components/Card/CardTitle.js +9 -8
- package/dist/components/Card/CardTitle.js.map +1 -0
- package/dist/components/Card/CardUser.js +9 -8
- package/dist/components/Card/CardUser.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +31 -30
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/ColorPicker/ColorPalette.js +5 -4
- package/dist/components/ColorPicker/ColorPalette.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +29 -28
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker/ColorPickerItem.js +12 -11
- package/dist/components/ColorPicker/ColorPickerItem.js.map +1 -0
- package/dist/components/Combobox/Combobox.js +36 -35
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/ComboboxTrigger.js +22 -21
- package/dist/components/Combobox/ComboboxTrigger.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +56 -55
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/DropdownCheckboxItem.js +27 -26
- package/dist/components/Dropdown/DropdownCheckboxItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownContext.js +8 -7
- package/dist/components/Dropdown/DropdownContext.js.map +1 -0
- package/dist/components/Dropdown/DropdownItem.js +28 -27
- package/dist/components/Dropdown/DropdownItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownMenu.js +22 -21
- package/dist/components/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/components/Dropdown/DropdownMenuGroup.js +10 -9
- package/dist/components/Dropdown/DropdownMenuGroup.js.map +1 -0
- package/dist/components/Dropdown/DropdownRadioItem.js +27 -26
- package/dist/components/Dropdown/DropdownRadioItem.js.map +1 -0
- package/dist/components/Dropdown/DropdownSeparator.js +4 -3
- package/dist/components/Dropdown/DropdownSeparator.js.map +1 -0
- package/dist/components/Dropdown/DropdownTrigger.js +29 -28
- package/dist/components/Dropdown/DropdownTrigger.js.map +1 -0
- package/dist/components/Dropzone/Dropzone.js +48 -47
- package/dist/components/Dropzone/Dropzone.js.map +1 -0
- package/dist/components/Dropzone/DropzoneContext.js +9 -8
- package/dist/components/Dropzone/DropzoneContext.js.map +1 -0
- package/dist/components/Dropzone/DropzoneDrag.js +8 -7
- package/dist/components/Dropzone/DropzoneDrag.js.map +1 -0
- package/dist/components/Dropzone/DropzoneFile.js +26 -25
- package/dist/components/Dropzone/DropzoneFile.js.map +1 -0
- package/dist/components/Dropzone/DropzoneImport.js +21 -20
- package/dist/components/Dropzone/DropzoneImport.js.map +1 -0
- package/dist/components/EmptyScreen/EmptyScreen.js +17 -16
- package/dist/components/EmptyScreen/EmptyScreen.js.map +1 -0
- package/dist/components/FileCard/FileCard.d.ts +1 -1
- package/dist/components/FileCard/FileCard.js +38 -37
- package/dist/components/FileCard/FileCard.js.map +1 -0
- package/dist/components/FileCard/FileIcon.d.ts +1 -1
- package/dist/components/FileCard/FileIcon.js +12 -11
- package/dist/components/FileCard/FileIcon.js.map +1 -0
- package/dist/components/Form/FormContext.js +8 -7
- package/dist/components/Form/FormContext.js.map +1 -0
- package/dist/components/Form/FormControl.js +31 -30
- package/dist/components/Form/FormControl.js.map +1 -0
- package/dist/components/Form/FormText.js +13 -12
- package/dist/components/Form/FormText.js.map +1 -0
- package/dist/components/Grid/Grid.js +28 -27
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Heading/Heading.js +15 -14
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/Icon/Icon.js +9 -8
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Image/Image.js +40 -39
- package/dist/components/Image/Image.js.map +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -1
- package/dist/components/ImagePicker/ImagePicker.js +52 -51
- package/dist/components/ImagePicker/ImagePicker.js.map +1 -0
- package/dist/components/Input/Input.js +29 -28
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Label/Label.js +31 -30
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Loading/Loading.js +24 -23
- package/dist/components/Loading/Loading.js.map +1 -0
- package/dist/components/LoadingScreen/LoadingScreen.js +21 -20
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -0
- package/dist/components/Logo/Logo.js +13 -12
- package/dist/components/Logo/Logo.js.map +1 -0
- package/dist/components/Menu/Menu.js +40 -39
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/MenuButton.js +18 -17
- package/dist/components/Menu/MenuButton.js.map +1 -0
- package/dist/components/Menu/MenuContext.js +9 -8
- package/dist/components/Menu/MenuContext.js.map +1 -0
- package/dist/components/Menu/MenuItem.js +15 -14
- package/dist/components/Menu/MenuItem.js.map +1 -0
- package/dist/components/Modal/Modal.js +50 -49
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalBody.js +12 -11
- package/dist/components/Modal/ModalBody.js.map +1 -0
- package/dist/components/Modal/ModalContext.js +9 -8
- package/dist/components/Modal/ModalContext.js.map +1 -0
- package/dist/components/Modal/ModalFooter.js +4 -3
- package/dist/components/Modal/ModalFooter.js.map +1 -0
- package/dist/components/Modal/ModalHeader.js +23 -22
- package/dist/components/Modal/ModalHeader.js.map +1 -0
- package/dist/components/Modal/ModalSubtitle.js +4 -3
- package/dist/components/Modal/ModalSubtitle.js.map +1 -0
- package/dist/components/Popover/Popover.js +34 -33
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Radio/Radio.js +27 -26
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/SearchBar/SearchBar.js +30 -29
- package/dist/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/components/Select/Select.js +32 -31
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/SelectTrigger.js +5 -4
- package/dist/components/Select/SelectTrigger.js.map +1 -0
- package/dist/components/Table/TableExplorer.js +8 -7
- package/dist/components/Table/TableExplorer.js.map +1 -0
- package/dist/components/Tabs/Tabs.js +59 -58
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/TabsContext.js +9 -8
- package/dist/components/Tabs/TabsContext.js.map +1 -0
- package/dist/components/Tabs/TabsItem.js +21 -20
- package/dist/components/Tabs/TabsItem.js.map +1 -0
- package/dist/components/Tabs/TabsList.js +19 -18
- package/dist/components/Tabs/TabsList.js.map +1 -0
- package/dist/components/Tabs/TabsPanel.js +10 -9
- package/dist/components/Tabs/TabsPanel.js.map +1 -0
- package/dist/components/TextArea/TextArea.js +32 -31
- package/dist/components/TextArea/TextArea.js.map +1 -0
- package/dist/components/TextArea/TextareaCounter.js +7 -6
- package/dist/components/TextArea/TextareaCounter.js.map +1 -0
- package/dist/components/Toolbar/Toolbar.js +61 -60
- package/dist/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +29 -28
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/TreeView/TreeItem.js +47 -46
- package/dist/components/TreeView/TreeItem.js.map +1 -0
- package/dist/components/TreeView/TreeView.js +34 -33
- package/dist/components/TreeView/TreeView.js.map +1 -0
- package/dist/components/TreeView/hooks/useTreeItemEvents.js +19 -18
- package/dist/components/TreeView/hooks/useTreeItemEvents.js.map +1 -0
- package/dist/components/UploadCard/UploadCard.js +53 -52
- package/dist/components/UploadCard/UploadCard.js.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +8 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/core/OdeClientProvider/OdeClientProvider.d.ts +1 -1
- package/dist/core/OdeClientProvider/OdeClientProvider.js +45 -44
- package/dist/core/OdeClientProvider/OdeClientProvider.js.map +1 -0
- package/dist/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/core/ThemeProvider/ThemeProvider.js +36 -35
- package/dist/core/ThemeProvider/ThemeProvider.js.map +1 -0
- package/dist/core/useAvatar/useAvatar.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +22 -21
- package/dist/core/useAvatar/useAvatar.js.map +1 -0
- package/dist/core/useBookmark/useBookmark.d.ts +1 -1
- package/dist/core/useBookmark/useBookmark.js +10 -9
- package/dist/core/useBookmark/useBookmark.js.map +1 -0
- package/dist/core/useConf/useConf.d.ts +1 -1
- package/dist/core/useConf/useConf.js +8 -7
- package/dist/core/useConf/useConf.js.map +1 -0
- package/dist/core/useConversation/useConversation.js +30 -29
- package/dist/core/useConversation/useConversation.js.map +1 -0
- package/dist/core/useCookiesConsent/useCookiesConsent.js +17 -16
- package/dist/core/useCookiesConsent/useCookiesConsent.js.map +1 -0
- package/dist/core/useDate/useDate.js +36 -35
- package/dist/core/useDate/useDate.js.map +1 -0
- package/dist/core/useHasWorkflow/useHasWorkflow.js +16 -15
- package/dist/core/useHasWorkflow/useHasWorkflow.js.map +1 -0
- package/dist/core/useHeader/useHeader.d.ts +1 -1
- package/dist/core/useHeader/useHeader.js +42 -41
- package/dist/core/useHeader/useHeader.js.map +1 -0
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js +18 -17
- package/dist/core/useHttpErrorToast/useHttpErrorToast.js.map +1 -0
- package/dist/core/useIsAdml/useIsAdml.js +12 -11
- package/dist/core/useIsAdml/useIsAdml.js.map +1 -0
- package/dist/core/useLibraryUrl/useLibraryUrl.js +17 -16
- package/dist/core/useLibraryUrl/useLibraryUrl.js.map +1 -0
- package/dist/core/useMediaLibrary/useMediaLibrary.d.ts +1 -1
- package/dist/core/useMediaLibrary/useMediaLibrary.js +33 -32
- package/dist/core/useMediaLibrary/useMediaLibrary.js.map +1 -0
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useOdeIcons/useOdeIcons.js +38 -37
- package/dist/core/useOdeIcons/useOdeIcons.js.map +1 -0
- package/dist/core/usePaths/usePaths.js +3 -2
- package/dist/core/usePaths/usePaths.js.map +1 -0
- package/dist/core/usePreferences/usePreferences.js +6 -5
- package/dist/core/usePreferences/usePreferences.js.map +1 -0
- package/dist/core/useResource/useResource.d.ts +1 -1
- package/dist/core/useResource/useResource.js +15 -14
- package/dist/core/useResource/useResource.js.map +1 -0
- package/dist/core/useResourceSearch/useResourceSearch.d.ts +1 -1
- package/dist/core/useResourceSearch/useResourceSearch.js +23 -22
- package/dist/core/useResourceSearch/useResourceSearch.js.map +1 -0
- package/dist/core/useSession/useSession.js +7 -6
- package/dist/core/useSession/useSession.js.map +1 -0
- package/dist/core/useTrashedResource/useTrashedResource.js +19 -18
- package/dist/core/useTrashedResource/useTrashedResource.js.map +1 -0
- package/dist/core/useUpload/useUpload.d.ts +1 -1
- package/dist/core/useUpload/useUpload.js +69 -68
- package/dist/core/useUpload/useUpload.js.map +1 -0
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.js +83 -82
- package/dist/core/useUploadFiles/useUploadFiles.js.map +1 -0
- package/dist/core/useUser/useUser.d.ts +1 -1
- package/dist/core/useUser/useUser.js +16 -15
- package/dist/core/useUser/useUser.js.map +1 -0
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +1 -1
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +32 -31
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js.map +1 -0
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +1 -1
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +42 -41
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js.map +1 -0
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js +18 -17
- package/dist/core/useXitiTrackPageLoad/useXitiTrackPageLoad.js.map +1 -0
- package/dist/core/useZendeskGuide/useZendeskGuide.js +47 -46
- package/dist/core/useZendeskGuide/useZendeskGuide.js.map +1 -0
- package/dist/editor.js +57 -56
- package/dist/editor.js.map +1 -0
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +12 -11
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +19 -18
- package/dist/hooks/useClickOutside/useClickOutside.js.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.js +11 -10
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -0
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +97 -96
- package/dist/hooks/useDropdown/useDropdown.js.map +1 -0
- package/dist/hooks/useDropzone/useDropzone.js +54 -53
- package/dist/hooks/useDropzone/useDropzone.js.map +1 -0
- package/dist/hooks/useHover/useHover.js +15 -14
- package/dist/hooks/useHover/useHover.js.map +1 -0
- package/dist/hooks/useImage/useImage.js +14 -13
- package/dist/hooks/useImage/useImage.js.map +1 -0
- package/dist/hooks/useImageResizer/useImageResizer.js +32 -31
- package/dist/hooks/useImageResizer/useImageResizer.js.map +1 -0
- package/dist/hooks/useKeyPress/useKeyPress.js +11 -10
- package/dist/hooks/useKeyPress/useKeyPress.js.map +1 -0
- package/dist/hooks/useScrollToTop/useScrollToTop.js +5 -4
- package/dist/hooks/useScrollToTop/useScrollToTop.js.map +1 -0
- package/dist/hooks/useThumbnail/useThumbnail.js +22 -21
- package/dist/hooks/useThumbnail/useThumbnail.js.map +1 -0
- package/dist/hooks/useTitle/useTitle.js +8 -7
- package/dist/hooks/useTitle/useTitle.js.map +1 -0
- package/dist/hooks/useToast/useToast.js +26 -25
- package/dist/hooks/useToast/useToast.js.map +1 -0
- package/dist/hooks/useToggle/useToggle.js +7 -6
- package/dist/hooks/useToggle/useToggle.js.map +1 -0
- package/dist/hooks/useTrapFocus/useTrapFocus.js +12 -11
- package/dist/hooks/useTrapFocus/useTrapFocus.js.map +1 -0
- package/dist/index.js +226 -225
- package/dist/index.js.map +1 -0
- package/dist/modals.js +15 -14
- package/dist/modals.js.map +1 -0
- package/dist/modules/audience/ReactionChoice.d.ts +1 -1
- package/dist/modules/audience/ReactionChoice.js +25 -24
- package/dist/modules/audience/ReactionChoice.js.map +1 -0
- package/dist/modules/audience/ReactionModal.Card.d.ts +1 -1
- package/dist/modules/audience/ReactionModal.Card.js +26 -25
- package/dist/modules/audience/ReactionModal.Card.js.map +1 -0
- package/dist/modules/audience/ReactionModal.d.ts +1 -1
- package/dist/modules/audience/ReactionModal.js +59 -59
- package/dist/modules/audience/ReactionModal.js.map +1 -0
- package/dist/modules/audience/ReactionSummary.d.ts +1 -1
- package/dist/modules/audience/ReactionSummary.js +20 -19
- package/dist/modules/audience/ReactionSummary.js.map +1 -0
- package/dist/modules/audience/ViewsByProfileCard.d.ts +1 -1
- package/dist/modules/audience/ViewsByProfileCard.js +23 -22
- package/dist/modules/audience/ViewsByProfileCard.js.map +1 -0
- package/dist/modules/audience/ViewsCounter.js +15 -14
- package/dist/modules/audience/ViewsCounter.js.map +1 -0
- package/dist/modules/audience/ViewsModal.d.ts +1 -1
- package/dist/modules/audience/ViewsModal.js +33 -32
- package/dist/modules/audience/ViewsModal.js.map +1 -0
- package/dist/modules/audience/hooks/useReactionIcons.d.ts +1 -1
- package/dist/modules/audience/hooks/useReactionIcons.js +14 -13
- package/dist/modules/audience/hooks/useReactionIcons.js.map +1 -0
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -3
- package/dist/modules/audience/hooks/useReactions.js +25 -24
- package/dist/modules/audience/hooks/useReactions.js.map +1 -0
- package/dist/modules/audience/hooks/useViews.d.ts +2 -2
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +60 -59
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js.map +1 -0
- package/dist/modules/editor/components/Editor/Editor.d.ts +1 -1
- package/dist/modules/editor/components/Editor/Editor.js +71 -70
- package/dist/modules/editor/components/Editor/Editor.js.map +1 -0
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +38 -37
- package/dist/modules/editor/components/Editor/MathsModal.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +15 -14
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +38 -37
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +34 -33
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +13 -12
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +37 -36
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +36 -35
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +31 -30
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js.map +1 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +96 -95
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js.map +1 -0
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/AudioNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/ImageNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js.map +1 -0
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +7 -6
- package/dist/modules/editor/components/NodeView/VideoNodeView.js.map +1 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +25 -24
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +8 -7
- package/dist/modules/editor/components/Renderer/AudioRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +27 -26
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js.map +1 -0
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +38 -37
- package/dist/modules/editor/components/Renderer/MediaRenderer.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js +3 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +33 -32
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +22 -21
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +31 -30
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +21 -20
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js.map +1 -0
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +42 -41
- package/dist/modules/editor/components/Toolbar/TableToolbar.js.map +1 -0
- package/dist/modules/editor/hooks/useActionOptions.js +48 -47
- package/dist/modules/editor/hooks/useActionOptions.js.map +1 -0
- package/dist/modules/editor/hooks/useCommentEditor.js +28 -27
- package/dist/modules/editor/hooks/useCommentEditor.js.map +1 -0
- package/dist/modules/editor/hooks/useEditorContext.js +9 -8
- package/dist/modules/editor/hooks/useEditorContext.js.map +1 -0
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -1
- package/dist/modules/editor/hooks/useImageModal.js +33 -32
- package/dist/modules/editor/hooks/useImageModal.js.map +1 -0
- package/dist/modules/editor/hooks/useImageSelection.js +32 -31
- package/dist/modules/editor/hooks/useImageSelection.js.map +1 -0
- package/dist/modules/editor/hooks/useLinkToolbar.js +25 -24
- package/dist/modules/editor/hooks/useLinkToolbar.js.map +1 -0
- package/dist/modules/editor/hooks/useMathsModal.js +10 -9
- package/dist/modules/editor/hooks/useMathsModal.js.map +1 -0
- package/dist/modules/editor/hooks/useMathsStyles.js +14 -13
- package/dist/modules/editor/hooks/useMathsStyles.js.map +1 -0
- package/dist/modules/editor/hooks/useMediaLibraryEditor.d.ts +1 -1
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +97 -96
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js.map +1 -0
- package/dist/modules/editor/hooks/useResizeMedia.js +32 -31
- package/dist/modules/editor/hooks/useResizeMedia.js.map +1 -0
- package/dist/modules/editor/hooks/useSpeechRecognition.js +13 -12
- package/dist/modules/editor/hooks/useSpeechRecognition.js.map +1 -0
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js +14 -13
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js.map +1 -0
- package/dist/modules/editor/hooks/useTipTapEditor.js +58 -57
- package/dist/modules/editor/hooks/useTipTapEditor.js.map +1 -0
- package/dist/modules/editor/utils/has-extension.js +3 -2
- package/dist/modules/editor/utils/has-extension.js.map +1 -0
- package/dist/modules/editor/utils/has-mark.js +3 -2
- package/dist/modules/editor/utils/has-mark.js.map +1 -0
- package/dist/modules/editor/utils/has-text-style.js +4 -3
- package/dist/modules/editor/utils/has-text-style.js.map +1 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +50 -49
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js.map +1 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +19 -18
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/PublishModal.d.ts +1 -1
- package/dist/modules/modals/PublishModal/PublishModal.js +98 -97
- package/dist/modules/modals/PublishModal/PublishModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +20 -19
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +15 -14
- package/dist/modules/modals/PublishModal/components/AgeSelect.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/LangSelect.js +12 -11
- package/dist/modules/modals/PublishModal/components/LangSelect.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +17 -16
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +20 -19
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ToastError.js +18 -17
- package/dist/modules/modals/PublishModal/components/ToastError.js.map +1 -0
- package/dist/modules/modals/PublishModal/components/ToastSuccess.d.ts +1 -1
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js +13 -12
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js.map +1 -0
- package/dist/modules/modals/PublishModal/constants/ageOptions.js +3 -2
- package/dist/modules/modals/PublishModal/constants/ageOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js +5 -4
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js +17 -16
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.d.ts +1 -1
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js +80 -79
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js.map +1 -0
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js +42 -41
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js.map +1 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +116 -115
- package/dist/modules/modals/ResourceModal/ResourceModal.js.map +1 -0
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +48 -47
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useSlug.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +33 -32
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useThumb.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js +13 -12
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js.map +1 -0
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +11 -10
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js.map +1 -0
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +34 -33
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js.map +1 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +13 -12
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js.map +1 -0
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +1 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +44 -43
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js.map +1 -0
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +19 -18
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js.map +1 -0
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.d.ts +1 -1
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +158 -157
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js.map +1 -0
- package/dist/modules/multimedia/Embed/Embed.js +23 -22
- package/dist/modules/multimedia/Embed/Embed.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +80 -79
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +38 -37
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +50 -49
- package/dist/modules/multimedia/ImageEditor/effects/blur.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +100 -99
- package/dist/modules/multimedia/ImageEditor/effects/crop.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +108 -107
- package/dist/modules/multimedia/ImageEditor/effects/misc.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +97 -96
- package/dist/modules/multimedia/ImageEditor/effects/resize.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +26 -25
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +56 -57
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +57 -56
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +29 -28
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js.map +1 -0
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js +10 -9
- package/dist/modules/multimedia/ImageEditor/utils/aggregate.js.map +1 -0
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.d.ts +1 -1
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +34 -33
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js.map +1 -0
- package/dist/modules/multimedia/Linker/ExternalLinker.js +37 -36
- package/dist/modules/multimedia/Linker/ExternalLinker.js.map +1 -0
- package/dist/modules/multimedia/Linker/InternalLinker.d.ts +1 -1
- package/dist/modules/multimedia/Linker/InternalLinker.js +89 -88
- package/dist/modules/multimedia/Linker/InternalLinker.js.map +1 -0
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +1 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +32 -31
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +119 -118
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js +9 -8
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js +16 -15
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js +13 -12
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js +10 -9
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +29 -28
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +23 -22
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js +18 -17
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +10 -9
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +17 -16
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js.map +1 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +19 -18
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js.map +1 -0
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +42 -41
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js.map +1 -0
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +60 -59
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js.map +1 -0
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.d.ts +1 -1
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +154 -153
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js.map +1 -0
- package/dist/modules/multimedia/Workspace/Workspace.d.ts +1 -1
- package/dist/modules/multimedia/Workspace/Workspace.js +113 -112
- package/dist/modules/multimedia/Workspace/Workspace.js.map +1 -0
- package/dist/multimedia.js +19 -18
- package/dist/multimedia.js.map +1 -0
- package/dist/portal/Header/Badge.js +6 -5
- package/dist/portal/Header/Badge.js.map +1 -0
- package/dist/portal/Header/Header.js +138 -137
- package/dist/portal/Header/Header.js.map +1 -0
- package/dist/portal/Header/NavItem.js +12 -11
- package/dist/portal/Header/NavItem.js.map +1 -0
- package/dist/portal/Header/NavLink.js +15 -14
- package/dist/portal/Header/NavLink.js.map +1 -0
- package/dist/portal/Header/Navbar.js +10 -9
- package/dist/portal/Header/Navbar.js.map +1 -0
- package/dist/portal/Header/NavbarNav.js +10 -9
- package/dist/portal/Header/NavbarNav.js.map +1 -0
- package/dist/portal/Header/WidgetApps.d.ts +1 -1
- package/dist/portal/Header/WidgetApps.js +17 -16
- package/dist/portal/Header/WidgetApps.js.map +1 -0
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Help/Help.js +19 -18
- package/dist/portal/Help/Help.js.map +1 -0
- package/dist/portal/Help/hooks/useHelp.js +64 -63
- package/dist/portal/Help/hooks/useHelp.js.map +1 -0
- package/dist/portal/Layout/Layout.js +36 -35
- package/dist/portal/Layout/Layout.js.map +1 -0
- package/dist/portal/SearchEngine/SearchEngine.js +26 -25
- package/dist/portal/SearchEngine/SearchEngine.js.map +1 -0
- package/dist/utils/MockedDataProvider/MockedDataProvider.d.ts +1 -1
- package/dist/utils/MockedDataProvider/MockedDataProvider.js +22 -21
- package/dist/utils/MockedDataProvider/MockedDataProvider.js.map +1 -0
- package/dist/utils/StringUtils.js +9 -8
- package/dist/utils/StringUtils.js.map +1 -0
- package/dist/utils/addTimestampToUrl.js +5 -4
- package/dist/utils/addTimestampToUrl.js.map +1 -0
- package/dist/utils/blob.js +10 -9
- package/dist/utils/blob.js.map +1 -0
- package/dist/utils/checkUserRight.d.ts +1 -1
- package/dist/utils/checkUserRight.js +28 -27
- package/dist/utils/checkUserRight.js.map +1 -0
- package/dist/utils/fileSize.js +6 -5
- package/dist/utils/fileSize.js.map +1 -0
- package/dist/utils/findTreeNode.js +8 -7
- package/dist/utils/findTreeNode.js.map +1 -0
- package/dist/utils/isActionAvailable.d.ts +1 -1
- package/dist/utils/isActionAvailable.js +5 -4
- package/dist/utils/isActionAvailable.js.map +1 -0
- package/dist/utils/libraryMaps.js +3 -2
- package/dist/utils/libraryMaps.js.map +1 -0
- package/dist/utils/noop.js +3 -2
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/ref.js +9 -8
- package/dist/utils/ref.js.map +1 -0
- package/dist/utils/thumbnail.js +4 -3
- package/dist/utils/thumbnail.js.map +1 -0
- package/dist/utils/time.js +8 -7
- package/dist/utils/time.js.map +1 -0
- package/dist/utils/treeview.d.ts +1 -1
- package/dist/utils/treeview.js +97 -96
- package/dist/utils/treeview.js.map +1 -0
- package/dist/utils/video.js +3 -2
- package/dist/utils/video.js.map +1 -0
- package/dist/widgets/BookmarkedApps/BookmarkedApps.d.ts +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +7 -6
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js.map +1 -0
- package/dist/widgets/Widget/Widget.js +19 -18
- package/dist/widgets/Widget/Widget.js.map +1 -0
- package/package.json +19 -28
|
@@ -1,157 +1,158 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return "RESIZE_CORNER_" +
|
|
1
|
+
import * as u from "pixi.js";
|
|
2
|
+
const v = 20, O = "CONTROL_NAME";
|
|
3
|
+
function c(e) {
|
|
4
|
+
return "RESIZE_CORNER_" + e;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
switch (
|
|
6
|
+
function l(e, t) {
|
|
7
|
+
const n = t.x, r = t.y;
|
|
8
|
+
switch (e) {
|
|
9
9
|
case "TOP_LEFT":
|
|
10
10
|
return {
|
|
11
|
-
x:
|
|
12
|
-
y:
|
|
11
|
+
x: n,
|
|
12
|
+
y: r,
|
|
13
13
|
start: 0,
|
|
14
14
|
end: Math.PI / 2
|
|
15
15
|
};
|
|
16
16
|
case "TOP_RIGHT":
|
|
17
17
|
return {
|
|
18
|
-
x:
|
|
19
|
-
y:
|
|
18
|
+
x: n + t.width,
|
|
19
|
+
y: r,
|
|
20
20
|
start: Math.PI / 2,
|
|
21
21
|
end: Math.PI
|
|
22
22
|
};
|
|
23
23
|
case "BOTTOM_LEFT":
|
|
24
24
|
return {
|
|
25
|
-
x:
|
|
26
|
-
y:
|
|
25
|
+
x: n,
|
|
26
|
+
y: r + t.height,
|
|
27
27
|
start: 3 * Math.PI / 2,
|
|
28
28
|
end: 2 * Math.PI
|
|
29
29
|
};
|
|
30
30
|
case "BOTTOM_RIGHT":
|
|
31
31
|
return {
|
|
32
|
-
x:
|
|
33
|
-
y:
|
|
32
|
+
x: n + t.width,
|
|
33
|
+
y: r + t.height,
|
|
34
34
|
start: Math.PI,
|
|
35
35
|
end: 3 * Math.PI / 2
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
container,
|
|
41
|
-
cornerType,
|
|
42
|
-
position,
|
|
43
|
-
spriteName
|
|
39
|
+
function I(e, {
|
|
40
|
+
container: t,
|
|
41
|
+
cornerType: n,
|
|
42
|
+
position: r,
|
|
43
|
+
spriteName: o
|
|
44
44
|
}) {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const
|
|
48
|
-
switch (
|
|
45
|
+
const h = e.stage.getChildByName(o, !0);
|
|
46
|
+
if (h == null) return;
|
|
47
|
+
const s = h.rotation % Math.PI !== 0, d = s ? h.height : h.width, T = s ? h.width : h.height;
|
|
48
|
+
switch (n) {
|
|
49
49
|
case "TOP_LEFT": {
|
|
50
|
-
|
|
50
|
+
t.position = new u.Point(r.x, r.y), t.width = d - 2 * r.x, t.height = T - 2 * r.y;
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
case "TOP_RIGHT": {
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const g = d - r.x;
|
|
55
|
+
t.position = new u.Point(g, r.y), t.width = d - 2 * g, t.height = T - 2 * r.y;
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
58
|
case "BOTTOM_LEFT": {
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const g = T - r.y;
|
|
60
|
+
t.position = new u.Point(r.x, g), t.width = d - 2 * r.x, t.height = T - 2 * g;
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
case "BOTTOM_RIGHT": {
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const g = T - r.y, f = d - r.x;
|
|
65
|
+
t.position = new u.Point(f, g), t.width = d - 2 * f, t.height = T - 2 * g;
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const
|
|
72
|
-
|
|
70
|
+
function w(e, t) {
|
|
71
|
+
const n = e.stage.getChildByName(c(t), !0);
|
|
72
|
+
n == null || n.removeFromParent();
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
spriteName
|
|
74
|
+
function i(e, t, {
|
|
75
|
+
spriteName: n
|
|
76
76
|
}) {
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
cornerType,
|
|
88
|
-
position:
|
|
89
|
-
container,
|
|
90
|
-
spriteName
|
|
77
|
+
w(e, t);
|
|
78
|
+
const r = e.stage.getChildByName(n, !0), o = e.stage.getChildByName(O, !0);
|
|
79
|
+
if (r == null || o === null || o === void 0) return;
|
|
80
|
+
const h = l(t, o), s = new u.Graphics();
|
|
81
|
+
s.beginFill(4960213, 1), s.arc(0, 0, v, h.start, h.end), s.lineTo(0, 0), s.endFill(), s.position = new u.Point(h.x, h.y), s.name = c(t), s.interactive = !0;
|
|
82
|
+
let d = !1;
|
|
83
|
+
e.stage.on("pointermove", (f) => {
|
|
84
|
+
if (d === !1) return;
|
|
85
|
+
const C = e.stage.toLocal(f.global);
|
|
86
|
+
I(e, {
|
|
87
|
+
cornerType: t,
|
|
88
|
+
position: C,
|
|
89
|
+
container: o,
|
|
90
|
+
spriteName: n
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
const
|
|
94
|
-
|
|
93
|
+
const T = () => {
|
|
94
|
+
d = !1;
|
|
95
95
|
};
|
|
96
|
-
globalThis.addEventListener("pointerup",
|
|
97
|
-
|
|
96
|
+
globalThis.addEventListener("pointerup", T), s.once("destroyed", () => {
|
|
97
|
+
s.off("pointerdown"), globalThis.removeEventListener("pointerup", T);
|
|
98
98
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
99
|
+
const g = () => {
|
|
100
|
+
d = !0;
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
s.on("pointerdown", g), o.addChild(s);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
function _(e, t) {
|
|
105
|
+
P(e);
|
|
106
|
+
const n = e.stage.getChildByName(t, !0);
|
|
107
|
+
if (n == null) return;
|
|
108
|
+
const r = e.renderer.generateTexture(e.stage), o = new u.Sprite(r);
|
|
109
|
+
e.stage.children.forEach((s) => {
|
|
110
|
+
s.alpha = 0;
|
|
111
111
|
});
|
|
112
|
-
const
|
|
113
|
-
|
|
112
|
+
const h = new u.Graphics();
|
|
113
|
+
h.drawRect(0, 0, n.width, n.height), h.name = O, h.interactive = !0, h.interactiveChildren = !0, e.stage.interactive = !0, e.stage.interactiveChildren = !0, e.stage.addChild(h), h.addChild(o);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
function P(e) {
|
|
116
|
+
const t = e.stage.getChildByName(O, !0);
|
|
117
|
+
t == null || t.removeFromParent(), e.stage.children.forEach((n) => {
|
|
118
|
+
n.alpha = 1;
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
spriteName
|
|
124
|
-
}),
|
|
125
|
-
spriteName
|
|
126
|
-
}),
|
|
127
|
-
spriteName
|
|
128
|
-
}),
|
|
129
|
-
spriteName
|
|
121
|
+
function m(e, t) {
|
|
122
|
+
_(e, t), i(e, "BOTTOM_LEFT", {
|
|
123
|
+
spriteName: t
|
|
124
|
+
}), i(e, "BOTTOM_RIGHT", {
|
|
125
|
+
spriteName: t
|
|
126
|
+
}), i(e, "TOP_LEFT", {
|
|
127
|
+
spriteName: t
|
|
128
|
+
}), i(e, "TOP_RIGHT", {
|
|
129
|
+
spriteName: t
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function a(e) {
|
|
133
|
+
P(e), w(e, "BOTTOM_LEFT"), w(e, "BOTTOM_RIGHT"), w(e, "TOP_LEFT"), w(e, "TOP_RIGHT"), e.stage.off("pointermove");
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
135
|
+
function M(e, t) {
|
|
136
|
+
m(e, t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function x(e) {
|
|
139
|
+
a(e), e.stage.off("pointermove"), e.render();
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
var
|
|
143
|
-
const
|
|
144
|
-
height:
|
|
145
|
-
width:
|
|
141
|
+
function y(e) {
|
|
142
|
+
var r;
|
|
143
|
+
const t = (r = e == null ? void 0 : e.stage) == null ? void 0 : r.getChildByName(O, !0), n = t ? {
|
|
144
|
+
height: t.height,
|
|
145
|
+
width: t.width
|
|
146
146
|
} : void 0;
|
|
147
|
-
if (
|
|
148
|
-
const
|
|
149
|
-
return
|
|
147
|
+
if (a(e), n) {
|
|
148
|
+
const o = e.renderer.generateTexture(e.stage).clone(), h = new u.Sprite(o);
|
|
149
|
+
return h.width = n.width, h.height = n.height, h;
|
|
150
150
|
} else
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
export {
|
|
154
|
-
save,
|
|
155
|
-
start,
|
|
156
|
-
stop
|
|
154
|
+
y as save,
|
|
155
|
+
M as start,
|
|
156
|
+
x as stop
|
|
157
157
|
};
|
|
158
|
+
//# sourceMappingURL=resize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize.js","sources":["../../../../../src/modules/multimedia/ImageEditor/effects/resize.ts"],"sourcesContent":["import * as PIXI from 'pixi.js';\n\n//\n// Global constants used for crop effects\n//\n\n// Define the radius (pixel) of the corner\nconst POINT_RADIUS = 20;\n// Define the name of the graphical controls\nconst CONTROL_NAME = 'CONTROL_NAME';\n// Union type to identify corners\ntype CornerType = 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';\n\n//\n// Implementation\n//\n\n/**\n * This function generate names for corner objects\n * @param corner COrnerType identifying one corner\n * @returns A name identifying the corner object\n */\nfunction getCornerName(index: CornerType) {\n return 'RESIZE_CORNER_' + index;\n}\n\n/**\n * This function compute coordinate (x,y) and angles (start,end) of a corner according to the CornerType\n * - (x,y) are coordinate of the corner in pixel relative to the parent\n * - (start, end) are angles between 0 and 2PI used to draw the corner relative using the Arc tool\n *\n * @param cornerType a CornerType for which we want to compute angles and coordinates\n * @param bounds bounds of the Cropped Texture (which is also the parent of the corner)\n * @returns the coordinates and the angles\n */\nfunction computeCornerPosition(position: CornerType, sprite: PIXI.Graphics) {\n const left = sprite.x;\n const top = sprite.y;\n switch (position) {\n case 'TOP_LEFT': {\n return { x: left, y: top, start: 0, end: Math.PI / 2 };\n }\n case 'TOP_RIGHT': {\n return {\n x: left + sprite.width,\n y: top,\n start: Math.PI / 2,\n end: Math.PI,\n };\n }\n case 'BOTTOM_LEFT': {\n return {\n x: left,\n y: top + sprite.height,\n start: (3 * Math.PI) / 2,\n end: 2 * Math.PI,\n };\n }\n case 'BOTTOM_RIGHT': {\n return {\n x: left + sprite.width,\n y: top + sprite.height,\n start: Math.PI,\n end: (3 * Math.PI) / 2,\n };\n }\n }\n}\n\n/**\n * This function resize container when the corner move\n *\n * @param application the PIXI.Application context\n * @param arg.container The container that materialize the controls graphical object\n * @param arg.cornerType The identifier the corner that moved\n * @param arg.position The new coordinate (x,y) of the corner\n * @param arg.spriteName The name of the sprite in the Application context\n */\nfunction resizeContainer(\n application: PIXI.Application,\n {\n container,\n cornerType,\n position,\n spriteName,\n }: {\n spriteName: string;\n cornerType: CornerType;\n position: { x: number; y: number };\n container: PIXI.Graphics;\n },\n): void {\n const sprite = application.stage.getChildByName(\n spriteName,\n true,\n ) as PIXI.Sprite | null;\n if (sprite === undefined || sprite === null) return;\n // Check whether sprite has been rotated\n const isRotated = sprite.rotation % Math.PI !== 0;\n // If sprite is rotated a multiple of 90°=>width and height are swapped\n const spriteWidth = isRotated ? sprite.height : sprite.width;\n const spriteHeight = isRotated ? sprite.width : sprite.height;\n switch (cornerType) {\n case 'TOP_LEFT': {\n container.position = new PIXI.Point(position.x, position.y);\n container.width = spriteWidth - 2 * position.x;\n container.height = spriteHeight - 2 * position.y;\n break;\n }\n case 'TOP_RIGHT': {\n const newX = spriteWidth - position.x;\n container.position = new PIXI.Point(newX, position.y);\n container.width = spriteWidth - 2 * newX;\n container.height = spriteHeight - 2 * position.y;\n break;\n }\n case 'BOTTOM_LEFT': {\n const newY = spriteHeight - position.y;\n container.position = new PIXI.Point(position.x, newY);\n container.width = spriteWidth - 2 * position.x;\n container.height = spriteHeight - 2 * newY;\n break;\n }\n case 'BOTTOM_RIGHT': {\n const newY = spriteHeight - position.y;\n const newX = spriteWidth - position.x;\n container.position = new PIXI.Point(newX, newY);\n container.width = spriteWidth - 2 * newX;\n container.height = spriteHeight - 2 * newY;\n break;\n }\n }\n}\n/**\n * This function remove the corner using identifier\n * If corner does not exists the function do nothing\n *\n * @param application the PIXI.Application context\n * @param cornerType identifier of the corner to remove\n */\nfunction removeCorner(\n application: PIXI.Application,\n cornerType: CornerType,\n): void {\n const previous = application.stage.getChildByName(\n getCornerName(cornerType),\n true,\n );\n previous?.removeFromParent();\n}\n/**\n * This function draw corner inside the control container\n *\n * @param application the PIXI.Application context\n * @param cornerType identifier of the corner to draw\n * @param args.spriteName the name of the sprite in the context\n */\nfunction drawCorner(\n application: PIXI.Application,\n cornerType: CornerType,\n { spriteName }: { spriteName: string },\n) {\n // Delete corner before redraw if needed\n removeCorner(application, cornerType);\n // Search for sprite\n const sprite = application.stage.getChildByName(\n spriteName,\n true,\n ) as PIXI.Sprite | null;\n // Search for container\n const container = application.stage.getChildByName(\n CONTROL_NAME,\n true,\n ) as PIXI.Graphics | null;\n if (\n sprite === null ||\n sprite === undefined ||\n container === null ||\n container === undefined\n )\n return;\n // Compute position of the container\n const position = computeCornerPosition(cornerType, container);\n // Draw and add the corner\n const corner = new PIXI.Graphics();\n corner.beginFill(0x4bafd5, 1);\n corner.arc(0, 0, POINT_RADIUS, position.start, position.end);\n corner.lineTo(0, 0);\n corner.endFill();\n corner.position = new PIXI.Point(position.x, position.y);\n corner.name = getCornerName(cornerType);\n // Add listener to redraw container while moving corner\n corner.interactive = true;\n let enable = false;\n application.stage.on('pointermove', (event: PIXI.FederatedMouseEvent) => {\n if (enable === false) return;\n const localPosition = application.stage.toLocal(event.global);\n resizeContainer(application, {\n cornerType,\n position: localPosition,\n container,\n spriteName,\n });\n });\n // stop tracking on pointer up\n const handlePointerUp = () => {\n enable = false;\n };\n globalThis.addEventListener('pointerup', handlePointerUp);\n // stop listening pointerup when corner is destroyed\n corner.once('destroyed', () => {\n // cancel listener\n corner.off('pointerdown');\n globalThis.removeEventListener('pointerup', handlePointerUp);\n });\n // Enable tracking on pointerdown\n const handlePointerDown = () => {\n enable = true;\n };\n corner.on('pointerdown', handlePointerDown);\n // add to sprite\n container.addChild(corner);\n}\n\n/**\n * This function draw the container if sprite exists in the Application context\n * The container contains all corners and has the same size as the sprite\n *\n * @param application the PIXI.Application context\n * @param spriteName the name of the sprite object in the context\n */\nfunction drawContainer(\n application: PIXI.Application,\n spriteName: string,\n): void {\n removeContainer(application);\n const sprite = application.stage.getChildByName(\n spriteName,\n true,\n ) as PIXI.Sprite | null;\n if (sprite === null || sprite === undefined) return;\n // Clone the stage\n const stageTexture = application.renderer.generateTexture(application.stage);\n const clonedStage = new PIXI.Sprite(stageTexture);\n // Hide all children (including original sprite)\n application.stage.children.forEach((child) => {\n child.alpha = 0;\n });\n // Draw and add the container\n const container = new PIXI.Graphics();\n container.drawRect(0, 0, sprite.width, sprite.height);\n container.name = CONTROL_NAME;\n container.interactive = true;\n container.interactiveChildren = true;\n application.stage.interactive = true;\n application.stage.interactiveChildren = true;\n application.stage.addChild(container);\n container.addChild(clonedStage);\n}\n/**\n * This function remove the container if exists\n * @param application the PIXI.Application context\n */\nfunction removeContainer(application: PIXI.Application): void {\n const container = application.stage.getChildByName(\n CONTROL_NAME,\n true,\n ) as PIXI.Graphics | null;\n container?.removeFromParent();\n // display all child\n application.stage.children.forEach((child) => {\n child.alpha = 1;\n });\n}\n/**\n * Draw all control graphical objects: container + 4 corners\n *\n * @param application the PIXI.Application context\n * @param spriteName the name of the sprite representing the image\n */\nfunction drawControl(application: PIXI.Application, spriteName: string): void {\n drawContainer(application, spriteName);\n drawCorner(application, 'BOTTOM_LEFT', { spriteName });\n drawCorner(application, 'BOTTOM_RIGHT', { spriteName });\n drawCorner(application, 'TOP_LEFT', { spriteName });\n drawCorner(application, 'TOP_RIGHT', { spriteName });\n}\n/**\n * Remove all control graphical objects if exists : container + 4 corners\n *\n * @param application the PIXI.Application context\n */\nfunction removeControl(application: PIXI.Application): void {\n removeContainer(application);\n removeCorner(application, 'BOTTOM_LEFT');\n removeCorner(application, 'BOTTOM_RIGHT');\n removeCorner(application, 'TOP_LEFT');\n removeCorner(application, 'TOP_RIGHT');\n application.stage.off('pointermove');\n}\n/**\n * Draw all graphical object to control the resize\n *\n * @param application the PIXI.Application context\n * @param spriteName the name of the sprite representing the image\n */\nexport function start(application: PIXI.Application, spriteName: string): void {\n drawControl(application, spriteName);\n}\n/**\n * If {saveChanges} is true remove all graphical controls then resize the sprite\n * If {saveChanges} is false remove all graphical controls and keep original size\n *\n * @param application the PIXI.Application context\n * @param param.saveChanges true if we should save the resize\n * @param param.spriteName the name of the sprite representing the original image\n */\nexport function stop(application: PIXI.Application): void {\n removeControl(application);\n application.stage.off('pointermove');\n application.render();\n}\n/**\n *\n * @param application the PIXI.Application context\n * @param spriteName the name of the sprite representing the image\n * @param size the target size of the image {width, height}\n * @returns a PIXI.Sprite with a image resized or undefined if not found\n */\nexport function save(application: PIXI.Application): PIXI.Sprite | undefined {\n // Search for container\n const container = application?.stage?.getChildByName(\n CONTROL_NAME,\n true,\n ) as PIXI.Graphics | null;\n // Get target size\n const size = container\n ? { height: container.height, width: container.width }\n : undefined;\n // Remove graphic control\n removeControl(application);\n if (size) {\n // Clone stage\n const stageTexture = application.renderer\n .generateTexture(application.stage)\n .clone();\n const clonedStage = new PIXI.Sprite(stageTexture);\n // Apply new size to the stage\n clonedStage.width = size.width;\n clonedStage.height = size.height;\n return clonedStage;\n } else {\n return undefined;\n }\n}\n"],"names":["POINT_RADIUS","CONTROL_NAME","getCornerName","index","computeCornerPosition","position","sprite","left","x","top","y","start","end","Math","PI","width","height","resizeContainer","application","container","cornerType","spriteName","stage","getChildByName","isRotated","rotation","spriteWidth","spriteHeight","PIXI","Point","newX","newY","removeCorner","previous","removeFromParent","drawCorner","undefined","corner","Graphics","beginFill","arc","lineTo","endFill","name","interactive","enable","on","event","localPosition","toLocal","global","handlePointerUp","addEventListener","once","off","removeEventListener","handlePointerDown","addChild","drawContainer","removeContainer","stageTexture","renderer","generateTexture","clonedStage","Sprite","children","forEach","child","alpha","drawRect","interactiveChildren","drawControl","removeControl","stop","render","save","size","clone"],"mappings":";AAOA,MAAMA,IAAe,IAEfC,IAAe;AAarB,SAASC,EAAcC,GAAmB;AACxC,SAAO,mBAAmBA;AAC5B;AAWA,SAASC,EAAsBC,GAAsBC,GAAuB;AAC1E,QAAMC,IAAOD,EAAOE,GACdC,IAAMH,EAAOI;AACnB,UAAQL,GAAQ;AAAA,IACd,KAAK;AACI,aAAA;AAAA,QAAEG,GAAGD;AAAAA,QAAMG,GAAGD;AAAAA,QAAKE,OAAO;AAAA,QAAGC,KAAKC,KAAKC,KAAK;AAAA,MAAA;AAAA,IAErD,KAAK;AACI,aAAA;AAAA,QACLN,GAAGD,IAAOD,EAAOS;AAAAA,QACjBL,GAAGD;AAAAA,QACHE,OAAOE,KAAKC,KAAK;AAAA,QACjBF,KAAKC,KAAKC;AAAAA,MAAAA;AAAAA,IAGd,KAAK;AACI,aAAA;AAAA,QACLN,GAAGD;AAAAA,QACHG,GAAGD,IAAMH,EAAOU;AAAAA,QAChBL,OAAQ,IAAIE,KAAKC,KAAM;AAAA,QACvBF,KAAK,IAAIC,KAAKC;AAAAA,MAAAA;AAAAA,IAGlB,KAAK;AACI,aAAA;AAAA,QACLN,GAAGD,IAAOD,EAAOS;AAAAA,QACjBL,GAAGD,IAAMH,EAAOU;AAAAA,QAChBL,OAAOE,KAA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 @@
|
|
|
1
|
-
import { toBlob, updateImageFromBlob, createImageSettings, resizeStage } from "./misc.js";
|
|
2
|
-
async function
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
if (!
|
|
6
|
-
const
|
|
7
|
-
imgDatasource:
|
|
8
|
-
spriteName,
|
|
9
|
-
settings:
|
|
10
|
-
application,
|
|
11
|
-
sprite
|
|
1
|
+
import { toBlob as h, updateImageFromBlob as y, createImageSettings as f, resizeStage as m } from "./misc.js";
|
|
2
|
+
async function u(e, s) {
|
|
3
|
+
const d = e == null ? void 0 : e.stage.getChildByName(s, !0);
|
|
4
|
+
if (e && d) {
|
|
5
|
+
if (!e) return;
|
|
6
|
+
const b = await h(e), i = await y(e, {
|
|
7
|
+
imgDatasource: b,
|
|
8
|
+
spriteName: s,
|
|
9
|
+
settings: f({
|
|
10
|
+
application: e,
|
|
11
|
+
sprite: d
|
|
12
12
|
})
|
|
13
13
|
});
|
|
14
|
-
if (!
|
|
14
|
+
if (!i)
|
|
15
15
|
return;
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
application,
|
|
20
|
-
sprite:
|
|
21
|
-
newHeight:
|
|
22
|
-
newWidth:
|
|
23
|
-
}),
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
imgDatasource:
|
|
27
|
-
spriteName
|
|
16
|
+
let r, g;
|
|
17
|
+
const t = e.view;
|
|
18
|
+
t.style && (r = t.style.maxHeight ?? "", g = t.style.visibility ?? "", t.style.maxHeight = `${t.clientHeight}px`, t.style.visibility = "hidden"), i.rotation += Math.PI / 2, m({
|
|
19
|
+
application: e,
|
|
20
|
+
sprite: i,
|
|
21
|
+
newHeight: i.width,
|
|
22
|
+
newWidth: i.height
|
|
23
|
+
}), e.render();
|
|
24
|
+
const o = await h(e);
|
|
25
|
+
r !== void 0 && (t.style.maxHeight = r), g !== void 0 && (t.style.visibility = g), await y(e, {
|
|
26
|
+
imgDatasource: o,
|
|
27
|
+
spriteName: s
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
32
|
-
rotate
|
|
32
|
+
u as rotate
|
|
33
33
|
};
|
|
34
|
+
//# sourceMappingURL=rotate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate.js","sources":["../../../../../src/modules/multimedia/ImageEditor/effects/rotate.ts"],"sourcesContent":["import * as PIXI from 'pixi.js';\n\nimport {\n createImageSettings,\n resizeStage,\n toBlob,\n updateImageFromBlob,\n} from './misc';\n\n/**\n * This function rotate the sprite by adding PI/2\n *\n * @param application The PIXI.Application context\n * @param spriteName The name of the sprite representing the image\n */\nexport async function rotate(\n application: PIXI.Application,\n spriteName: string,\n): Promise<void> {\n const sprite = application?.stage.getChildByName(\n spriteName,\n true,\n ) as PIXI.Sprite | null;\n if (application && sprite) {\n if (!application) return undefined;\n // create blob\n const blobBefore = await toBlob(application);\n // replace sprite using blob\n const mergedSprite = await updateImageFromBlob(application, {\n imgDatasource: blobBefore,\n spriteName,\n settings: createImageSettings({ application, sprite }),\n });\n if (!mergedSprite) {\n return;\n }\n // fix maxHeight to avoid resize modal\n let backupOldMaxHeight: string | undefined = undefined;\n let backupOldVisibility: string | undefined = undefined;\n const canvas = application.view as any as HTMLElement;\n if (canvas.style) {\n backupOldMaxHeight = canvas.style.maxHeight ?? '';\n backupOldVisibility = canvas.style.visibility ?? '';\n canvas.style.maxHeight = `${canvas.clientHeight}px`;\n canvas.style.visibility = 'hidden';\n }\n // rotate\n mergedSprite.rotation += Math.PI / 2;\n resizeStage({\n application,\n sprite: mergedSprite,\n newHeight: mergedSprite.width,\n newWidth: mergedSprite.height,\n });\n // render\n application.render();\n // create blob\n const blobAfter = await toBlob(application);\n // restore maxHeight (could be empty string)\n if (backupOldMaxHeight !== undefined) {\n canvas.style.maxHeight = backupOldMaxHeight;\n }\n // restore visibility (could be empty string....)\n if (backupOldVisibility !== undefined) {\n canvas.style.visibility = backupOldVisibility;\n }\n // replace sprite using blob\n await updateImageFromBlob(application, {\n imgDatasource: blobAfter,\n spriteName,\n });\n }\n}\n"],"names":["rotate","application","spriteName","sprite","stage","getChildByName","undefined","blobBefore","toBlob","mergedSprite","updateImageFromBlob","imgDatasource","settings","createImageSettings","backupOldMaxHeight","backupOldVisibility","canvas","view","style","maxHeight","visibility","clientHeight","rotation","Math","PI","resizeStage","newHeight","width","newWidth","height","render","blobAfter"],"mappings":";AAesBA,eAAAA,EACpBC,GACAC,GACe;AACf,QAAMC,IAASF,KAAAA,gBAAAA,EAAaG,MAAMC,eAChCH,GACA;AAEF,MAAID,KAAeE,GAAQ;AACrB,QAAA,CAACF,EAAoBK;AAEnBC,UAAAA,IAAa,MAAMC,EAAOP,CAAW,GAErCQ,IAAe,MAAMC,EAAoBT,GAAa;AAAA,MAC1DU,eAAeJ;AAAAA,MACfL,YAAAA;AAAAA,MACAU,UAAUC,EAAoB;AAAA,QAAEZ,aAAAA;AAAAA,QAAaE,QAAAA;AAAAA,MAAAA,CAAQ;AAAA,IAAA,CACtD;AACD,QAAI,CAACM;AACH;AAGF,QAAIK,GACAC;AACJ,UAAMC,IAASf,EAAYgB;AAC3B,IAAID,EAAOE,UACYF,IAAAA,EAAOE,MAAMC,aAAa,IACzBH,IAAAA,EAAOE,MAAME,cAAc,IACjDJ,EAAOE,MAAMC,YAAY,GAAGH,EAAOK,YAAY,MAC/CL,EAAOE,MAAME,aAAa,WAGfE,EAAAA,YAAYC,KAAKC,KAAK,GACvBC,EAAA;AAAA,MACVxB,aAAAA;AAAAA,MACAE,QAAQM;AAAAA,MACRiB,WAAWjB,EAAakB;AAAAA,MACxBC,UAAUnB,EAAaoB;AAAAA,IAAAA,CACxB,GAED5B,EAAY6B,OAAO;AAEbC,UAAAA,IAAY,MAAMvB,EAAOP,CAAW;AAE1C,IAAIa,MAAuBR,WACzBU,EAAOE,MAAMC,YAAYL,IAGvBC,MAAwBT,WAC1BU,EAAOE,MAAME,aAAaL,IAG5B,MAAML,EAAoBT,GAAa;AAAA,MACrCU,eAAeoB;AAAAA,MACf7B,YAAAA;AAAAA,IAAAA,CACD;AAAA,EACH;AACF;"}
|
|
@@ -1,66 +1,65 @@
|
|
|
1
|
-
import { useState, useEffect } from "react";
|
|
2
|
-
import { toBlob } from "../effects/misc.js";
|
|
3
|
-
const
|
|
4
|
-
maxSize =
|
|
5
|
-
application,
|
|
6
|
-
spriteName,
|
|
7
|
-
onRestore
|
|
1
|
+
import { useState as l, useEffect as f } from "react";
|
|
2
|
+
import { toBlob as x } from "../effects/misc.js";
|
|
3
|
+
const d = 20, z = ({
|
|
4
|
+
maxSize: r = d,
|
|
5
|
+
application: s,
|
|
6
|
+
spriteName: h,
|
|
7
|
+
onRestore: c
|
|
8
8
|
}) => {
|
|
9
|
-
const [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, [
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
height: sprite.height
|
|
30
|
-
},
|
|
31
|
-
position: {
|
|
32
|
-
x: sprite.position.x,
|
|
33
|
-
y: sprite.position.y
|
|
34
|
-
},
|
|
35
|
-
scale: {
|
|
36
|
-
x: sprite.scale.x,
|
|
37
|
-
y: sprite.scale.y
|
|
38
|
-
},
|
|
39
|
-
anchor: {
|
|
40
|
-
x: sprite.anchor.x,
|
|
41
|
-
y: sprite.anchor.y
|
|
42
|
-
}
|
|
9
|
+
const [o, i] = l([]);
|
|
10
|
+
f(() => {
|
|
11
|
+
i([]);
|
|
12
|
+
}, [s]);
|
|
13
|
+
const g = async () => {
|
|
14
|
+
const e = o.pop();
|
|
15
|
+
e && (c(await e.backup, e), i(o.filter((t) => t !== e)));
|
|
16
|
+
}, y = (e) => (e.length > r && e.splice(0, e.length - r), e), u = async (e) => {
|
|
17
|
+
if (!s)
|
|
18
|
+
return;
|
|
19
|
+
const t = s.stage.getChildByName(h, !0);
|
|
20
|
+
if (t == null)
|
|
21
|
+
return;
|
|
22
|
+
const n = x(s), a = {
|
|
23
|
+
backup: n,
|
|
24
|
+
sprite: {
|
|
25
|
+
rotation: t.rotation,
|
|
26
|
+
size: {
|
|
27
|
+
width: t.width,
|
|
28
|
+
height: t.height
|
|
43
29
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
30
|
+
position: {
|
|
31
|
+
x: t.position.x,
|
|
32
|
+
y: t.position.y
|
|
33
|
+
},
|
|
34
|
+
scale: {
|
|
35
|
+
x: t.scale.x,
|
|
36
|
+
y: t.scale.y
|
|
37
|
+
},
|
|
38
|
+
anchor: {
|
|
39
|
+
x: t.anchor.x,
|
|
40
|
+
y: t.anchor.y
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
stage: {
|
|
44
|
+
size: {
|
|
45
|
+
width: s.stage.width,
|
|
46
|
+
height: s.stage.height
|
|
47
|
+
},
|
|
48
|
+
scale: {
|
|
49
|
+
x: s.stage.scale.x,
|
|
50
|
+
y: s.stage.scale.y
|
|
53
51
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return i([...y(o), a]), await n, e.call(e);
|
|
57
55
|
};
|
|
58
56
|
return {
|
|
59
|
-
historyCount:
|
|
60
|
-
restore,
|
|
61
|
-
historize
|
|
57
|
+
historyCount: o.length,
|
|
58
|
+
restore: g,
|
|
59
|
+
historize: u
|
|
62
60
|
};
|
|
63
61
|
};
|
|
64
62
|
export {
|
|
65
|
-
|
|
63
|
+
z as default
|
|
66
64
|
};
|
|
65
|
+
//# sourceMappingURL=useHistoryTool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHistoryTool.js","sources":["../../../../../src/modules/multimedia/ImageEditor/hooks/useHistoryTool.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport * as PIXI from 'pixi.js';\n\nimport { ImageSettings, toBlob } from '../effects/misc';\n\n// Define how much backup are stored in history\nconst DEFAULT_MAX_HISTORY = 20;\n\n/**\n * Defined the structure of the backup in history\n */\nexport interface HistoryState extends ImageSettings {\n backup: Promise<Blob>;\n}\n\nexport interface UseHistoryToolsProps {\n maxSize?: number;\n application?: PIXI.Application;\n spriteName: string;\n onRestore: (img: Blob, state: HistoryState) => void;\n}\n/**\n * This hook expose all the functions needed for historizing actions:\n * - historize: Create a backup\n * - restore: Restore a backup\n * - historyCount: How much states stored in history\n *\n * @param param.maxSize the maximum size of the history\n * @param param.application the PIXI.Application context\n * @param param.spriteName the sprite name of the edited image\n * @param param.onRestore a callback called when a backup is restored\n * @returns all functions needed for managing history\n */\nconst useHistoryTool = ({\n maxSize = DEFAULT_MAX_HISTORY,\n application,\n spriteName,\n onRestore,\n}: UseHistoryToolsProps) => {\n const [history, setHistory] = useState<HistoryState[]>([]);\n useEffect(() => {\n setHistory([]);\n }, [application]);\n const restore = async () => {\n const imgData = history.pop();\n if (imgData) {\n onRestore(await imgData.backup, imgData);\n setHistory(history.filter((current) => current !== imgData));\n }\n };\n const listSize = (arr: HistoryState[]) => {\n if (arr.length > maxSize) {\n arr.splice(0, arr.length - maxSize);\n }\n return arr;\n };\n const historize = async <T extends (...args: any[]) => any>(callback: T) => {\n if (!application) {\n return;\n }\n const sprite = application.stage.getChildByName(spriteName, true) as\n | PIXI.Sprite\n | null\n | undefined;\n if (sprite === undefined || sprite === null) {\n return;\n }\n const promise = toBlob(application);\n const state: HistoryState = {\n backup: promise,\n sprite: {\n rotation: sprite.rotation,\n size: { width: sprite.width, height: sprite.height },\n position: { x: sprite.position.x, y: sprite.position.y },\n scale: { x: sprite.scale.x, y: sprite.scale.y },\n anchor: { x: sprite.anchor.x, y: sprite.anchor.y },\n },\n stage: {\n size: {\n width: application.stage.width,\n height: application.stage.height,\n },\n scale: { x: application.stage.scale.x, y: application.stage.scale.y },\n },\n };\n setHistory([...listSize(history), state]);\n await promise;\n return callback.call(callback);\n };\n\n return {\n historyCount: history.length,\n restore,\n historize,\n };\n};\n\nexport default useHistoryTool;\n"],"names":["DEFAULT_MAX_HISTORY","useHistoryTool","maxSize","application","spriteName","onRestore","history","setHistory","useState","useEffect","restore","imgData","pop","backup","filter","current","listSize","arr","length","splice","historize","callback","sprite","stage","getChildByName","promise","toBlob","state","rotation","size","width","height","position","x","y","scale","anchor","call","historyCount"],"mappings":";;AAOA,MAAMA,IAAsB,IA2BtBC,IAAiBA,CAAC;AAAA,EACtBC,SAAAA,IAAUF;AAAAA,EACVG,aAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,WAAAA;AACoB,MAAM;AAC1B,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAyB,CAAE,CAAA;AACzDC,EAAAA,EAAU,MAAM;AACdF,IAAAA,EAAW,CAAE,CAAA;AAAA,EAAA,GACZ,CAACJ,CAAW,CAAC;AAChB,QAAMO,IAAU,YAAY;AACpBC,UAAAA,IAAUL,EAAQM;AACxB,IAAID,MACQN,EAAA,MAAMM,EAAQE,QAAQF,CAAO,GACvCJ,EAAWD,EAAQQ,OAAQC,CAAYA,MAAAA,MAAYJ,CAAO,CAAC;AAAA,EAC7D,GAEIK,IAAWA,CAACC,OACZA,EAAIC,SAAShB,KACfe,EAAIE,OAAO,GAAGF,EAAIC,SAAShB,CAAO,GAE7Be,IAEHG,IAAY,OAA0CC,MAAgB;AAC1E,QAAI,CAAClB;AACH;AAEF,UAAMmB,IAASnB,EAAYoB,MAAMC,eAAepB,GAAY,EAAI;AAI5DkB,QAAwBA,KAAW;AACrC;AAEIG,UAAAA,IAAUC,EAAOvB,CAAW,GAC5BwB,IAAsB;AAAA,MAC1Bd,QAAQY;AAAAA,MACRH,QAAQ;AAAA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