@univerjs/docs-ui 0.2.7 → 0.2.8
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/index.js +1 -1
- package/lib/es/index.js +12 -13
- package/lib/types/basics/interfaces/component-config/i-doc-ui-plugin-config.d.ts +0 -1
- package/lib/types/basics/transform-position.d.ts +0 -1
- package/lib/types/commands/commands/clipboard.command.d.ts +0 -1
- package/lib/types/commands/commands/doc-header-footer.command.d.ts +0 -1
- package/lib/types/commands/commands/doc-paragraph-setting.command.d.ts +0 -1
- package/lib/types/commands/commands/doc-tab.command.d.ts +0 -1
- package/lib/types/commands/operations/doc-create-table.operation.d.ts +0 -1
- package/lib/types/commands/operations/doc-header-footer-panel.operation.d.ts +0 -1
- package/lib/types/commands/operations/doc-paragraph-setting-panel.operation.d.ts +0 -1
- package/lib/types/components/list-type-picker/picker.d.ts +0 -1
- package/lib/types/controllers/app-ui-controller.d.ts +0 -1
- package/lib/types/controllers/clipboard.controller.d.ts +0 -1
- package/lib/types/controllers/doc-auto-format.controller.d.ts +0 -1
- package/lib/types/controllers/doc-container-ui-controller.d.ts +0 -1
- package/lib/types/controllers/doc-editor-bridge.controller.d.ts +0 -1
- package/lib/types/controllers/doc-header-footer.controller.d.ts +0 -1
- package/lib/types/controllers/doc-paragraph-setting.controller.d.ts +0 -1
- package/lib/types/controllers/doc-table.controller.d.ts +0 -1
- package/lib/types/controllers/doc-ui.controller.d.ts +0 -1
- package/lib/types/controllers/menu/context-menu.d.ts +0 -1
- package/lib/types/controllers/menu/menu.d.ts +0 -1
- package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/contextmenu.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/doc-checklist.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/doc-hover.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/doc-resize.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/text-selection.render-controller.d.ts +0 -1
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +0 -1
- package/lib/types/docs-ui-plugin.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/services/clipboard/clipboard.service.d.ts +0 -1
- package/lib/types/services/clipboard/copy-content-cache.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/converter.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/parse-node-style.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-lark.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-univer.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/plugin-word.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/paste-plugins/type.d.ts +0 -1
- package/lib/types/services/clipboard/html-to-udm/utils.d.ts +0 -1
- package/lib/types/services/clipboard/udm-to-html/convertor.d.ts +0 -1
- package/lib/types/services/doc-hover-manager.service.d.ts +0 -1
- package/lib/types/services/doc-page-layout.service.d.ts +0 -1
- package/lib/types/services/doc-popup-manager.service.d.ts +1 -2
- package/lib/types/services/docs-render.service.d.ts +0 -1
- package/lib/types/shortcuts/core-editing.shortcut.d.ts +0 -1
- package/lib/types/shortcuts/cursor.shortcut.d.ts +0 -1
- package/lib/types/shortcuts/format.shortcut.d.ts +0 -1
- package/lib/types/shortcuts/toolbar.shortcut.d.ts +0 -1
- package/lib/types/shortcuts/utils.d.ts +0 -1
- package/lib/types/views/count-bar/CountBar.d.ts +0 -1
- package/lib/types/views/count-bar/ZoomSlider.d.ts +0 -1
- package/lib/types/views/doc-container/DocContainer.d.ts +0 -1
- package/lib/types/views/doc-footer/DocFooter.d.ts +0 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +0 -1
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +0 -1
- package/lib/types/views/header-footer/text-bubble.d.ts +0 -1
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +0 -1
- package/lib/types/views/paragraph-setting/index.d.ts +0 -1
- package/lib/types/views/table/create/TableCreate.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +14 -14
package/lib/es/index.js
CHANGED
|
@@ -1543,7 +1543,7 @@ function createHeaderFooterAction(segmentId, createType, documentStyle, actions)
|
|
|
1543
1543
|
});
|
|
1544
1544
|
actions.push(insertAction);
|
|
1545
1545
|
const secondSegmentId = Tools.generateRandomId(ID_LEN), insertPairAction = jsonX.insertOp([isHeader ? "footers" : "headers", secondSegmentId], {
|
|
1546
|
-
[isHeader ? "
|
|
1546
|
+
[isHeader ? "footerId" : "headerId"]: secondSegmentId,
|
|
1547
1547
|
body: getEmptyHeaderFooterBody()
|
|
1548
1548
|
});
|
|
1549
1549
|
actions.push(insertPairAction);
|
|
@@ -3709,7 +3709,8 @@ let DocCanvasPopManagerService = (_a13 = class extends Disposable {
|
|
|
3709
3709
|
unitId,
|
|
3710
3710
|
subUnitId: "default",
|
|
3711
3711
|
anchorRect: position,
|
|
3712
|
-
anchorRect$: position
|
|
3712
|
+
anchorRect$: position$,
|
|
3713
|
+
canvasElement: currentRender.engine.getCanvasElement()
|
|
3713
3714
|
});
|
|
3714
3715
|
return {
|
|
3715
3716
|
dispose: /* @__PURE__ */ __name(() => {
|
|
@@ -3732,7 +3733,8 @@ let DocCanvasPopManagerService = (_a13 = class extends Disposable {
|
|
|
3732
3733
|
anchorRect$: position$,
|
|
3733
3734
|
excludeRects: bounds,
|
|
3734
3735
|
excludeRects$: bounds$,
|
|
3735
|
-
direction: direction === "top" ? "top" : "bottom"
|
|
3736
|
+
direction: direction === "top" ? "top" : "bottom",
|
|
3737
|
+
canvasElement: currentRender.engine.getCanvasElement()
|
|
3736
3738
|
});
|
|
3737
3739
|
return {
|
|
3738
3740
|
dispose: /* @__PURE__ */ __name(() => {
|
|
@@ -3781,7 +3783,7 @@ var __defProp$7 = Object.defineProperty, __getOwnPropDesc$7 = Object.getOwnPrope
|
|
|
3781
3783
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
3782
3784
|
return kind && result && __defProp$7(target, key, result), result;
|
|
3783
3785
|
}, "__decorateClass$7"), __decorateParam$7 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$7");
|
|
3784
|
-
const SKIP_UNIT_IDS
|
|
3786
|
+
const SKIP_UNIT_IDS = [
|
|
3785
3787
|
DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
3786
3788
|
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
3787
3789
|
DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
@@ -3790,7 +3792,7 @@ const SKIP_UNIT_IDS$1 = [
|
|
|
3790
3792
|
var _a15;
|
|
3791
3793
|
let DocContextMenuRenderController = (_a15 = class extends Disposable {
|
|
3792
3794
|
constructor(_context, _contextMenuService, _textSelectionManagerService, _commandService) {
|
|
3793
|
-
super(), this._context = _context, this._contextMenuService = _contextMenuService, this._textSelectionManagerService = _textSelectionManagerService, this._commandService = _commandService, SKIP_UNIT_IDS
|
|
3795
|
+
super(), this._context = _context, this._contextMenuService = _contextMenuService, this._textSelectionManagerService = _textSelectionManagerService, this._commandService = _commandService, SKIP_UNIT_IDS.includes(this._context.unitId) || (this._initPointerDown(), this._initEditChange());
|
|
3794
3796
|
}
|
|
3795
3797
|
_initPointerDown() {
|
|
3796
3798
|
var _a23, _b;
|
|
@@ -3816,16 +3818,13 @@ var __defProp$6 = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPrope
|
|
|
3816
3818
|
for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
|
|
3817
3819
|
(decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
|
|
3818
3820
|
return kind && result && __defProp$6(target, key, result), result;
|
|
3819
|
-
}, "__decorateClass$6"), __decorateParam$6 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$6");
|
|
3820
|
-
const SKIP_UNIT_IDS = [
|
|
3821
|
-
DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
3822
|
-
DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
3823
|
-
DOCS_NORMAL_EDITOR_UNIT_ID_KEY
|
|
3824
|
-
];
|
|
3825
|
-
var _a16;
|
|
3821
|
+
}, "__decorateClass$6"), __decorateParam$6 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$6"), _a16;
|
|
3826
3822
|
let DocResizeRenderController = (_a16 = class extends Disposable {
|
|
3827
3823
|
constructor(_context, _docPageLayoutService, _textSelectionManagerService) {
|
|
3828
|
-
super(), this._context = _context, this._docPageLayoutService = _docPageLayoutService, this._textSelectionManagerService = _textSelectionManagerService
|
|
3824
|
+
super(), this._context = _context, this._docPageLayoutService = _docPageLayoutService, this._textSelectionManagerService = _textSelectionManagerService;
|
|
3825
|
+
const unitId = this._context.unitId;
|
|
3826
|
+
if (isInternalEditorID(unitId) && unitId !== DOCS_ZEN_EDITOR_UNIT_ID_KEY) return this;
|
|
3827
|
+
this._initResize();
|
|
3829
3828
|
}
|
|
3830
3829
|
_initResize() {
|
|
3831
3830
|
this.disposeWithMe(
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IDocDrawingPosition, ITransformState, Nullable } from '@univerjs/core';
|
|
2
|
-
|
|
3
2
|
export declare function docDrawingPositionToTransform(position: IDocDrawingPosition): Nullable<ITransformState>;
|
|
4
3
|
export declare function transformToDocDrawingPosition(transform: ITransformState, marginLeft?: number, marginTop?: number): Nullable<IDocDrawingPosition>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ICommand, IParagraphStyle } from '@univerjs/core';
|
|
2
|
-
|
|
3
2
|
export type IDocParagraphSettingCommandParams = Partial<Pick<IParagraphStyle, 'hanging' | 'horizontalAlign' | 'spaceBelow' | 'spaceAbove' | 'indentEnd' | 'indentStart' | 'lineSpacing' | 'indentFirstLine'>>;
|
|
4
3
|
export declare const DocParagraphSettingCommand: ICommand<IDocParagraphSettingCommandParams>;
|
|
@@ -3,7 +3,6 @@ import { ILayoutService } from '@univerjs/ui';
|
|
|
3
3
|
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
4
4
|
import { IUniverDocsUIConfig } from '../basics';
|
|
5
5
|
import { DocContainerUIController } from './doc-container-ui-controller';
|
|
6
|
-
|
|
7
6
|
export declare class AppUIController extends RxDisposable {
|
|
8
7
|
private readonly _localeService;
|
|
9
8
|
private readonly _injector;
|
|
@@ -2,7 +2,6 @@ import { ICommandService, IContextService, RxDisposable } from '@univerjs/core';
|
|
|
2
2
|
import { IClipboardInterfaceService } from '@univerjs/ui';
|
|
3
3
|
import { ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
4
4
|
import { IDocClipboardService } from '../services/clipboard/clipboard.service';
|
|
5
|
-
|
|
6
5
|
export declare class DocClipboardController extends RxDisposable {
|
|
7
6
|
private readonly _commandService;
|
|
8
7
|
private readonly _clipboardInterfaceService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { DocAutoFormatService } from '@univerjs/docs';
|
|
3
|
-
|
|
4
3
|
export declare class DocAutoFormatController extends Disposable {
|
|
5
4
|
private readonly _docAutoFormatService;
|
|
6
5
|
constructor(_docAutoFormatService: DocAutoFormatService);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Injector, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { IUniverDocsUIConfig } from '../basics';
|
|
3
3
|
import { DocContainer } from '../views/doc-container/DocContainer';
|
|
4
|
-
|
|
5
4
|
export declare class DocContainerUIController {
|
|
6
5
|
private readonly _config;
|
|
7
6
|
private readonly _localeService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
3
|
import { IEditorService } from '@univerjs/ui';
|
|
4
|
-
|
|
5
4
|
export declare class DocEditorBridgeController extends Disposable {
|
|
6
5
|
private readonly _univerInstanceService;
|
|
7
6
|
private readonly _editorService;
|
|
@@ -2,7 +2,6 @@ import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService,
|
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
3
|
import { ComponentManager, IEditorService } from '@univerjs/ui';
|
|
4
4
|
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
5
|
-
|
|
6
5
|
export declare enum HeaderFooterType {
|
|
7
6
|
FIRST_PAGE_HEADER = 0,
|
|
8
7
|
FIRST_PAGE_FOOTER = 1,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager, ISidebarService } from '@univerjs/ui';
|
|
3
|
-
|
|
4
3
|
export declare class DocParagraphSettingController extends Disposable {
|
|
5
4
|
private readonly _commandService;
|
|
6
5
|
private readonly _componentManager;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ComponentManager, ILayoutService, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
3
|
import { IUniverDocsUIConfig } from '../basics';
|
|
4
|
-
|
|
5
4
|
export declare class DocUIController extends Disposable {
|
|
6
5
|
protected readonly _config: Partial<IUniverDocsUIConfig>;
|
|
7
6
|
protected readonly _injector: Injector;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IAccessor } from '@univerjs/core';
|
|
2
2
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
3
|
-
|
|
4
3
|
export declare const CopyMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
|
|
5
4
|
export declare const ParagraphSettingMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
|
|
6
5
|
export declare const CutMenuFactory: (accessor: IAccessor) => IMenuButtonItem;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
2
|
import { IAccessor, PresetListType } from '@univerjs/core';
|
|
3
|
-
|
|
4
3
|
export declare function BoldMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
5
4
|
export declare function ItalicMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
6
5
|
export declare function UnderlineMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -2,7 +2,6 @@ import { DocumentDataModel, ITextRange, Nullable, IUniverInstanceService, RxDisp
|
|
|
2
2
|
import { TextSelectionManagerService } from '@univerjs/docs';
|
|
3
3
|
import { INodePosition, IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { IEditorService } from '@univerjs/ui';
|
|
5
|
-
|
|
6
5
|
export declare class DocBackScrollRenderController extends RxDisposable implements IRenderModule {
|
|
7
6
|
private readonly _context;
|
|
8
7
|
private readonly _textSelectionManagerService;
|
|
@@ -2,7 +2,6 @@ import { Workbook, Disposable, ICommandService } from '@univerjs/core';
|
|
|
2
2
|
import { TextSelectionManagerService } from '@univerjs/docs';
|
|
3
3
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
4
|
import { IContextMenuService } from '@univerjs/ui';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* This controller subscribe to context menu events in sheet rendering views and invoke context menu at a correct
|
|
8
7
|
* position and with correct menu type.
|
|
@@ -2,7 +2,6 @@ import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
|
2
2
|
import { DocumentDataModel, Disposable, ICommandService } from '@univerjs/core';
|
|
3
3
|
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
4
4
|
import { DocHoverManagerService } from '../../services/doc-hover-manager.service';
|
|
5
|
-
|
|
6
5
|
export declare class DocChecklistRenderController extends Disposable implements IRenderModule {
|
|
7
6
|
private _context;
|
|
8
7
|
private readonly _docSkeletonManagerService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Disposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { DocHoverManagerService } from '../../services/doc-hover-manager.service';
|
|
4
|
-
|
|
5
4
|
export declare class DocHoverRenderController extends Disposable implements IRenderModule {
|
|
6
5
|
private _context;
|
|
7
6
|
private readonly _docHoverManagerService;
|
|
@@ -2,7 +2,6 @@ import { Disposable } from '@univerjs/core';
|
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { TextSelectionManagerService } from '@univerjs/docs';
|
|
4
4
|
import { DocPageLayoutService } from '../../services/doc-page-layout.service';
|
|
5
|
-
|
|
6
5
|
export declare class DocResizeRenderController extends Disposable implements IRenderModule {
|
|
7
6
|
private _context;
|
|
8
7
|
private readonly _docPageLayoutService;
|
|
@@ -2,7 +2,6 @@ import { DocumentDataModel, ICommandService, IConfigService, IContextService, Rx
|
|
|
2
2
|
import { DocSkeletonManagerService } from '@univerjs/docs';
|
|
3
3
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { IEditorService } from '@univerjs/ui';
|
|
5
|
-
|
|
6
5
|
export declare class DocRenderController extends RxDisposable implements IRenderModule {
|
|
7
6
|
private readonly _context;
|
|
8
7
|
private readonly _contextService;
|
|
@@ -2,7 +2,6 @@ import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService
|
|
|
2
2
|
import { IRenderContext, IRenderModule, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
3
3
|
import { IEditorService } from '@univerjs/ui';
|
|
4
4
|
import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerjs/docs';
|
|
5
|
-
|
|
6
5
|
export declare class DocTextSelectionRenderController extends Disposable implements IRenderModule {
|
|
7
6
|
private readonly _context;
|
|
8
7
|
private readonly _commandService;
|
|
@@ -3,7 +3,6 @@ import { DocSkeletonManagerService, TextSelectionManagerService } from '@univerj
|
|
|
3
3
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
4
|
import { IEditorService } from '@univerjs/ui';
|
|
5
5
|
import { DocPageLayoutService } from '../../services/doc-page-layout.service';
|
|
6
|
-
|
|
7
6
|
export declare class DocZoomRenderController extends Disposable implements IRenderModule {
|
|
8
7
|
private readonly _context;
|
|
9
8
|
private readonly _contextService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ICommandService, ILogService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { IUniverDocsUIConfig } from './basics';
|
|
4
|
-
|
|
5
4
|
export declare class UniverDocsUIPlugin extends Plugin {
|
|
6
5
|
private readonly _config;
|
|
7
6
|
_injector: Injector;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IDisposable, IDocumentBody, Disposable, ICommandService, ILogService, IUniverInstanceService, SliceBodyType } from '@univerjs/core';
|
|
2
2
|
import { IClipboardInterfaceService } from '@univerjs/ui';
|
|
3
3
|
import { DocCustomRangeService, TextSelectionManagerService } from '@univerjs/docs';
|
|
4
|
-
|
|
5
4
|
export interface IClipboardPropertyItem {
|
|
6
5
|
}
|
|
7
6
|
export interface IDocClipboardHook {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IDocumentBody, ITextRun } from '@univerjs/core';
|
|
2
|
-
|
|
3
2
|
export declare function covertTextRunToHtml(dataStream: string, textRun: ITextRun): string;
|
|
4
3
|
export declare function getBodySliceHtml(body: IDocumentBody, startIndex: number, endIndex: number): string;
|
|
5
4
|
export declare function convertBodyToHtml(body: IDocumentBody): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ICustomRange, IParagraph, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
|
|
4
3
|
export declare class DocHoverManagerService extends Disposable {
|
|
5
4
|
private readonly _univerInstanceService;
|
|
6
5
|
private readonly _renderManagerService;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentDataModel, Disposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
-
|
|
4
3
|
export declare class DocPageLayoutService extends Disposable implements IRenderModule {
|
|
5
4
|
private _context;
|
|
6
5
|
constructor(_context: IRenderContext<DocumentDataModel>);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { IDisposable, ITextRange, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService, BaseObject, IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
|
|
3
3
|
import { IPopup, ICanvasPopupService } from '@univerjs/ui';
|
|
4
|
-
|
|
5
4
|
export declare function transformBound2OffsetBound(originBound: IBoundRectNoAngle, scene: Scene): IBoundRectNoAngle;
|
|
6
5
|
export declare function transformPosition2Offset(x: number, y: number, scene: Scene): {
|
|
7
6
|
x: number;
|
|
8
7
|
y: number;
|
|
9
8
|
};
|
|
10
|
-
export interface IDocCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside'> {
|
|
9
|
+
export interface IDocCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside' | 'hideOnInvisible'> {
|
|
11
10
|
mask?: boolean;
|
|
12
11
|
extraProps?: Record<string, any>;
|
|
13
12
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
|
|
4
3
|
export declare class DocsRenderService extends RxDisposable {
|
|
5
4
|
private readonly _instanceSrv;
|
|
6
5
|
private readonly _renderManagerService;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IParagraph } from '@univerjs/core';
|
|
2
|
-
|
|
3
2
|
export declare const useCurrentParagraph: () => IParagraph[];
|
|
4
3
|
export declare const useFirstParagraphHorizontalAlign: (paragraph: IParagraph[], defaultValue: string) => readonly [string, (v: string) => Promise<boolean>];
|
|
5
4
|
export declare const useFirstParagraphIndentStart: (paragraph: IParagraph[]) => readonly [number, (v: number) => Promise<boolean>];
|