@univerjs-pro/boards-ui 1.0.0-alpha.8 → 1.0.0-beta.1
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/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/shape-preset-labels-C4G0G9GI.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/facade.js +1 -0
- package/lib/index.css +31 -117
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/shape-preset-labels-092BdVw3.js +1 -1
- package/lib/types/commands/commands/analyze-board-rendered-layout.command.d.ts +9 -0
- package/lib/types/commands/commands/capture-board-screenshot.command.d.ts +7 -0
- package/lib/types/commands/operations/board-chart-dialog.operation.d.ts +2 -2
- package/lib/types/commands/operations/board-pointer.operation.d.ts +8 -0
- package/lib/types/commands/operations/board-selection.operation.d.ts +4 -2
- package/lib/types/commands/operations/board-ui-control.operation.d.ts +30 -0
- package/lib/types/common/board-shortcuts.d.ts +1 -3
- package/lib/types/common/shape-presets.d.ts +4 -0
- package/lib/types/config/config.d.ts +29 -6
- package/lib/types/const.d.ts +2 -0
- package/lib/types/controllers/board-clipboard-shortcut.controller.d.ts +2 -21
- package/lib/types/controllers/board-connector-interaction.render-controller.d.ts +9 -3
- package/lib/types/controllers/board-element-selection.controller.d.ts +4 -1
- package/lib/types/controllers/board-element-transform.controller.d.ts +12 -1
- package/lib/types/controllers/board-element-transformer-config.util.d.ts +1 -0
- package/lib/types/controllers/board-grouping-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-history-shortcut.controller.d.ts +2 -8
- package/lib/types/controllers/board-layout-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-order-shortcut.controller.d.ts +2 -10
- package/lib/types/controllers/board-render.controller.d.ts +6 -3
- package/lib/types/controllers/board-selection-overlay.render-controller.d.ts +1 -0
- package/lib/types/controllers/board-selection-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-settings-shortcut.controller.d.ts +2 -14
- package/lib/types/controllers/board-swimlane-lane-shortcut.controller.d.ts +5 -17
- package/lib/types/controllers/board-text-editing.render-controller.d.ts +3 -1
- package/lib/types/controllers/board-tool-shortcut.controller.d.ts +5 -16
- package/lib/types/controllers/board-unit-presence.controller.d.ts +6 -0
- package/lib/types/controllers/board-unit-presence.render-controller.d.ts +37 -0
- package/lib/types/controllers/board-view-shortcut.controller.d.ts +2 -23
- package/lib/types/controllers/board-viewport-bar.render-controller.d.ts +41 -0
- package/lib/types/facade/f-board-layout.d.ts +51 -0
- package/lib/types/facade/f-board-ui.d.ts +19 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +15 -4
- package/lib/types/locale/en-US.d.ts +1 -35
- package/lib/types/plugin.d.ts +6 -0
- package/lib/types/render-adapters/board-element-render-adapter.d.ts +13 -3
- package/lib/types/render-objects/board-connector-object.d.ts +42 -5
- package/lib/types/render-objects/board-element-render-layer.d.ts +65 -0
- package/lib/types/render-objects/board-viewport-bar-object.d.ts +33 -0
- package/lib/types/services/board-canvas-pop-manager.service.d.ts +3 -1
- package/lib/types/services/board-clipboard.service.d.ts +10 -3
- package/lib/types/services/board-element-edit.service.d.ts +2 -0
- package/lib/types/services/board-embed-integration.service.d.ts +9 -0
- package/lib/types/services/board-find.service.d.ts +1 -0
- package/lib/types/services/board-image-insert.service.d.ts +3 -1
- package/lib/types/services/board-pointer-state.service.d.ts +21 -0
- package/lib/types/services/board-screenshot.service.d.ts +38 -0
- package/lib/types/services/board-selection.service.d.ts +5 -1
- package/lib/types/services/board-settings.service.d.ts +3 -5
- package/lib/types/services/board-shortcut-runtime.service.d.ts +32 -0
- package/lib/types/services/board-text-editing.service.d.ts +9 -4
- package/lib/types/services/board-tool.service.d.ts +0 -1
- package/lib/types/services/board-ui-state.service.d.ts +2 -1
- package/lib/types/services/board-unit-presence-ui-adapter.service.d.ts +32 -0
- package/lib/types/services/board-viewport.service.d.ts +6 -2
- package/lib/types/utils/board-alignment-guides.util.d.ts +2 -0
- package/lib/types/utils/board-connector-hit-test.util.d.ts +2 -0
- package/lib/types/utils/board-connector-marker-anchor.util.d.ts +0 -1
- package/lib/types/utils/board-connector-marker.util.d.ts +21 -0
- package/lib/types/utils/board-connector-quick-connect.util.d.ts +1 -0
- package/lib/types/utils/board-connector-render-bounds.util.d.ts +0 -1
- package/lib/types/utils/board-connector-render-geometry.util.d.ts +33 -0
- package/lib/types/utils/board-connector-router.util.d.ts +1 -0
- package/lib/types/utils/board-connector-routing.util.d.ts +30 -2
- package/lib/types/utils/board-container-spatial-index.util.d.ts +2 -0
- package/lib/types/utils/board-floating-toolbar-selection.util.d.ts +22 -1
- package/lib/types/utils/board-guide-candidates.util.d.ts +13 -0
- package/lib/types/utils/board-page-background-image.util.d.ts +15 -0
- package/lib/types/utils/board-render-page.util.d.ts +10 -5
- package/lib/types/utils/board-selection-geometry.util.d.ts +4 -1
- package/lib/types/utils/board-selection-hit-test.util.d.ts +2 -0
- package/lib/types/utils/board-selection-interaction.util.d.ts +2 -1
- package/lib/types/utils/board-shortcut-preconditions.util.d.ts +4 -2
- package/lib/types/utils/board-snap-session.util.d.ts +2 -43
- package/lib/types/utils/board-spacing-guides.util.d.ts +2 -0
- package/lib/types/utils/board-viewport-bar.util.d.ts +55 -0
- package/lib/types/utils/board-viewport.util.d.ts +7 -0
- package/lib/types/views/BoardConnectorFloatingToolbar.d.ts +0 -4
- package/lib/types/views/BoardConnectorFloatingToolbarControls.d.ts +41 -0
- package/lib/types/views/BoardFloatingToolPanel.d.ts +1 -0
- package/lib/types/views/BoardPageBackgroundView.d.ts +8 -0
- package/lib/types/views/BoardRenamePopup.d.ts +7 -0
- package/lib/types/views/BoardSettingsMenu.d.ts +15 -0
- package/lib/types/views/BoardShapeFloatingToolbar.d.ts +2 -3
- package/lib/types/views/board-shape-floating-toolbar/BoardSwimlaneToolbarMenu.d.ts +12 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +29 -20
- package/lib/types/common/settings-actions.d.ts +0 -26
- package/lib/types/controllers/board-mermaid-import.controller.d.ts +0 -9
- package/lib/types/services/board-mermaid-import.service.d.ts +0 -81
- package/lib/types/services/board-settings-action.service.d.ts +0 -21
- package/lib/types/utils/board-draft-insert-position.util.d.ts +0 -13
- package/lib/types/utils/board-mermaid-preview.util.d.ts +0 -4
- package/lib/types/views/BoardContainerRenamePopup.d.ts +0 -6
- package/lib/types/views/BoardMermaidImportDialog.d.ts +0 -1
- package/lib/types/views/BoardSwimlaneLaneRenamePopup.d.ts +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2c40(_0x307539,_0x39234d){_0x307539=_0x307539-0x1bc;const _0x36649e=_0x3664();let _0x2c4013=_0x36649e[_0x307539];return _0x2c4013;}function _0x3664(){const _0x4cddf0=['Magnetic\x20drum','Internal\x20storage','U-turn\x20arrow','Chart\x20star','3037376mbgapr','12-point\x20star','Home\x20button','Back\x20or\x20previous\x20button','Up\x20arrow\x20callout','Circular\x20arrow','Collate','Bracket\x20pair','Decagon','4-point\x20star','Alternate\x20process','Up\x20arrow','Multiply','Predefined\x20process','Pie\x20wedge','Heptagon','Explosion\x202','Vertical\x20scroll','Help\x20button','Notched\x20right\x20arrow','Offline\x20storage','2356221eDXCWk','Document\x20button','Dodecagon','Same-side\x20round\x20corner\x20rectangle','Accent\x20callout\x201','Diagonal\x20round\x20corner\x20rectangle','Diagonal\x20snip\x20corner\x20rectangle','Blank\x20button','Teardrop','10DIWNgP','Extract','673487GqEQaW','2EKNppN','Smiley\x20face','14342481MUsZXH','10-point\x20star','Process','6-point\x20star','Ellipse\x20ribbon\x202','Left-up\x20arrow','Accent\x20border\x20callout\x203','Left\x20bracket','Preparation','Delay','No\x20symbol','Movie\x20button','Chart\x20X','Connector','Ellipse\x20ribbon','Cloud\x20callout','Sort','Half\x20frame','Bent-up\x20arrow','Snip\x20and\x20round\x20corner\x20rectangle','102252JLIQAb','Summing\x20junction','Gear\x206','Wave','Moon','Border\x20callout\x202','Arc','Not\x20equal','Accent\x20border\x20callout\x201','1680774SbFjEC','Beginning\x20button','Border\x20callout\x201','Minus','Display','Input/output','Inverse\x20line','Left-right\x20circular\x20arrow','Right\x20bracket','Information\x20button','25MQeqHE','Diagonal\x20stripe','Single\x20snip\x20corner\x20rectangle','Forward\x20or\x20next\x20button','Merge','Accent\x20callout\x202','Corner\x20tabs','Swoosh\x20arrow','Folded\x20corner','Decision','Document','1669732VjOtzs','Callout\x202','Single\x20round\x20corner\x20rectangle','Magnetic\x20tape','Online\x20storage','Four-way\x20arrow','Chord','Punched\x20tape','Callout\x201','Off-page\x20connector','Sound\x20button','Terminator','Double\x20wave','Four-way\x20arrow\x20callout','Same-side\x20snip\x20corner\x20rectangle','Chart\x20plus','Down\x20arrow','Ribbon\x202','Punched\x20card','Manual\x20input','Right\x20arrow\x20callout','Curved\x20down\x20arrow','Up-down\x20arrow\x20callout','End\x20button','Bent\x20arrow','7-point\x20star','Left\x20arrow\x20callout','Heart','Funnel','Explosion\x201','Frame'];_0x3664=function(){return _0x4cddf0;};return _0x3664();}const _0x11e647=_0x2c40;(function(_0x59e30f,_0x2454c1){const _0x183508=_0x2c40,_0x46c2ae=_0x59e30f();while(!![]){try{const _0x4e313e=-parseInt(_0x183508(0x22e))/0x1+-parseInt(_0x183508(0x22f))/0x2*(parseInt(_0x183508(0x1d6))/0x3)+parseInt(_0x183508(0x1eb))/0x4+parseInt(_0x183508(0x1e0))/0x5*(-parseInt(_0x183508(0x1cd))/0x6)+parseInt(_0x183508(0x223))/0x7+-parseInt(_0x183508(0x20e))/0x8+-parseInt(_0x183508(0x231))/0x9*(-parseInt(_0x183508(0x22c))/0xa);if(_0x4e313e===_0x2454c1)break;else _0x46c2ae['push'](_0x46c2ae['shift']());}catch(_0x515067){_0x46c2ae['push'](_0x46c2ae['shift']());}}}(_0x3664,0x9e73a));const e={'snip1Rect':_0x11e647(0x1e2),'snip2SameRect':_0x11e647(0x1f9),'snip2DiagRect':_0x11e647(0x229),'snipRoundRect':_0x11e647(0x1cc),'round1Rect':_0x11e647(0x1ed),'round2SameRect':_0x11e647(0x226),'round2DiagRect':_0x11e647(0x228),'heptagon':_0x11e647(0x21d),'decagon':_0x11e647(0x216),'dodecagon':_0x11e647(0x225),'pie':'Pie','chord':_0x11e647(0x1f1),'teardrop':_0x11e647(0x22b),'frame':_0x11e647(0x209),'halfFrame':_0x11e647(0x1ca),'corner':'Corner','diagStripe':_0x11e647(0x1e1),'plaque':'Plaque','cube':'Cube','bevel':'Bevel','donut':'Donut','noSmoking':_0x11e647(0x1c3),'blockArc':'Block\x20arc','foldedCorner':_0x11e647(0x1e8),'smileyFace':_0x11e647(0x230),'heart':_0x11e647(0x206),'lightningBolt':'Lightning\x20bolt','sun':'Sun','moon':_0x11e647(0x1d1),'arc':_0x11e647(0x1d3),'bracketPair':_0x11e647(0x215),'bracePair':'Brace\x20pair','leftBracket':_0x11e647(0x1c0),'rightBracket':_0x11e647(0x1de),'upArrow':_0x11e647(0x219),'downArrow':_0x11e647(0x1fb),'upDownArrow':'Up-down\x20arrow','quadArrow':_0x11e647(0x1f0),'leftRightUpArrow':'Left-right-up\x20arrow','bentArrow':_0x11e647(0x203),'uturnArrow':_0x11e647(0x20c),'leftUpArrow':_0x11e647(0x1be),'bentUpArrow':_0x11e647(0x1cb),'curvedRightArrow':'Curved\x20right\x20arrow','curvedLeftArrow':'Curved\x20left\x20arrow','curvedUpArrow':'Curved\x20up\x20arrow','curvedDownArrow':_0x11e647(0x200),'stripedRightArrow':'Striped\x20right\x20arrow','notchedRightArrow':_0x11e647(0x221),'rightArrowCallout':_0x11e647(0x1ff),'downArrowCallout':'Down\x20arrow\x20callout','leftArrowCallout':_0x11e647(0x205),'upArrowCallout':_0x11e647(0x212),'leftRightArrowCallout':'Left-right\x20arrow\x20callout','quadArrowCallout':_0x11e647(0x1f8),'circularArrow':_0x11e647(0x213),'mathMinus':_0x11e647(0x1d9),'mathMultiply':_0x11e647(0x21a),'mathDivide':'Divide','mathEqual':'Equal','mathNotEqual':_0x11e647(0x1d4),'flowChartProcess':_0x11e647(0x233),'flowChartAlternateProcess':_0x11e647(0x218),'flowChartDecision':_0x11e647(0x1e9),'flowChartInputOutput':_0x11e647(0x1db),'flowChartPredefinedProcess':_0x11e647(0x21b),'flowChartInternalStorage':_0x11e647(0x20b),'flowChartDocument':_0x11e647(0x1ea),'flowChartMultidocument':'Multiple\x20documents','flowChartTerminator':_0x11e647(0x1f6),'flowChartPreparation':_0x11e647(0x1c1),'flowChartManualInput':_0x11e647(0x1fe),'flowChartManualOperation':'Manual\x20operation','flowChartConnector':_0x11e647(0x1c6),'flowChartOffpageConnector':_0x11e647(0x1f4),'flowChartPunchedCard':_0x11e647(0x1fd),'flowChartPunchedTape':_0x11e647(0x1f2),'flowChartSummingJunction':_0x11e647(0x1ce),'flowChartOr':'Or','flowChartCollate':_0x11e647(0x214),'flowChartSort':_0x11e647(0x1c9),'flowChartExtract':_0x11e647(0x22d),'flowChartMerge':_0x11e647(0x1e4),'flowChartOnlineStorage':_0x11e647(0x1ef),'flowChartDelay':_0x11e647(0x1c2),'flowChartMagneticTape':_0x11e647(0x1ee),'flowChartMagneticDisk':'Magnetic\x20disk','flowChartMagneticDrum':_0x11e647(0x20a),'flowChartDisplay':_0x11e647(0x1da),'irregularSeal1':_0x11e647(0x208),'irregularSeal2':_0x11e647(0x21e),'star4':_0x11e647(0x217),'star6':_0x11e647(0x1bc),'star7':_0x11e647(0x204),'star8':'8-point\x20star','star10':_0x11e647(0x232),'star12':_0x11e647(0x20f),'star16':'16-point\x20star','star24':'24-point\x20star','star32':'32-point\x20star','ribbon2':_0x11e647(0x1fc),'ribbon':'Ribbon','ellipseRibbon2':_0x11e647(0x1bd),'ellipseRibbon':_0x11e647(0x1c7),'verticalScroll':_0x11e647(0x21f),'horizontalScroll':'Horizontal\x20scroll','wave':_0x11e647(0x1d0),'doubleWave':_0x11e647(0x1f7),'wedgeRectCallout':'Rectangular\x20callout','cloudCallout':_0x11e647(0x1c8),'borderCallout1':_0x11e647(0x1d8),'borderCallout2':_0x11e647(0x1d2),'borderCallout3':'Border\x20callout\x203','accentCallout1':_0x11e647(0x227),'accentCallout2':_0x11e647(0x1e5),'accentCallout3':'Accent\x20callout\x203','callout1':_0x11e647(0x1f3),'callout2':_0x11e647(0x1ec),'callout3':'Callout\x203','accentBorderCallout1':_0x11e647(0x1d5),'accentBorderCallout2':'Accent\x20border\x20callout\x202','accentBorderCallout3':_0x11e647(0x1bf),'leftCircularArrow':'Left\x20circular\x20arrow','leftRightCircularArrow':_0x11e647(0x1dd),'swooshArrow':_0x11e647(0x1e7),'leftRightRibbon':'Left-right\x20ribbon','pieWedge':_0x11e647(0x21c),'funnel':_0x11e647(0x207),'gear6':_0x11e647(0x1cf),'gear9':'Gear\x209','cornerTabs':_0x11e647(0x1e6),'actionButtonBackPrevious':_0x11e647(0x211),'actionButtonForwardNext':_0x11e647(0x1e3),'actionButtonBeginning':_0x11e647(0x1d7),'actionButtonEnd':_0x11e647(0x202),'actionButtonHome':_0x11e647(0x210),'actionButtonInformation':_0x11e647(0x1df),'actionButtonReturn':'Return\x20button','actionButtonMovie':_0x11e647(0x1c4),'actionButtonDocument':_0x11e647(0x224),'actionButtonSound':_0x11e647(0x1f5),'actionButtonHelp':_0x11e647(0x220),'actionButtonBlank':_0x11e647(0x22a),'chartPlus':_0x11e647(0x1fa),'chartStar':_0x11e647(0x20d),'chartX':_0x11e647(0x1c5),'flowChartOfflineStorage':_0x11e647(0x222),'lineInv':_0x11e647(0x1dc),'plaqueTabs':'Plaque\x20tabs','squareTabs':'Square\x20tabs','upDownArrowCallout':_0x11e647(0x201)};export{e as t};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IBoardElementData, IBoardLayoutAnalysisResult } from '@univerjs-pro/boards';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
export interface IAnalyzeBoardRenderedLayoutCommandParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
focusPadding?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function analyzeBoardRenderedLayout(unitId: string, elementData: Readonly<Record<string, IBoardElementData>>, elementOrder: readonly string[], resolveRenderObject: (objectKey: string) => unknown, focusPadding?: number): IBoardLayoutAnalysisResult;
|
|
9
|
+
export declare const AnalyzeBoardRenderedLayoutCommand: ICommand<IAnalyzeBoardRenderedLayoutCommandParams, IBoardLayoutAnalysisResult | false>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ICommand } from '@univerjs/core';
|
|
2
|
+
import type { IBoardScreenshotOptions, IBoardScreenshotResult } from '../../services/board-screenshot.service';
|
|
3
|
+
export interface ICaptureBoardScreenshotCommandParams extends IBoardScreenshotOptions {
|
|
4
|
+
subUnitId: string;
|
|
5
|
+
unitId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CaptureBoardScreenshotCommand: ICommand<ICaptureBoardScreenshotCommandParams, IBoardScreenshotResult | false>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IInsertBoardChartCommandParams } from '@univerjs-pro/boards';
|
|
2
2
|
import type { ICommand } from '@univerjs/core';
|
|
3
3
|
export declare const BOARD_INSERT_CHART_PANEL_COMPONENT = "board-chart.insert-panel";
|
|
4
4
|
export declare const BOARD_INSERT_CHART_DIALOG_ID = "board.insert-chart.dialog";
|
|
5
|
-
export type IOpenBoardInsertChartDialogOperationParams = Omit<
|
|
5
|
+
export type IOpenBoardInsertChartDialogOperationParams = Omit<IInsertBoardChartCommandParams, 'options'>;
|
|
6
6
|
export declare const OpenBoardInsertChartDialogOperation: ICommand<IOpenBoardInsertChartDialogOperationParams>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { IBoardViewportPoint } from '../../utils/board-viewport.util';
|
|
3
|
+
export interface ISetBoardPointerOperationParams {
|
|
4
|
+
unitId: string;
|
|
5
|
+
subUnitId: string;
|
|
6
|
+
pointer: IBoardViewportPoint | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const SetBoardPointerOperation: IOperation<ISetBoardPointerOperationParams>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { BoardModel } from '@univerjs-pro/boards';
|
|
2
|
-
import type { IAccessor, ICommand } from '@univerjs/core';
|
|
2
|
+
import type { IAccessor, ICommand, IExecutionOptions } from '@univerjs/core';
|
|
3
3
|
import type { IBoardSelectionContext } from '../../services/board-element-state.service';
|
|
4
|
+
import type { BoardShortcutRuntimeService } from '../../services/board-shortcut-runtime.service';
|
|
4
5
|
import { Direction } from '@univerjs/core';
|
|
5
6
|
interface IBoardSelectionOperationContext {
|
|
6
7
|
boardModel: BoardModel;
|
|
8
|
+
runtime: BoardShortcutRuntimeService | null;
|
|
7
9
|
selectionContext: IBoardSelectionContext;
|
|
8
10
|
selectedIds: string[];
|
|
9
11
|
}
|
|
@@ -16,5 +18,5 @@ export declare const BoardDeleteSelectionOperation: ICommand;
|
|
|
16
18
|
export declare const BoardCutSelectionOperation: ICommand;
|
|
17
19
|
export declare const BoardNudgeSelectionOperation: ICommand<IBoardNudgeSelectionOperationParams>;
|
|
18
20
|
export declare const BOARD_SELECTION_OPERATIONS: ICommand<object, boolean>[];
|
|
19
|
-
export declare function resolveBoardSelectionOperationContext(accessor: IAccessor): IBoardSelectionOperationContext | null;
|
|
21
|
+
export declare function resolveBoardSelectionOperationContext(accessor: IAccessor, options?: IExecutionOptions): IBoardSelectionOperationContext | null;
|
|
20
22
|
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IOperation } from '@univerjs/core';
|
|
2
|
+
import type { IBoardSettings } from '../../config/config';
|
|
3
|
+
import type { IBoardElementFindResult } from '../../utils/board-find.util';
|
|
4
|
+
import type { IBoardViewportPoint } from '../../utils/board-viewport.util';
|
|
5
|
+
export interface IBoardUIFacadeOperationParams {
|
|
6
|
+
unitId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ISetBoardSettingsOperationParams extends IBoardUIFacadeOperationParams {
|
|
9
|
+
settings: Partial<IBoardSettings>;
|
|
10
|
+
}
|
|
11
|
+
export interface IFindBoardElementsByTextOperationParams extends IBoardUIFacadeOperationParams {
|
|
12
|
+
query: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IFocusBoardElementOperationParams extends IBoardUIFacadeOperationParams {
|
|
15
|
+
elementId: string;
|
|
16
|
+
viewportPoint: IBoardViewportPoint;
|
|
17
|
+
}
|
|
18
|
+
export interface IGetBoardElementViewportPointOperationParams extends IBoardUIFacadeOperationParams {
|
|
19
|
+
elementId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ISetBoardObjectListPanelOpenOperationParams extends IBoardUIFacadeOperationParams {
|
|
22
|
+
open: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const GetBoardSettingsOperation: IOperation<IBoardUIFacadeOperationParams, Required<IBoardSettings>>;
|
|
25
|
+
export declare const SetBoardSettingsOperation: IOperation<ISetBoardSettingsOperationParams>;
|
|
26
|
+
export declare const GetBoardObjectListPanelOpenOperation: IOperation<IBoardUIFacadeOperationParams, boolean>;
|
|
27
|
+
export declare const SetBoardObjectListPanelOpenOperation: IOperation<ISetBoardObjectListPanelOpenOperationParams>;
|
|
28
|
+
export declare const FindBoardElementsByTextOperation: IOperation<IFindBoardElementsByTextOperationParams, IBoardElementFindResult[]>;
|
|
29
|
+
export declare const GetBoardElementViewportPointOperation: IOperation<IGetBoardElementViewportPointOperationParams, IBoardViewportPoint | null>;
|
|
30
|
+
export declare const FocusBoardElementOperation: IOperation<IFocusBoardElementOperationParams>;
|
|
@@ -16,7 +16,7 @@ export type BoardSwimlaneLaneShortcutAction = 'rename' | 'toggleCollapsed' | 'mo
|
|
|
16
16
|
export type BoardSelectionShortcutAction = 'selectAll' | 'delete';
|
|
17
17
|
export type BoardHistoryShortcutAction = 'undo' | 'redo';
|
|
18
18
|
export type BoardClipboardShortcutAction = 'copy' | 'copyAsImage' | 'paste' | 'cut' | 'makeCopy' | 'copyStyle' | 'pasteStyle';
|
|
19
|
-
export type BoardGroupingShortcutAction = '
|
|
19
|
+
export type BoardGroupingShortcutAction = 'selectShapesToGroup' | 'selectUpperLayerGroups';
|
|
20
20
|
export type BoardOrderShortcutAction = 'bringToFront' | 'sendToBack';
|
|
21
21
|
export type BoardLayoutShortcutAction = 'flipHorizontal' | 'flipVertical' | 'alignLeft' | 'alignRight' | 'alignTop' | 'alignBottom' | 'alignMiddle' | 'alignCenter' | 'distributeHorizontally' | 'distributeVertically';
|
|
22
22
|
export declare const BOARD_SHORTCUT_BINDINGS: {
|
|
@@ -51,8 +51,6 @@ export declare const BOARD_SHORTCUT_BINDINGS: {
|
|
|
51
51
|
readonly toggleQuickAdd: number;
|
|
52
52
|
readonly hideCollaboratorsCursors: number;
|
|
53
53
|
readonly toggleToolbar: number;
|
|
54
|
-
readonly group: number;
|
|
55
|
-
readonly ungroup: number;
|
|
56
54
|
readonly bringToFront: number;
|
|
57
55
|
readonly sendToBack: number;
|
|
58
56
|
readonly selectUpperLayerGroups: number;
|
|
@@ -36,6 +36,10 @@ export interface IBoardShapePreset {
|
|
|
36
36
|
height?: number;
|
|
37
37
|
icon: BoardShapeIcon;
|
|
38
38
|
}
|
|
39
|
+
export declare function resolveBoardShapePresetInsertSize(preset: IBoardShapePreset): {
|
|
40
|
+
width?: number;
|
|
41
|
+
height?: number;
|
|
42
|
+
} | undefined;
|
|
39
43
|
export declare function resolveBoardShapePresetIcon(iconManager: IBoardShapeIconManager, icon: BoardShapeIcon): BoardShapeIconComponent | undefined;
|
|
40
44
|
export declare const BOARD_BASIC_SHAPE_CATEGORY_KEY: LocaleKey;
|
|
41
45
|
export declare const BOARD_SHAPE_PRESETS: IBoardShapePreset[];
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import type { BoardToolType, IBoardPageSize
|
|
2
|
-
import type { BoardSettingsActionConfig, BoardSettingsActionType } from '../common/settings-actions';
|
|
1
|
+
import type { BoardToolType, IBoardPageSize } from '@univerjs-pro/boards';
|
|
3
2
|
import type { IBoardShapePreset } from '../common/shape-presets';
|
|
4
3
|
import type { IBoardElementRenderAdapter } from '../render-adapters/board-element-render-adapter';
|
|
5
4
|
export declare const BOARDS_UI_PLUGIN_CONFIG_KEY = "boards-ui.config";
|
|
6
5
|
export declare const configSymbol: unique symbol;
|
|
6
|
+
export interface IBoardSettings {
|
|
7
|
+
collaboratorCursorsVisible?: boolean;
|
|
8
|
+
/** Interval in milliseconds between shared collaborator pointer samples. @default 100 */
|
|
9
|
+
collaboratorCursorShareInterval?: number;
|
|
10
|
+
gridVisible?: boolean;
|
|
11
|
+
quickAddEnabled?: boolean;
|
|
12
|
+
preciseSelection?: boolean;
|
|
13
|
+
showDimensions?: boolean;
|
|
14
|
+
showToolbar?: boolean;
|
|
15
|
+
viewportBarEnabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_BOARD_COLLABORATOR_CURSOR_SHARE_INTERVAL = 100;
|
|
18
|
+
export declare const DEFAULT_BOARD_SETTINGS: Required<IBoardSettings>;
|
|
19
|
+
export declare function resolveBoardCollaboratorCursorShareInterval(value: unknown): number;
|
|
7
20
|
export type BoardToolbarToolConfig = boolean | {
|
|
8
21
|
enabled?: boolean;
|
|
9
22
|
};
|
|
@@ -65,20 +78,30 @@ export interface IBoardStickyConfig {
|
|
|
65
78
|
export interface IBoardRenderSceneConfig {
|
|
66
79
|
minSize?: IBoardPageSize;
|
|
67
80
|
}
|
|
68
|
-
export interface
|
|
81
|
+
export interface IBoardViewportBarPadding {
|
|
82
|
+
bottom?: number;
|
|
83
|
+
left?: number;
|
|
84
|
+
right?: number;
|
|
85
|
+
top?: number;
|
|
86
|
+
}
|
|
87
|
+
export interface IBoardViewportBarConfig {
|
|
88
|
+
enabled?: boolean;
|
|
89
|
+
horizontal?: boolean;
|
|
90
|
+
padding?: number | IBoardViewportBarPadding;
|
|
91
|
+
vertical?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface IUniverBoardsUIConfig extends Omit<IBoardSettings, 'viewportBarEnabled'> {
|
|
69
94
|
additionalRenderAdapters?: readonly IBoardElementRenderAdapter[];
|
|
70
95
|
grid?: IBoardGridConfig;
|
|
71
96
|
insert?: IBoardInsertConfig;
|
|
72
97
|
interaction?: IBoardInteractionConfig;
|
|
73
98
|
renderAdapters?: readonly IBoardElementRenderAdapter[];
|
|
74
|
-
settingsMenu?: {
|
|
75
|
-
actions?: Partial<Record<BoardSettingsActionType, BoardSettingsActionConfig>>;
|
|
76
|
-
};
|
|
77
99
|
shape?: IBoardShapeConfig;
|
|
78
100
|
sticky?: IBoardStickyConfig;
|
|
79
101
|
toolbar?: {
|
|
80
102
|
tools?: Partial<Record<BoardToolType, BoardToolbarToolConfig>>;
|
|
81
103
|
};
|
|
104
|
+
viewportBar?: IBoardViewportBarConfig;
|
|
82
105
|
scene?: IBoardRenderSceneConfig;
|
|
83
106
|
workbench?: {
|
|
84
107
|
content?: boolean;
|
package/lib/types/const.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const BOARD_RENDER_LAYER_INDEX: {
|
|
|
13
13
|
readonly connectorAffordance: 5;
|
|
14
14
|
readonly connectorHandle: 6;
|
|
15
15
|
readonly connectorSnap: 7;
|
|
16
|
+
readonly viewportBar: 8;
|
|
16
17
|
};
|
|
17
18
|
export declare const BOARD_RENDER_OBJECT_Z_INDEX: {
|
|
18
19
|
readonly background: -1;
|
|
@@ -25,4 +26,5 @@ export declare const BOARD_RENDER_OBJECT_Z_INDEX: {
|
|
|
25
26
|
readonly transientEditHandle: 10003;
|
|
26
27
|
readonly transientSnap: 10004;
|
|
27
28
|
readonly transientResize: 10005;
|
|
29
|
+
readonly transientNavigation: 10006;
|
|
28
30
|
};
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IConfigService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
4
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import { BoardClipboardService } from '../services/board-clipboard.service';
|
|
6
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
7
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
9
3
|
export declare const BOARD_CLIPBOARD_SHORTCUT_OPERATION_ID = "board.operation.clipboard-shortcut";
|
|
10
4
|
export declare class BoardClipboardShortcutController extends RxDisposable {
|
|
11
|
-
private readonly _instanceService;
|
|
12
|
-
private readonly _configService;
|
|
13
|
-
private readonly _renderManagerService;
|
|
14
|
-
private readonly _elementStateService;
|
|
15
|
-
private readonly _stateService;
|
|
16
|
-
private readonly _clipboardService;
|
|
17
|
-
private readonly _elementEditService;
|
|
18
5
|
private readonly _commandService;
|
|
19
6
|
private readonly _shortcutService;
|
|
20
|
-
|
|
21
|
-
constructor(_instanceService: IUniverInstanceService, _configService: IConfigService, _renderManagerService: IRenderManagerService, _elementStateService: IBoardElementStateService, _stateService: IBoardUIStateService, _clipboardService: BoardClipboardService, _elementEditService: BoardElementEditService, _commandService: ICommandService, _shortcutService: IShortcutService, _boardElementService: IBoardElementService);
|
|
22
|
-
private _init;
|
|
23
|
-
private _createClipboardShortcutOperation;
|
|
24
|
-
private _createShortcutItem;
|
|
25
|
-
private _handleShortcut;
|
|
26
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
27
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
|
-
import { ICommandService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
3
1
|
import type { UnitModel } from '@univerjs/core';
|
|
4
2
|
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
4
|
+
import { ICommandService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
5
5
|
import { BoardCanvasPopManagerService } from '../services/board-canvas-pop-manager.service';
|
|
6
6
|
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
7
7
|
import { BoardElementInsertService } from '../services/board-element-insert.service';
|
|
@@ -20,8 +20,11 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
20
20
|
private readonly _boardCanvasPopManagerService;
|
|
21
21
|
private readonly _boardTextEditingService;
|
|
22
22
|
private readonly _localeService;
|
|
23
|
+
private readonly _runtimeSizedElementIdsByPage;
|
|
23
24
|
private _attachObjectPointerScheduled;
|
|
24
|
-
private
|
|
25
|
+
private _attachAllObjectPointerHandlers;
|
|
26
|
+
private _pendingObjectPointerElementIds;
|
|
27
|
+
private _objectPointerDisposablesByElementId;
|
|
25
28
|
private _affordanceObject;
|
|
26
29
|
private _endpointObject;
|
|
27
30
|
private _waypointObject;
|
|
@@ -62,6 +65,8 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
62
65
|
private _cancelActiveConnectorDrag;
|
|
63
66
|
private _syncSceneInputMode;
|
|
64
67
|
private _getElementData;
|
|
68
|
+
private _getRuntimeSizedElementIds;
|
|
69
|
+
private _syncRuntimeSizedElementIds;
|
|
65
70
|
private _syncRuntimeElementGeometry;
|
|
66
71
|
private _isConnectorTextEditing;
|
|
67
72
|
private _isTextEditing;
|
|
@@ -88,6 +93,7 @@ export declare class BoardConnectorInteractionRenderController extends RxDisposa
|
|
|
88
93
|
private _syncConnectorEditHandles;
|
|
89
94
|
private _commitConnectorPreviewUpdate;
|
|
90
95
|
private _activateConnectorDrag;
|
|
96
|
+
private _hasActiveConnectorDrag;
|
|
91
97
|
private _finishFreePolylineDraft;
|
|
92
98
|
private _clearQuickShapePopup;
|
|
93
99
|
private _insertQuickConnectedShape;
|
|
@@ -24,13 +24,16 @@ export declare class BoardElementSelectionController extends RxDisposable implem
|
|
|
24
24
|
private readonly _inkEditService;
|
|
25
25
|
private readonly _boardTextEditingService;
|
|
26
26
|
private _attachScheduled;
|
|
27
|
+
private _attachAllObjectTransformers;
|
|
27
28
|
private _handledElementPointerDownEvent;
|
|
28
29
|
private _isSyncingTransformer;
|
|
29
|
-
private
|
|
30
|
+
private _objectPointerDisposablesByElementId;
|
|
31
|
+
private _pendingObjectTransformerElementIds;
|
|
30
32
|
private _restoreTransformerScheduled;
|
|
31
33
|
private _selectionDraft;
|
|
32
34
|
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _selectionService: BoardSelectionService, _selectionOverlayService: BoardSelectionOverlayService, _uiStateService: IBoardUIStateService, _contextMenuService: IContextMenuService, _platformService: IPlatformService, _inkStateService: IInkUIStateService, _inkEditService: IBoardInkEditService, _boardTextEditingService: BoardTextEditingService);
|
|
33
35
|
private _init;
|
|
36
|
+
private _subscribeToTransformerSelection;
|
|
34
37
|
private _subscribeToTextEditing;
|
|
35
38
|
private _wireScenePointerSelection;
|
|
36
39
|
private _startSelectionGesture;
|
|
@@ -5,6 +5,7 @@ import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
|
5
5
|
import { BoardDomLayerService } from '../services/board-dom-layer.service';
|
|
6
6
|
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
7
7
|
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
8
|
+
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
8
9
|
export declare class BoardElementTransformController extends RxDisposable implements IRenderModule {
|
|
9
10
|
private readonly _renderContext;
|
|
10
11
|
private readonly _instanceSrv;
|
|
@@ -12,15 +13,20 @@ export declare class BoardElementTransformController extends RxDisposable implem
|
|
|
12
13
|
private readonly _stateSrv;
|
|
13
14
|
private readonly _editService;
|
|
14
15
|
private readonly _domLayerService;
|
|
16
|
+
private readonly _uiStateService?;
|
|
15
17
|
private _domResizeGuideContext;
|
|
16
18
|
private _domResizeGuideDisposable;
|
|
17
19
|
private _domResizeGuideItemId;
|
|
20
|
+
private _alignmentSnapCandidates;
|
|
21
|
+
private _alignmentSnapCorrection;
|
|
22
|
+
private _areAlignmentSnapsDisabled;
|
|
18
23
|
private _isForceCaptureModifierActive;
|
|
19
24
|
private _shiftTransformStartRects;
|
|
20
25
|
private _areTransformerControlsHiddenForTransform;
|
|
26
|
+
private _previewConnectorIds;
|
|
21
27
|
private _xSnapSession;
|
|
22
28
|
private _ySnapSession;
|
|
23
|
-
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService, _domLayerService: BoardDomLayerService);
|
|
29
|
+
constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _boardElementService: IBoardElementService, _stateSrv: IBoardElementStateService, _editService: BoardElementEditService, _domLayerService: BoardDomLayerService, _uiStateService?: IBoardUIStateService | undefined);
|
|
24
30
|
dispose(): void;
|
|
25
31
|
private _init;
|
|
26
32
|
private _subscribeToTransformer;
|
|
@@ -32,15 +38,20 @@ export declare class BoardElementTransformController extends RxDisposable implem
|
|
|
32
38
|
private _restoreTransformerControlsAfterTransform;
|
|
33
39
|
private _captureShiftTransformStartRects;
|
|
34
40
|
private _resetAlignmentSnapSessions;
|
|
41
|
+
private _restoreUnsnappedTransform;
|
|
42
|
+
private _getAlignmentSnapZoomRatio;
|
|
35
43
|
private _applyShiftTransformModifier;
|
|
36
44
|
private _applyAlignmentSnapModifier;
|
|
37
45
|
private _resolveAlignmentSnapDelta;
|
|
38
46
|
private _applySequenceActivationSnapModifier;
|
|
47
|
+
private _applyRealtimeTransformModifiers;
|
|
39
48
|
private _applyProportionalResize;
|
|
40
49
|
private _syncRealtimeTransformPreview;
|
|
50
|
+
private _updateRealtimeConnectorPreview;
|
|
41
51
|
private _syncContainerDescendantPreviews;
|
|
42
52
|
private _createRealtimePreviewElementData;
|
|
43
53
|
private _syncShapeBoundConnectorPreviews;
|
|
54
|
+
private _restoreConnectorPreviewsFromModel;
|
|
44
55
|
private _withPreviewConnectorTransform;
|
|
45
56
|
private _syncTransformToData;
|
|
46
57
|
private _subscribeToForceCaptureModifier;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_GROUPING_SHORTCUT_OPERATION_ID = "board.operation.grouping-shortcut";
|
|
7
4
|
export declare class BoardGroupingShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createGroupingShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
3
|
export declare class BoardHistoryShortcutController extends RxDisposable {
|
|
5
|
-
private readonly _instanceService;
|
|
6
|
-
private readonly _elementStateService;
|
|
7
4
|
private readonly _shortcutService;
|
|
8
|
-
constructor(
|
|
9
|
-
private _init;
|
|
10
|
-
private _createShortcutItem;
|
|
11
|
-
private _getCurrentBoardModel;
|
|
5
|
+
constructor(_shortcutService: IShortcutService);
|
|
12
6
|
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_LAYOUT_SHORTCUT_OPERATION_ID = "board.operation.layout-shortcut";
|
|
7
4
|
export declare class BoardLayoutShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createLayoutShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
3
|
export declare const BOARD_ORDER_SHORTCUT_OPERATION_ID = "board.operation.order-shortcut";
|
|
5
4
|
export declare class BoardOrderShortcutController extends RxDisposable {
|
|
6
|
-
private readonly _instanceService;
|
|
7
|
-
private readonly _elementStateService;
|
|
8
5
|
private readonly _commandService;
|
|
9
6
|
private readonly _shortcutService;
|
|
10
|
-
constructor(
|
|
11
|
-
private _init;
|
|
12
|
-
private _createOrderShortcutOperation;
|
|
13
|
-
private _createShortcutItem;
|
|
14
|
-
private _handleShortcut;
|
|
15
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
16
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { UnitModel } from '@univerjs/core';
|
|
2
|
+
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
1
3
|
import { IBoardElementService } from '@univerjs-pro/boards';
|
|
2
4
|
import { ShapeFormulaService } from '@univerjs-pro/shape-editor';
|
|
3
5
|
import { IConfigService, IImageIoService, IUniverInstanceService, LocaleService, RxDisposable, ThemeService } from '@univerjs/core';
|
|
4
|
-
import type { UnitModel } from '@univerjs/core';
|
|
5
|
-
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
6
6
|
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
7
7
|
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
8
8
|
export declare const BOARD_MAIN_VIEWPORT_KEY = "viewMain";
|
|
@@ -19,6 +19,9 @@ export declare class BoardRenderController extends RxDisposable implements IRend
|
|
|
19
19
|
private readonly _shapeFormulaService;
|
|
20
20
|
private readonly _imageIoService?;
|
|
21
21
|
private readonly _renderedObjectKeys;
|
|
22
|
+
private _renderedObjectsByKey;
|
|
23
|
+
private readonly _connectorRoutingCache;
|
|
24
|
+
private readonly _connectorLineJumpCache;
|
|
22
25
|
private _renderedObjectLayerIndexes;
|
|
23
26
|
private _focusedSwimlaneFocus;
|
|
24
27
|
private _backgroundRect;
|
|
@@ -26,13 +29,13 @@ export declare class BoardRenderController extends RxDisposable implements IRend
|
|
|
26
29
|
private _init;
|
|
27
30
|
private _resolvePageBackgroundFill;
|
|
28
31
|
private _syncBackgroundRectToViewport;
|
|
29
|
-
private _enableStableLayerCaches;
|
|
30
32
|
private _syncSceneViewport;
|
|
31
33
|
private _syncFocusedSwimlaneLane;
|
|
32
34
|
private _clearRenderedBoardObjects;
|
|
33
35
|
private _renderBoardElements;
|
|
34
36
|
private _resolveAddedElementDirtyIds;
|
|
35
37
|
private _syncRenderedObjectZIndexes;
|
|
38
|
+
private _syncRenderedElementOrder;
|
|
36
39
|
private _getBoardRenderObject;
|
|
37
40
|
private _resolveExistingBoardElementObjectLayerIndex;
|
|
38
41
|
private _resolveBoardElementObjectLayerIndex;
|
|
@@ -16,6 +16,7 @@ export declare class BoardSelectionOverlayRenderController extends RxDisposable
|
|
|
16
16
|
private readonly _configService;
|
|
17
17
|
private readonly _boardTextEditingService;
|
|
18
18
|
private _areTransformGuidesDisabled;
|
|
19
|
+
private _transformGuideCandidates;
|
|
19
20
|
private _marqueeObject;
|
|
20
21
|
private _dimensionsObject;
|
|
21
22
|
private _guideObject;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
3
|
export declare const BOARD_SELECTION_SHORTCUT_OPERATION_ID = "board.operation.selection-shortcut";
|
|
7
4
|
export declare class BoardSelectionShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _boardElementService;
|
|
10
|
-
private readonly _elementStateService;
|
|
11
|
-
private readonly _elementEditService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createSelectionShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { ICommandService,
|
|
1
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
4
|
-
import { BoardSettingsService } from '../services/board-settings.service';
|
|
5
|
-
import { IBoardUIStateService } from '../services/board-ui-state.service';
|
|
6
3
|
export declare const BOARD_SETTINGS_SHORTCUT_OPERATION_ID = "board.operation.settings-shortcut";
|
|
7
4
|
export declare class BoardSettingsShortcutController extends RxDisposable {
|
|
8
|
-
private readonly _instanceService;
|
|
9
|
-
private readonly _elementStateService;
|
|
10
|
-
private readonly _stateService;
|
|
11
|
-
private readonly _settingsService;
|
|
12
5
|
private readonly _commandService;
|
|
13
6
|
private readonly _shortcutService;
|
|
14
|
-
constructor(
|
|
15
|
-
private _init;
|
|
16
|
-
private _createSettingsShortcutOperation;
|
|
17
|
-
private _createShortcutItem;
|
|
18
|
-
private _handleShortcut;
|
|
19
|
-
private _getCurrentBoardModel;
|
|
7
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
20
8
|
}
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { BoardSwimlaneLaneShortcutAction } from '../common/board-shortcuts';
|
|
2
|
+
import type { BoardShortcutRuntimeService } from '../services/board-shortcut-runtime.service';
|
|
3
|
+
import { ICommandService, RxDisposable } from '@univerjs/core';
|
|
3
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
4
|
-
import { BoardElementEditService } from '../services/board-element-edit.service';
|
|
5
|
-
import { IBoardElementStateService } from '../services/board-element-state.service';
|
|
6
|
-
import { BoardSwimlaneLaneRenameService } from '../services/board-swimlane-lane-rename.service';
|
|
7
5
|
export declare const BOARD_SWIMLANE_LANE_SHORTCUT_OPERATION_ID = "board.operation.swimlane-lane-shortcut";
|
|
6
|
+
export declare function handleSwimlaneLaneShortcut(runtime: BoardShortcutRuntimeService, action: BoardSwimlaneLaneShortcutAction | undefined): Promise<boolean>;
|
|
8
7
|
export declare class BoardSwimlaneLaneShortcutController extends RxDisposable {
|
|
9
|
-
private readonly _instanceService;
|
|
10
|
-
private readonly _boardElementService;
|
|
11
|
-
private readonly _elementStateService;
|
|
12
|
-
private readonly _editService;
|
|
13
|
-
private readonly _renameService;
|
|
14
8
|
private readonly _commandService;
|
|
15
9
|
private readonly _shortcutService;
|
|
16
|
-
constructor(
|
|
17
|
-
private _init;
|
|
18
|
-
private _createShortcutOperation;
|
|
19
|
-
private _createShortcutItem;
|
|
20
|
-
private _canHandleFocusedLane;
|
|
21
|
-
private _handleShortcut;
|
|
22
|
-
private _getCurrentBoardModel;
|
|
10
|
+
constructor(_commandService: ICommandService, _shortcutService: IShortcutService);
|
|
23
11
|
}
|