@tmagic/editor 1.0.0-rc.2 → 1.0.0-rc.3
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/coverage/clover.xml +162 -162
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/Editor.vue.html +14 -2
- package/coverage/lcov-report/src/components/ContentMenu.vue.html +1 -1
- package/coverage/lcov-report/src/components/Icon.vue.html +1 -1
- package/coverage/lcov-report/src/components/ScrollViewer.vue.html +1 -1
- package/coverage/lcov-report/src/components/ToolButton.vue.html +1 -1
- package/coverage/lcov-report/src/components/index.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/layouts/AddPageBox.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/Framework.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/NavMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/PropsPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/Resizer.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/index.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/ComponentListPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/Sidebar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/TabPane.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/index.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/PageBar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Stage.vue.html +8 -2
- package/coverage/lcov-report/src/layouts/workspace/ViewerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Workspace.vue.html +8 -2
- package/coverage/lcov-report/src/layouts/workspace/index.html +1 -1
- package/coverage/lcov-report/src/services/BaseService.ts.html +1 -1
- package/coverage/lcov-report/src/services/componentList.ts.html +1 -1
- package/coverage/lcov-report/src/services/editor.ts.html +1 -1
- package/coverage/lcov-report/src/services/events.ts.html +1 -1
- package/coverage/lcov-report/src/services/history.ts.html +1 -1
- package/coverage/lcov-report/src/services/index.html +1 -1
- package/coverage/lcov-report/src/services/props.ts.html +1 -1
- package/coverage/lcov-report/src/services/ui.ts.html +1 -1
- package/coverage/lcov-report/src/type.ts.html +1 -1
- package/coverage/lcov-report/src/utils/compose.ts.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/editor.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/index.ts.html +1 -1
- package/coverage/lcov-report/src/utils/logger.ts.html +1 -1
- package/coverage/lcov-report/src/utils/props.ts.html +1 -1
- package/coverage/lcov-report/src/utils/scroll-viewer.ts.html +1 -1
- package/coverage/lcov-report/src/utils/undo-redo.ts.html +1 -1
- package/coverage/lcov.info +538 -538
- package/dist/tmagic-editor.es.js +8 -2
- package/dist/tmagic-editor.es.js.map +1 -1
- package/dist/tmagic-editor.umd.js +8 -2
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/dist/types/src/Editor.vue.d.ts +5 -0
- package/dist/types/src/layouts/workspace/Workspace.vue.d.ts +5 -1
- package/package.json +7 -7
- package/src/Editor.vue +4 -0
- package/src/layouts/workspace/Stage.vue +2 -0
- package/src/layouts/workspace/Workspace.vue +2 -0
package/dist/tmagic-editor.es.js
CHANGED
|
@@ -3313,6 +3313,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3313
3313
|
type: Function
|
|
3314
3314
|
},
|
|
3315
3315
|
runtimeUrl: String,
|
|
3316
|
+
autoScrollIntoView: Boolean,
|
|
3316
3317
|
canSelect: {
|
|
3317
3318
|
type: Function,
|
|
3318
3319
|
default: (el) => Boolean(el.id)
|
|
@@ -3348,6 +3349,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
3348
3349
|
render: props.render,
|
|
3349
3350
|
runtimeUrl: props.runtimeUrl,
|
|
3350
3351
|
zoom: zoom.value,
|
|
3352
|
+
autoScrollIntoView: props.autoScrollIntoView,
|
|
3351
3353
|
canSelect: (el, event, stop) => {
|
|
3352
3354
|
const elCanSelect = props.canSelect(el);
|
|
3353
3355
|
if (uiSelectMode.value && elCanSelect && event.type === "mousedown") {
|
|
@@ -3485,6 +3487,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
3485
3487
|
},
|
|
3486
3488
|
props: {
|
|
3487
3489
|
runtimeUrl: String,
|
|
3490
|
+
autoScrollIntoView: Boolean,
|
|
3488
3491
|
render: {
|
|
3489
3492
|
type: Function
|
|
3490
3493
|
},
|
|
@@ -3591,10 +3594,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3591
3594
|
(openBlock(), createBlock(_component_magic_stage, {
|
|
3592
3595
|
key: _ctx.page?.id,
|
|
3593
3596
|
"runtime-url": _ctx.runtimeUrl,
|
|
3597
|
+
"auto-scroll-into-view": _ctx.autoScrollIntoView,
|
|
3594
3598
|
render: _ctx.render,
|
|
3595
3599
|
"moveable-options": _ctx.moveableOptions,
|
|
3596
3600
|
"can-select": _ctx.canSelect
|
|
3597
|
-
}, null, 8, ["runtime-url", "render", "moveable-options", "can-select"])),
|
|
3601
|
+
}, null, 8, ["runtime-url", "auto-scroll-into-view", "render", "moveable-options", "can-select"])),
|
|
3598
3602
|
renderSlot(_ctx.$slots, "workspace-content"),
|
|
3599
3603
|
createVNode(_component_page_bar, null, {
|
|
3600
3604
|
"page-bar-title": withCtx(({ page }) => [
|
|
@@ -3771,6 +3775,7 @@ const _sfc_main = defineComponent({
|
|
|
3771
3775
|
type: Function
|
|
3772
3776
|
},
|
|
3773
3777
|
runtimeUrl: String,
|
|
3778
|
+
autoScrollIntoView: Boolean,
|
|
3774
3779
|
propsConfigs: {
|
|
3775
3780
|
type: Object,
|
|
3776
3781
|
default: () => ({})
|
|
@@ -3871,6 +3876,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3871
3876
|
renderSlot(_ctx.$slots, "workspace", {}, () => [
|
|
3872
3877
|
createVNode(_component_workspace, {
|
|
3873
3878
|
"runtime-url": _ctx.runtimeUrl,
|
|
3879
|
+
"auto-scroll-into-view": _ctx.autoScrollIntoView,
|
|
3874
3880
|
render: _ctx.render,
|
|
3875
3881
|
"moveable-options": _ctx.moveableOptions,
|
|
3876
3882
|
"can-select": _ctx.canSelect
|
|
@@ -3885,7 +3891,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3885
3891
|
renderSlot(_ctx.$slots, "page-bar-popover", { page })
|
|
3886
3892
|
]),
|
|
3887
3893
|
_: 3
|
|
3888
|
-
}, 8, ["runtime-url", "render", "moveable-options", "can-select"])
|
|
3894
|
+
}, 8, ["runtime-url", "auto-scroll-into-view", "render", "moveable-options", "can-select"])
|
|
3889
3895
|
])
|
|
3890
3896
|
]),
|
|
3891
3897
|
propsPanel: withCtx(() => [
|