jodit-pro 4.13.43 → 4.13.44
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +241 -72
- package/es2015/plugins/google-maps/google-maps.min.js +4 -4
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +5 -5
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +7 -7
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +5 -5
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +236 -75
- package/es2021/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +5 -5
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +236 -75
- package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +321 -94
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
- package/package.json +1 -1
- package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1741,7 +1741,7 @@ jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__.Icon.set('map', (_icon_svg__
|
|
|
1741
1741
|
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.googleMaps = {
|
|
1742
1742
|
saveStateInStorage: true,
|
|
1743
1743
|
useStaticImage: false,
|
|
1744
|
-
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places
|
|
1744
|
+
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places&language=${j.o.language}&callback=JoditGoogleReadyHandler',
|
|
1745
1745
|
API_KEY: 'AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY',
|
|
1746
1746
|
dialog: {
|
|
1747
1747
|
size: [
|
|
@@ -2771,24 +2771,27 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__de
|
|
|
2771
2771
|
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20616);
|
|
2772
2772
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67709);
|
|
2773
2773
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82749);
|
|
2774
|
-
/* harmony import */ var
|
|
2775
|
-
/* harmony import */ var
|
|
2776
|
-
/* harmony import */ var
|
|
2777
|
-
/* harmony import */ var
|
|
2778
|
-
/* harmony import */ var
|
|
2779
|
-
/* harmony import */ var
|
|
2780
|
-
/* harmony import */ var
|
|
2781
|
-
/* harmony import */ var
|
|
2782
|
-
/* harmony import */ var
|
|
2783
|
-
/* harmony import */ var
|
|
2784
|
-
/* harmony import */ var
|
|
2785
|
-
/* harmony import */ var
|
|
2786
|
-
/* harmony import */ var
|
|
2787
|
-
/* harmony import */ var
|
|
2788
|
-
/* harmony import */ var
|
|
2789
|
-
/* harmony import */ var
|
|
2790
|
-
/* harmony import */ var
|
|
2791
|
-
/* harmony import */ var
|
|
2774
|
+
/* harmony import */ var _swc_helpers_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54816);
|
|
2775
|
+
/* harmony import */ var _swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84669);
|
|
2776
|
+
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18766);
|
|
2777
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56075);
|
|
2778
|
+
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(11886);
|
|
2779
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
2780
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62361);
|
|
2781
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(55029);
|
|
2782
|
+
/* harmony import */ var _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(22125);
|
|
2783
|
+
/* harmony import */ var _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(76864);
|
|
2784
|
+
/* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1475);
|
|
2785
|
+
/* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(81577);
|
|
2786
|
+
/* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(97357);
|
|
2787
|
+
/* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(13525);
|
|
2788
|
+
/* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(37133);
|
|
2789
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(580);
|
|
2790
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(38837);
|
|
2791
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(41180);
|
|
2792
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(67510);
|
|
2793
|
+
/* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(11676);
|
|
2794
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(17298);
|
|
2792
2795
|
/*!
|
|
2793
2796
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2794
2797
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2813,20 +2816,23 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__de
|
|
|
2813
2816
|
|
|
2814
2817
|
|
|
2815
2818
|
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
|
|
2816
2822
|
|
|
2817
2823
|
|
|
2818
2824
|
|
|
2819
2825
|
|
|
2820
2826
|
var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
2821
2827
|
"use strict";
|
|
2822
|
-
(0,
|
|
2828
|
+
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__._)(UIMap, UIGroup);
|
|
2823
2829
|
function UIMap(jodit, state, options) {
|
|
2824
2830
|
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__._)(this, UIMap);
|
|
2825
2831
|
var _this;
|
|
2826
2832
|
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_1__._)(this, UIMap, [
|
|
2827
2833
|
jodit
|
|
2828
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "
|
|
2829
|
-
uid: 'jd' + (0,
|
|
2834
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "drawing", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "layers", void 0), _this.options = options, _this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_24__.ToolbarCollection(_this.jodit), _this.state = {
|
|
2835
|
+
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_20__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
|
|
2830
2836
|
layer: _this.options.googleMaps.map.layer,
|
|
2831
2837
|
center: _this.options.googleMaps.map.defaultCenter,
|
|
2832
2838
|
zoom: _this.options.googleMaps.map.defaultZoom,
|
|
@@ -2852,7 +2858,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2852
2858
|
'gm.circle'
|
|
2853
2859
|
]);
|
|
2854
2860
|
var palette = _this.getElm('map-palette');
|
|
2855
|
-
(0,
|
|
2861
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(palette != null, 'palette element does not exists');
|
|
2856
2862
|
palette.appendChild(_this.toolbar.container);
|
|
2857
2863
|
return _this;
|
|
2858
2864
|
}
|
|
@@ -2866,7 +2872,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2866
2872
|
{
|
|
2867
2873
|
key: "json",
|
|
2868
2874
|
value: function json() {
|
|
2869
|
-
return JSON.stringify((0,
|
|
2875
|
+
return JSON.stringify((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_9__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_8__._)({}, this.state), {
|
|
2870
2876
|
mode: 'hand'
|
|
2871
2877
|
}));
|
|
2872
2878
|
}
|
|
@@ -2876,7 +2882,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2876
2882
|
value: function onReady() {
|
|
2877
2883
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
2878
2884
|
var _this, container;
|
|
2879
|
-
return (0,
|
|
2885
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_11__._)(this, function(_state) {
|
|
2880
2886
|
switch(_state.label){
|
|
2881
2887
|
case 0:
|
|
2882
2888
|
_this = this;
|
|
@@ -2887,7 +2893,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2887
2893
|
case 1:
|
|
2888
2894
|
_state.sent();
|
|
2889
2895
|
container = this.getElm('map-root');
|
|
2890
|
-
(0,
|
|
2896
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(container != null, 'map-root element does not exists');
|
|
2891
2897
|
this.map = new google.maps.Map(container, {
|
|
2892
2898
|
center: {
|
|
2893
2899
|
lat: this.state.center[0],
|
|
@@ -2914,7 +2920,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2914
2920
|
_this.state.type = type;
|
|
2915
2921
|
}
|
|
2916
2922
|
});
|
|
2917
|
-
this.
|
|
2923
|
+
this.initDrawingController();
|
|
2918
2924
|
this.onChangeElementsList();
|
|
2919
2925
|
this.onChangeSize();
|
|
2920
2926
|
this.onChangeControls();
|
|
@@ -2934,38 +2940,13 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2934
2940
|
}
|
|
2935
2941
|
},
|
|
2936
2942
|
{
|
|
2937
|
-
key: "
|
|
2938
|
-
value: function
|
|
2943
|
+
key: "initDrawingController",
|
|
2944
|
+
value: function initDrawingController() {
|
|
2939
2945
|
var _this = this;
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
drawingControl: false,
|
|
2945
|
-
polygonOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.polygon), {
|
|
2946
|
-
clickable: true,
|
|
2947
|
-
editable: true
|
|
2948
|
-
}),
|
|
2949
|
-
polylineOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.polyline), {
|
|
2950
|
-
clickable: true,
|
|
2951
|
-
editable: true
|
|
2952
|
-
}),
|
|
2953
|
-
markerOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.marker), {
|
|
2954
|
-
clickable: true
|
|
2955
|
-
}),
|
|
2956
|
-
circleOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.circle), {
|
|
2957
|
-
clickable: true,
|
|
2958
|
-
editable: true
|
|
2959
|
-
})
|
|
2960
|
-
});
|
|
2961
|
-
this.drawingManager = drawingManager;
|
|
2962
|
-
google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) {
|
|
2963
|
-
if (event.overlay) {
|
|
2964
|
-
_modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_11__.addNewInState.call(_this, event.overlay);
|
|
2965
|
-
event.overlay.setMap(null);
|
|
2966
|
-
}
|
|
2967
|
-
});
|
|
2968
|
-
} catch (unused) {}
|
|
2946
|
+
this.drawing = new _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_14__.DrawingController(this.map, this.options.googleMaps.map.defaultStates, function(overlay) {
|
|
2947
|
+
_modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_13__.addNewInState.call(_this, overlay);
|
|
2948
|
+
overlay.setMap(null);
|
|
2949
|
+
});
|
|
2969
2950
|
}
|
|
2970
2951
|
},
|
|
2971
2952
|
{
|
|
@@ -2977,9 +2958,9 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2977
2958
|
{
|
|
2978
2959
|
key: "onChangeMode",
|
|
2979
2960
|
value: function onChangeMode() {
|
|
2980
|
-
var
|
|
2961
|
+
var _this_drawing;
|
|
2981
2962
|
this.j.buffer.set('createMode.gm', this.state.mode);
|
|
2982
|
-
(
|
|
2963
|
+
(_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.setMode(this.state.mode);
|
|
2983
2964
|
this.j.e.fire('updateToolbar');
|
|
2984
2965
|
}
|
|
2985
2966
|
},
|
|
@@ -2995,7 +2976,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2995
2976
|
}
|
|
2996
2977
|
mapElements.length = elements.length;
|
|
2997
2978
|
elements.forEach(function(state, index) {
|
|
2998
|
-
return
|
|
2979
|
+
return _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_15__.initOrUpdateElementFromState.call(_this, state, index);
|
|
2999
2980
|
});
|
|
3000
2981
|
}
|
|
3001
2982
|
},
|
|
@@ -3031,7 +3012,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3031
3012
|
{
|
|
3032
3013
|
key: "onChangeBound",
|
|
3033
3014
|
value: function onChangeBound() {
|
|
3034
|
-
this.options.googleMaps.saveStateInStorage && this.j.storage.set(
|
|
3015
|
+
this.options.googleMaps.saveStateInStorage && this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_25__.STORAGE_KEY, {
|
|
3035
3016
|
center: this.state.center,
|
|
3036
3017
|
size: this.state.size,
|
|
3037
3018
|
zoom: this.state.zoom,
|
|
@@ -3045,8 +3026,8 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3045
3026
|
key: "onChangeSize",
|
|
3046
3027
|
value: function onChangeSize() {
|
|
3047
3028
|
var mapSize = this.getElm('map-size');
|
|
3048
|
-
(0,
|
|
3049
|
-
(0,
|
|
3029
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(mapSize != null, 'map-size element does not exists');
|
|
3030
|
+
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_22__.css)(mapSize, {
|
|
3050
3031
|
width: this.state.size[0],
|
|
3051
3032
|
height: this.state.size[1]
|
|
3052
3033
|
});
|
|
@@ -3082,6 +3063,14 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3082
3063
|
});
|
|
3083
3064
|
}
|
|
3084
3065
|
},
|
|
3066
|
+
{
|
|
3067
|
+
key: "destruct",
|
|
3068
|
+
value: function destruct() {
|
|
3069
|
+
var _this_drawing;
|
|
3070
|
+
(_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.destruct();
|
|
3071
|
+
return (0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_5__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_6__._)(UIMap.prototype), "destruct", this).call(this);
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3085
3074
|
{
|
|
3086
3075
|
key: "render",
|
|
3087
3076
|
value: function render() {
|
|
@@ -3094,35 +3083,35 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3094
3083
|
}
|
|
3095
3084
|
]);
|
|
3096
3085
|
return UIMap;
|
|
3097
|
-
}(
|
|
3098
|
-
(0,
|
|
3099
|
-
(0,
|
|
3086
|
+
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_23__.UIGroup);
|
|
3087
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3088
|
+
(0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_17__.hook)('ready')
|
|
3100
3089
|
], UIMap.prototype, "onReady", null);
|
|
3101
|
-
(0,
|
|
3102
|
-
(0,
|
|
3090
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3091
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('?:changeCreateMode.gm')
|
|
3103
3092
|
], UIMap.prototype, "changeCreateMode", null);
|
|
3104
|
-
(0,
|
|
3105
|
-
(0,
|
|
3093
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3094
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.mode')
|
|
3106
3095
|
], UIMap.prototype, "onChangeMode", null);
|
|
3107
|
-
(0,
|
|
3108
|
-
(0,
|
|
3096
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3097
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.elements')
|
|
3109
3098
|
], UIMap.prototype, "onChangeElementsList", null);
|
|
3110
|
-
(0,
|
|
3111
|
-
(0,
|
|
3112
|
-
(0,
|
|
3099
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3100
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.center'),
|
|
3101
|
+
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__.wait)(function(ctx) {
|
|
3113
3102
|
return ctx.mapInitialized;
|
|
3114
3103
|
}),
|
|
3115
|
-
(0,
|
|
3104
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3116
3105
|
], UIMap.prototype, "onChangeCenter", null);
|
|
3117
|
-
(0,
|
|
3118
|
-
(0,
|
|
3119
|
-
(0,
|
|
3106
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3107
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.zoom'),
|
|
3108
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3120
3109
|
], UIMap.prototype, "onChangeZoom", null);
|
|
3121
|
-
(0,
|
|
3122
|
-
(0,
|
|
3110
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3111
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.controls')
|
|
3123
3112
|
], UIMap.prototype, "onChangeControls", null);
|
|
3124
|
-
(0,
|
|
3125
|
-
(0,
|
|
3113
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3114
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)([
|
|
3126
3115
|
'state.center',
|
|
3127
3116
|
'state.zoom',
|
|
3128
3117
|
'state.controls',
|
|
@@ -3130,20 +3119,20 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3130
3119
|
'state.type',
|
|
3131
3120
|
'state.layer'
|
|
3132
3121
|
]),
|
|
3133
|
-
(0,
|
|
3122
|
+
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__.wait)(function(ctx) {
|
|
3134
3123
|
return ctx.mapInitialized;
|
|
3135
3124
|
}),
|
|
3136
|
-
(0,
|
|
3125
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3137
3126
|
], UIMap.prototype, "onChangeBound", null);
|
|
3138
|
-
(0,
|
|
3139
|
-
(0,
|
|
3140
|
-
(0,
|
|
3127
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3128
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.size'),
|
|
3129
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3141
3130
|
], UIMap.prototype, "onChangeSize", null);
|
|
3142
|
-
(0,
|
|
3143
|
-
(0,
|
|
3131
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3132
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.type')
|
|
3144
3133
|
], UIMap.prototype, "onChangeMapType", null);
|
|
3145
|
-
(0,
|
|
3146
|
-
(0,
|
|
3134
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3135
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.layer')
|
|
3147
3136
|
], UIMap.prototype, "onChangeLayer", null);
|
|
3148
3137
|
|
|
3149
3138
|
|
|
@@ -3217,6 +3206,244 @@ function addNewInState(mvc) {
|
|
|
3217
3206
|
}
|
|
3218
3207
|
|
|
3219
3208
|
|
|
3209
|
+
/***/ }),
|
|
3210
|
+
|
|
3211
|
+
/***/ 76864:
|
|
3212
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3213
|
+
|
|
3214
|
+
"use strict";
|
|
3215
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3216
|
+
/* harmony export */ DrawingController: function() { return /* binding */ DrawingController; }
|
|
3217
|
+
/* harmony export */ });
|
|
3218
|
+
/* unused harmony export isDrawableMode */
|
|
3219
|
+
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20616);
|
|
3220
|
+
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67709);
|
|
3221
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82749);
|
|
3222
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56075);
|
|
3223
|
+
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11886);
|
|
3224
|
+
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94899);
|
|
3225
|
+
/*!
|
|
3226
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3227
|
+
* See LICENSE.md in the project root for license information.
|
|
3228
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3229
|
+
*/
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
|
|
3235
|
+
var DRAWABLE_MODES = [
|
|
3236
|
+
'marker',
|
|
3237
|
+
'polyline',
|
|
3238
|
+
'polygon',
|
|
3239
|
+
'circle'
|
|
3240
|
+
];
|
|
3241
|
+
function isDrawableMode(mode) {
|
|
3242
|
+
return DRAWABLE_MODES.includes(mode);
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Replacement for the removed `google.maps.drawing.DrawingManager`
|
|
3246
|
+
* (the Drawing Library was discontinued in Maps JS API v3.65):
|
|
3247
|
+
* draws markers, polylines, polygons and circles with plain map events.
|
|
3248
|
+
*
|
|
3249
|
+
* Click places a marker / a vertex / a circle center; for circles the
|
|
3250
|
+
* radius follows the cursor and a second click fixes it; polylines and
|
|
3251
|
+
* polygons are finished with a double click. The completed shape is
|
|
3252
|
+
* passed to `onComplete` and removed from the map — the caller
|
|
3253
|
+
* re-creates it from state, exactly as with DrawingManager overlays.
|
|
3254
|
+
*/ var DrawingController = /*#__PURE__*/ function() {
|
|
3255
|
+
"use strict";
|
|
3256
|
+
function DrawingController(map, defaultStates, onComplete) {
|
|
3257
|
+
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_0__._)(this, DrawingController);
|
|
3258
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "map", void 0);
|
|
3259
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "defaultStates", void 0);
|
|
3260
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "onComplete", void 0);
|
|
3261
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "mode", void 0);
|
|
3262
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "listeners", void 0);
|
|
3263
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "preview", void 0);
|
|
3264
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "previewCircle", void 0);
|
|
3265
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "vertices", void 0);
|
|
3266
|
+
this.map = map;
|
|
3267
|
+
this.defaultStates = defaultStates;
|
|
3268
|
+
this.onComplete = onComplete;
|
|
3269
|
+
this.mode = null;
|
|
3270
|
+
this.listeners = [];
|
|
3271
|
+
this.preview = null;
|
|
3272
|
+
this.previewCircle = null;
|
|
3273
|
+
this.vertices = [];
|
|
3274
|
+
}
|
|
3275
|
+
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_1__._)(DrawingController, [
|
|
3276
|
+
{
|
|
3277
|
+
key: "setMode",
|
|
3278
|
+
value: function setMode(mode) {
|
|
3279
|
+
var nextMode = isDrawableMode(mode) ? mode : null;
|
|
3280
|
+
if (nextMode === this.mode) {
|
|
3281
|
+
return;
|
|
3282
|
+
}
|
|
3283
|
+
this.cancel();
|
|
3284
|
+
this.unbind();
|
|
3285
|
+
this.mode = nextMode;
|
|
3286
|
+
if (nextMode) {
|
|
3287
|
+
this.bind();
|
|
3288
|
+
this.map.setOptions({
|
|
3289
|
+
draggableCursor: 'crosshair',
|
|
3290
|
+
disableDoubleClickZoom: true
|
|
3291
|
+
});
|
|
3292
|
+
} else {
|
|
3293
|
+
this.map.setOptions({
|
|
3294
|
+
draggableCursor: null,
|
|
3295
|
+
disableDoubleClickZoom: false
|
|
3296
|
+
});
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
key: "destruct",
|
|
3302
|
+
value: function destruct() {
|
|
3303
|
+
this.cancel();
|
|
3304
|
+
this.unbind();
|
|
3305
|
+
this.mode = null;
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
key: "bind",
|
|
3310
|
+
value: function bind() {
|
|
3311
|
+
var _this = this;
|
|
3312
|
+
this.listeners = [
|
|
3313
|
+
this.map.addListener('click', function(e) {
|
|
3314
|
+
return _this.onClick(e);
|
|
3315
|
+
}),
|
|
3316
|
+
this.map.addListener('mousemove', function(e) {
|
|
3317
|
+
return _this.onMove(e);
|
|
3318
|
+
}),
|
|
3319
|
+
this.map.addListener('dblclick', function() {
|
|
3320
|
+
return _this.onDblClick();
|
|
3321
|
+
})
|
|
3322
|
+
];
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
key: "unbind",
|
|
3327
|
+
value: function unbind() {
|
|
3328
|
+
this.listeners.forEach(function(listener) {
|
|
3329
|
+
return listener.remove();
|
|
3330
|
+
});
|
|
3331
|
+
this.listeners = [];
|
|
3332
|
+
}
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
key: "onClick",
|
|
3336
|
+
value: function onClick(e) {
|
|
3337
|
+
var point = e.latLng;
|
|
3338
|
+
if (!point) {
|
|
3339
|
+
return;
|
|
3340
|
+
}
|
|
3341
|
+
switch(this.mode){
|
|
3342
|
+
case 'marker':
|
|
3343
|
+
this.onComplete(new google.maps.Marker({
|
|
3344
|
+
position: point
|
|
3345
|
+
}));
|
|
3346
|
+
break;
|
|
3347
|
+
case 'circle':
|
|
3348
|
+
if (!this.previewCircle) {
|
|
3349
|
+
this.previewCircle = new google.maps.Circle((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__._)({}, this.defaultStates.circle), {
|
|
3350
|
+
center: point,
|
|
3351
|
+
radius: 0,
|
|
3352
|
+
clickable: false,
|
|
3353
|
+
map: this.map
|
|
3354
|
+
}));
|
|
3355
|
+
} else {
|
|
3356
|
+
this.finishCircle();
|
|
3357
|
+
}
|
|
3358
|
+
break;
|
|
3359
|
+
case 'polyline':
|
|
3360
|
+
case 'polygon':
|
|
3361
|
+
this.vertices.push(point);
|
|
3362
|
+
this.updatePolyPreview(point);
|
|
3363
|
+
break;
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
key: "onMove",
|
|
3369
|
+
value: function onMove(e) {
|
|
3370
|
+
var point = e.latLng;
|
|
3371
|
+
if (!point) {
|
|
3372
|
+
return;
|
|
3373
|
+
}
|
|
3374
|
+
if (this.previewCircle) {
|
|
3375
|
+
var center = this.previewCircle.getCenter();
|
|
3376
|
+
center && this.previewCircle.setRadius(google.maps.geometry.spherical.computeDistanceBetween(center, point));
|
|
3377
|
+
return;
|
|
3378
|
+
}
|
|
3379
|
+
if (this.vertices.length) {
|
|
3380
|
+
this.updatePolyPreview(point);
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
key: "onDblClick",
|
|
3386
|
+
value: function onDblClick() {
|
|
3387
|
+
if (this.mode !== 'polyline' && this.mode !== 'polygon') {
|
|
3388
|
+
return;
|
|
3389
|
+
}
|
|
3390
|
+
// The double click is preceded by two single clicks at the same
|
|
3391
|
+
// point — collapse the duplicated trailing vertices
|
|
3392
|
+
var path = this.vertices.filter(function(point, i, list) {
|
|
3393
|
+
return i === 0 || !point.equals(list[i - 1]);
|
|
3394
|
+
});
|
|
3395
|
+
var minPoints = this.mode === 'polygon' ? 3 : 2;
|
|
3396
|
+
if (path.length >= minPoints && this.preview) {
|
|
3397
|
+
var shape = this.preview;
|
|
3398
|
+
shape.setPath(path);
|
|
3399
|
+
this.onComplete(shape);
|
|
3400
|
+
}
|
|
3401
|
+
this.cancel();
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
key: "finishCircle",
|
|
3406
|
+
value: function finishCircle() {
|
|
3407
|
+
var circle = this.previewCircle;
|
|
3408
|
+
if (circle) {
|
|
3409
|
+
this.previewCircle = null;
|
|
3410
|
+
this.onComplete(circle);
|
|
3411
|
+
circle.setMap(null);
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
key: "updatePolyPreview",
|
|
3417
|
+
value: function updatePolyPreview(cursor) {
|
|
3418
|
+
var path = (0,_swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_5__._)(this.vertices).concat([
|
|
3419
|
+
cursor
|
|
3420
|
+
]);
|
|
3421
|
+
if (!this.preview) {
|
|
3422
|
+
var options = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__._)({}, this.defaultStates[this.mode === 'polygon' ? 'polygon' : 'polyline']), {
|
|
3423
|
+
clickable: false,
|
|
3424
|
+
map: this.map
|
|
3425
|
+
});
|
|
3426
|
+
this.preview = this.mode === 'polygon' ? new google.maps.Polygon(options) : new google.maps.Polyline(options);
|
|
3427
|
+
}
|
|
3428
|
+
this.preview.setPath(path);
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
key: "cancel",
|
|
3433
|
+
value: function cancel() {
|
|
3434
|
+
var _this_preview, _this_previewCircle;
|
|
3435
|
+
(_this_preview = this.preview) === null || _this_preview === void 0 ? void 0 : _this_preview.setMap(null);
|
|
3436
|
+
this.preview = null;
|
|
3437
|
+
(_this_previewCircle = this.previewCircle) === null || _this_previewCircle === void 0 ? void 0 : _this_previewCircle.setMap(null);
|
|
3438
|
+
this.previewCircle = null;
|
|
3439
|
+
this.vertices = [];
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
]);
|
|
3443
|
+
return DrawingController;
|
|
3444
|
+
}();
|
|
3445
|
+
|
|
3446
|
+
|
|
3220
3447
|
/***/ }),
|
|
3221
3448
|
|
|
3222
3449
|
/***/ 1475:
|