@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
|
@@ -3331,6 +3331,7 @@
|
|
|
3331
3331
|
type: Function
|
|
3332
3332
|
},
|
|
3333
3333
|
runtimeUrl: String,
|
|
3334
|
+
autoScrollIntoView: Boolean,
|
|
3334
3335
|
canSelect: {
|
|
3335
3336
|
type: Function,
|
|
3336
3337
|
default: (el) => Boolean(el.id)
|
|
@@ -3366,6 +3367,7 @@
|
|
|
3366
3367
|
render: props.render,
|
|
3367
3368
|
runtimeUrl: props.runtimeUrl,
|
|
3368
3369
|
zoom: zoom.value,
|
|
3370
|
+
autoScrollIntoView: props.autoScrollIntoView,
|
|
3369
3371
|
canSelect: (el, event, stop) => {
|
|
3370
3372
|
const elCanSelect = props.canSelect(el);
|
|
3371
3373
|
if (uiSelectMode.value && elCanSelect && event.type === "mousedown") {
|
|
@@ -3503,6 +3505,7 @@
|
|
|
3503
3505
|
},
|
|
3504
3506
|
props: {
|
|
3505
3507
|
runtimeUrl: String,
|
|
3508
|
+
autoScrollIntoView: Boolean,
|
|
3506
3509
|
render: {
|
|
3507
3510
|
type: Function
|
|
3508
3511
|
},
|
|
@@ -3609,10 +3612,11 @@
|
|
|
3609
3612
|
(vue.openBlock(), vue.createBlock(_component_magic_stage, {
|
|
3610
3613
|
key: _ctx.page?.id,
|
|
3611
3614
|
"runtime-url": _ctx.runtimeUrl,
|
|
3615
|
+
"auto-scroll-into-view": _ctx.autoScrollIntoView,
|
|
3612
3616
|
render: _ctx.render,
|
|
3613
3617
|
"moveable-options": _ctx.moveableOptions,
|
|
3614
3618
|
"can-select": _ctx.canSelect
|
|
3615
|
-
}, null, 8, ["runtime-url", "render", "moveable-options", "can-select"])),
|
|
3619
|
+
}, null, 8, ["runtime-url", "auto-scroll-into-view", "render", "moveable-options", "can-select"])),
|
|
3616
3620
|
vue.renderSlot(_ctx.$slots, "workspace-content"),
|
|
3617
3621
|
vue.createVNode(_component_page_bar, null, {
|
|
3618
3622
|
"page-bar-title": vue.withCtx(({ page }) => [
|
|
@@ -3789,6 +3793,7 @@
|
|
|
3789
3793
|
type: Function
|
|
3790
3794
|
},
|
|
3791
3795
|
runtimeUrl: String,
|
|
3796
|
+
autoScrollIntoView: Boolean,
|
|
3792
3797
|
propsConfigs: {
|
|
3793
3798
|
type: Object,
|
|
3794
3799
|
default: () => ({})
|
|
@@ -3889,6 +3894,7 @@
|
|
|
3889
3894
|
vue.renderSlot(_ctx.$slots, "workspace", {}, () => [
|
|
3890
3895
|
vue.createVNode(_component_workspace, {
|
|
3891
3896
|
"runtime-url": _ctx.runtimeUrl,
|
|
3897
|
+
"auto-scroll-into-view": _ctx.autoScrollIntoView,
|
|
3892
3898
|
render: _ctx.render,
|
|
3893
3899
|
"moveable-options": _ctx.moveableOptions,
|
|
3894
3900
|
"can-select": _ctx.canSelect
|
|
@@ -3903,7 +3909,7 @@
|
|
|
3903
3909
|
vue.renderSlot(_ctx.$slots, "page-bar-popover", { page })
|
|
3904
3910
|
]),
|
|
3905
3911
|
_: 3
|
|
3906
|
-
}, 8, ["runtime-url", "render", "moveable-options", "can-select"])
|
|
3912
|
+
}, 8, ["runtime-url", "auto-scroll-into-view", "render", "moveable-options", "can-select"])
|
|
3907
3913
|
])
|
|
3908
3914
|
]),
|
|
3909
3915
|
propsPanel: vue.withCtx(() => [
|