@univerjs/slides-ui 0.2.5 → 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.
Files changed (54) hide show
  1. package/lib/cjs/index.js +3 -2
  2. package/lib/es/index.js +2377 -121
  3. package/lib/index.css +1 -1
  4. package/lib/locale/en-US.json +33 -3
  5. package/lib/locale/ru-RU.json +33 -3
  6. package/lib/locale/vi-VN.json +33 -3
  7. package/lib/locale/zh-CN.json +33 -3
  8. package/lib/locale/zh-TW.json +33 -3
  9. package/lib/types/commands/operations/activate.operation.d.ts +1 -1
  10. package/lib/types/commands/operations/append-slide.operation.d.ts +5 -0
  11. package/lib/types/commands/operations/delete-element.operation.d.ts +6 -0
  12. package/lib/types/commands/operations/insert-image.operation.d.ts +6 -0
  13. package/lib/types/commands/operations/insert-shape.operation.d.ts +12 -0
  14. package/lib/types/commands/operations/insert-text.operation.d.ts +7 -0
  15. package/lib/types/commands/operations/set-thumb.operation.d.ts +3 -1
  16. package/lib/types/commands/operations/text-edit.operation.d.ts +2 -0
  17. package/lib/types/commands/operations/update-element.operation.d.ts +7 -0
  18. package/lib/types/components/image-popup-menu/ImagePopupMenu.d.ts +18 -0
  19. package/lib/types/components/image-popup-menu/component-name.d.ts +16 -0
  20. package/lib/types/components/panels/ArrangePanel.d.ts +7 -0
  21. package/lib/types/components/panels/FillPanel.d.ts +7 -0
  22. package/lib/types/components/panels/TransformPanel.d.ts +7 -0
  23. package/lib/types/components/sidebar/Sidebar.d.ts +3 -0
  24. package/lib/types/{views → components}/slide-bar/SlideBar.d.ts +0 -1
  25. package/lib/types/components/upload-component/UploadFile.d.ts +8 -0
  26. package/lib/types/components/upload-component/component-name.d.ts +20 -0
  27. package/lib/types/const.d.ts +16 -0
  28. package/lib/types/controllers/canvas-view.d.ts +22 -0
  29. package/lib/types/controllers/image.menu.d.ts +6 -0
  30. package/lib/types/controllers/popup-menu.controller.d.ts +22 -0
  31. package/lib/types/controllers/shape.menu.d.ts +6 -0
  32. package/lib/types/controllers/shortcuts/editor.shortcuts.d.ts +5 -0
  33. package/lib/types/controllers/shortcuts/utils.d.ts +34 -0
  34. package/lib/types/controllers/slide-editing.render-controller.d.ts +106 -0
  35. package/lib/types/controllers/slide-editor-bridge.render-controller.d.ts +39 -0
  36. package/lib/types/controllers/slide-ui.controller.d.ts +20 -9
  37. package/lib/types/controllers/slide.render-controller.d.ts +71 -0
  38. package/lib/types/controllers/text.menu.d.ts +4 -0
  39. package/lib/types/index.d.ts +16 -0
  40. package/lib/types/locale/en-US.d.ts +0 -1
  41. package/lib/types/locale/ru-RU.d.ts +0 -1
  42. package/lib/types/locale/vi-VN.d.ts +0 -1
  43. package/lib/types/locale/zh-CN.d.ts +33 -3
  44. package/lib/types/locale/zh-TW.d.ts +0 -1
  45. package/lib/types/services/slide-editor-bridge.service.d.ts +100 -0
  46. package/lib/types/services/slide-editor-manager.service.d.ts +41 -0
  47. package/lib/types/services/slide-popup-manager.service.d.ts +21 -0
  48. package/lib/types/services/slide-render.service.d.ts +16 -0
  49. package/lib/types/slides-ui-plugin.d.ts +7 -3
  50. package/lib/types/type.d.ts +37 -0
  51. package/lib/types/views/editor-container/EditorContainer.d.ts +9 -0
  52. package/lib/types/views/editor-container/index.d.ts +16 -0
  53. package/lib/umd/index.js +3 -2
  54. package/package.json +23 -15
@@ -0,0 +1,39 @@
1
+ import { UnitModel, ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { IRenderContext, IRenderModule, RichText } from '@univerjs/engine-render';
3
+ import { Subject } from 'rxjs';
4
+ import { ISlideEditorBridgeService } from '../services/slide-editor-bridge.service';
5
+ import { ISlideRichTextProps } from '../type';
6
+ export declare class SlideEditorBridgeRenderController extends RxDisposable implements IRenderModule {
7
+ private readonly _renderContext;
8
+ private readonly _instanceSrv;
9
+ private readonly _commandService;
10
+ private readonly _editorBridgeService;
11
+ /**
12
+ * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
13
+ */
14
+ /** If the corresponding unit is active and prepared for editing. */
15
+ setSlideTextEditor$: Subject<ISlideRichTextProps>;
16
+ private _curRichText;
17
+ private _d;
18
+ constructor(_renderContext: IRenderContext<UnitModel>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: ISlideEditorBridgeService);
19
+ private _init;
20
+ private _disposeCurrent;
21
+ private _setEditorRect;
22
+ private _initEventListener;
23
+ pickOtherObjects(): void;
24
+ /**
25
+ * invoked when picking other object.
26
+ *
27
+ * save editing state to curr richText.
28
+ */
29
+ endEditing(): false | undefined;
30
+ /**
31
+ * TODO calling twice ????
32
+ * editingParam derives from RichText object.
33
+ *
34
+ * TODO @lumixraku need scale param
35
+ * @param target
36
+ */
37
+ startEditing(pageId: string, target: RichText): void;
38
+ setEditorVisible(visible: boolean): void;
39
+ }
@@ -1,14 +1,25 @@
1
- import { Disposable, ICommandService, Injector } from '@univerjs/core';
2
- import { IUIPartsService } from '@univerjs/ui';
3
-
1
+ import { DependencyOverride, Disposable, ICommandService, Injector } from '@univerjs/core';
2
+ import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
3
+ export interface IUniverSlidesDrawingConfig {
4
+ menu?: MenuConfig;
5
+ override?: DependencyOverride;
6
+ }
7
+ export declare const DefaultSlidesDrawingConfig: IUniverSlidesDrawingConfig;
4
8
  /**
5
9
  * This controller registers UI parts of slide workbench to the base-ui workbench.
6
10
  */
7
- export declare class SlideUIController extends Disposable {
8
- private readonly _injector;
9
- private readonly _uiPartsService;
10
- private readonly _commandService;
11
- constructor(_injector: Injector, _uiPartsService: IUIPartsService, _commandService: ICommandService);
11
+ export declare class SlidesUIController extends Disposable {
12
+ private readonly _config;
13
+ protected readonly _injector: Injector;
14
+ protected readonly _menuService: IMenuService;
15
+ protected readonly _componentManager: ComponentManager;
16
+ protected readonly _uiPartsService: IUIPartsService;
17
+ protected readonly _commandService: ICommandService;
18
+ protected readonly _shortcutService: IShortcutService;
19
+ constructor(_config: Partial<IUniverSlidesDrawingConfig>, _injector: Injector, _menuService: IMenuService, _componentManager: ComponentManager, _uiPartsService: IUIPartsService, _commandService: ICommandService, _shortcutService: IShortcutService);
20
+ private _initMenus;
21
+ private _initCustomComponents;
12
22
  private _initCommands;
13
- private _initUIComponents;
23
+ protected _initUIComponents(): void;
24
+ private _initShortcuts;
14
25
  }
@@ -0,0 +1,71 @@
1
+ import { IPageElement, ISlidePage, Nullable, UnitModel, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { BaseObject, IRenderContext, IRenderModule, IRenderManagerService, Scene } from '@univerjs/engine-render';
3
+ import { PageID } from '../type';
4
+ export declare class SlideRenderController extends RxDisposable implements IRenderModule {
5
+ private readonly _renderContext;
6
+ private readonly _injector;
7
+ private readonly _univerInstanceService;
8
+ private readonly _renderManagerService;
9
+ private _objectProvider;
10
+ /**
11
+ * As a dep of UNIVER_SLIDE, init by RenderManagerService@createRender --> injector.get(dep)
12
+ * @param _renderContext
13
+ * @param _injector
14
+ * @param _univerInstanceService
15
+ * @param _renderManagerService
16
+ */
17
+ constructor(_renderContext: IRenderContext<UnitModel>, _injector: Injector, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
18
+ /**
19
+ * _initialize --> _create --> _addNewRender
20
+ */
21
+ private _addNewRender;
22
+ private _scrollToCenter;
23
+ private _currentRender;
24
+ private _refreshThumb;
25
+ /**
26
+ * init --> _addNewRender
27
+ * @param mainScene
28
+ */
29
+ private _createSlide;
30
+ private _addBackgroundRect;
31
+ private _getCenterPositionViewPort;
32
+ private _thumbSceneRender;
33
+ /**
34
+ * _createScene by pages, createScene --> set sceneMap
35
+ * invoked stack: initialize --> _create --> _addNewRender --> _createSlidePages
36
+ * @param slideDataModel
37
+ * @param slide
38
+ */
39
+ private _createSlidePages;
40
+ private _createThumb;
41
+ /**
42
+ * SlideDataModel is UnitModel
43
+ */
44
+ private _getCurrUnitModel;
45
+ activePage(_pageId?: string): void;
46
+ createThumbs(): void;
47
+ /**
48
+ * _initialize --> _create --> _addNewRender --> _createSlidePages --> page forEach --> createPageScene
49
+ * _sceneMap.set(pageId, pageScene);
50
+ *
51
+ * @param pageId
52
+ * @param page
53
+ * @returns pageScene: Scene
54
+ */
55
+ createPageScene(pageId: string, page: ISlidePage): Scene | undefined;
56
+ /**
57
+ * get pageScene from Slide
58
+ * pageScene was added to the mainComponent(Slide) in createPageScene --> slide.addPageScene
59
+ * @param pageId
60
+ * @returns {Scene, Engine, UnitModel}
61
+ */
62
+ getPageRenderUnit(pageId: PageID): {
63
+ scene: Scene;
64
+ engine: import('@univerjs/engine-render').Engine;
65
+ unit: UnitModel<object, number>;
66
+ };
67
+ createObjectToPage(element: IPageElement, pageID: PageID): Nullable<BaseObject>;
68
+ setObjectActiveByPage(obj: BaseObject, pageID: PageID): void;
69
+ removeObjectById(id: string, pageID: PageID): void;
70
+ appendPage(): void;
71
+ }
@@ -0,0 +1,4 @@
1
+ import { IAccessor } from '@univerjs/core';
2
+ import { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare const TEXT_ICON_ID = "text-single";
4
+ export declare function SlideAddTextMenuItemFactory(_accessor: IAccessor): IMenuButtonItem;
@@ -14,5 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export { UniverSlidesUIPlugin } from './slides-ui-plugin';
17
+ export { SlidesUIController } from './controllers/slide-ui.controller';
18
+ export { SlideSideBar } from './components/slide-bar/SlideBar';
19
+ export { ISlideEditorBridgeService } from './services/slide-editor-bridge.service';
20
+ export { SlideCanvasPopMangerService } from './services/slide-popup-manager.service';
21
+ export type { IUniverSlidesDrawingConfig } from './controllers/slide-ui.controller';
22
+ export { IMAGE_MENU_ID } from './controllers/image.menu';
23
+ export { SHAPE_MENU_ID } from './controllers/shape.menu';
17
24
  export { ActivateSlidePageOperation } from './commands/operations/activate.operation';
25
+ export { DeleteSlideElementOperation } from './commands/operations/delete-element.operation';
26
+ export { InsertSlideFloatImageOperation } from './commands/operations/insert-image.operation';
27
+ export { InsertSlideShapeRectangleOperation, InsertSlideShapeRectangleCommand } from './commands/operations/insert-shape.operation';
18
28
  export { SetSlidePageThumbOperation } from './commands/operations/set-thumb.operation';
29
+ export { AppendSlideOperation } from './commands/operations/append-slide.operation';
30
+ export { SlideAddTextOperation, SlideAddTextCommand } from './commands/operations/insert-text.operation';
31
+ export { UpdateSlideElementOperation } from './commands/operations/update-element.operation';
32
+ export { SlideEditorContainer } from './views/editor-container/EditorContainer';
33
+ export { SLIDE_EDITOR_ID } from './const';
34
+ export { CanvasView } from './controllers/canvas-view';
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -14,9 +14,39 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  declare const locale: {
17
- toolbar: {
18
- undo: string;
19
- redo: string;
17
+ slide: {
18
+ append: string;
19
+ text: {
20
+ insert: {
21
+ title: string;
22
+ };
23
+ };
24
+ shape: {
25
+ insert: {
26
+ title: string;
27
+ rectangle: string;
28
+ };
29
+ };
30
+ image: {
31
+ insert: {
32
+ title: string;
33
+ float: string;
34
+ };
35
+ };
36
+ popup: {
37
+ edit: string;
38
+ delete: string;
39
+ };
40
+ sidebar: {
41
+ text: string;
42
+ shape: string;
43
+ image: string;
44
+ };
45
+ panel: {
46
+ fill: {
47
+ title: string;
48
+ };
49
+ };
20
50
  };
21
51
  };
22
52
  export default locale;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const locale: typeof zhCN;
4
3
  export default locale;
@@ -0,0 +1,100 @@
1
+ import { IDisposable, IDocumentData, IPosition, Nullable, Disposable, IContextService } from '@univerjs/core';
2
+ import { Engine, IDocumentLayoutObject, RichText, Scene, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
3
+ import { KeyCode, IEditorService } from '@univerjs/ui';
4
+ import { Observable, Subject } from 'rxjs';
5
+ export declare enum SLIDE_VIEW_KEY {
6
+ MAIN = "__SLIDERender__",
7
+ SCENE_VIEWER = "__SLIDEViewer__",
8
+ SCENE = "__SLIDEScene__",
9
+ VIEWPORT = "__SLIDEViewPort_"
10
+ }
11
+ export declare const ISlideEditorBridgeService: import('@univerjs/core').IdentifierDecorator<SlideEditorBridgeService>;
12
+ export interface IEditorBridgeServiceParam {
13
+ unitId: string;
14
+ /**
15
+ * pos and size of editing area
16
+ */
17
+ position: IPosition;
18
+ slideCardOffset: {
19
+ left: number;
20
+ top: number;
21
+ };
22
+ documentLayoutObject: IDocumentLayoutObject;
23
+ scaleX: number;
24
+ scaleY: number;
25
+ editorUnitId: string;
26
+ }
27
+ export interface IEditorBridgeServiceVisibleParam {
28
+ visible: boolean;
29
+ eventType: DeviceInputEventType;
30
+ unitId: string;
31
+ keycode?: KeyCode;
32
+ }
33
+ export interface ISetEditorInfo {
34
+ scene: Scene;
35
+ engine: Engine;
36
+ unitId: string;
37
+ pageId: string;
38
+ richTextObj: RichText;
39
+ }
40
+ export interface ISlideEditorBridgeService {
41
+ currentEditRectState$: Observable<Nullable<IEditorBridgeServiceParam>>;
42
+ visible$: Observable<IEditorBridgeServiceVisibleParam>;
43
+ /**
44
+ * @deprecated This is a temp solution only for demo purposes. We should have mutations to directly write
45
+ * content to slides.
46
+ */
47
+ endEditing$: Subject<RichText>;
48
+ dispose(): void;
49
+ setEditorRect(param: ISetEditorInfo): void;
50
+ getEditorRect(): ISetEditorInfo;
51
+ getEditRectState(): Readonly<Nullable<IEditorBridgeServiceParam>>;
52
+ changeVisible(param: IEditorBridgeServiceVisibleParam): void;
53
+ changeEditorDirty(dirtyStatus: boolean): void;
54
+ getEditorDirty(): boolean;
55
+ isVisible(): boolean;
56
+ getCurrentEditorId(): Nullable<string>;
57
+ }
58
+ export declare class SlideEditorBridgeService extends Disposable implements ISlideEditorBridgeService, IDisposable {
59
+ private readonly _editorService;
60
+ private readonly _contextService;
61
+ private readonly _renderManagerService;
62
+ private _editorUnitId;
63
+ private _isForceKeepVisible;
64
+ private _editorIsDirty;
65
+ private _currentEditRectState;
66
+ private readonly _currentEditRectState$;
67
+ readonly currentEditRectState$: Observable<Nullable<IEditorBridgeServiceParam>>;
68
+ private _visibleParam;
69
+ private readonly _visible$;
70
+ readonly visible$: Observable<IEditorBridgeServiceVisibleParam>;
71
+ private readonly _afterVisible$;
72
+ readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
73
+ readonly endEditing$: Subject<RichText>;
74
+ private _currentEditRectInfo;
75
+ constructor(_editorService: IEditorService, _contextService: IContextService, _renderManagerService: IRenderManagerService);
76
+ dispose(): void;
77
+ getEditorRect(): ISetEditorInfo;
78
+ /**
79
+ * 1st part of startEditing.
80
+ * editorBridgeRenderController@startEditing ---> editorBridgeRenderController@_updateEditor
81
+ * @editorInfo editorInfo
82
+ */
83
+ setEditorRect(editorInfo: ISetEditorInfo): void;
84
+ changeVisible(param: IEditorBridgeServiceVisibleParam): void;
85
+ /**
86
+ * get info from _currentEditRectInfo
87
+ *
88
+ * invoked by slide-editing.render-controller.ts@_handleEditorVisible
89
+ * && this@setEditorRect
90
+ */
91
+ getEditRectState(): Readonly<Nullable<IEditorBridgeServiceParam>>;
92
+ changeEditorDirty(dirtyStatus: boolean): void;
93
+ isVisible(): boolean;
94
+ getEditorDirty(): boolean;
95
+ getCurrentEditorId(): string;
96
+ /**
97
+ * @deprecated
98
+ */
99
+ genDocData(target: RichText): IDocumentData;
100
+ }
@@ -0,0 +1,41 @@
1
+ import { IDisposable, IPosition, Nullable } from '@univerjs/core';
2
+ import { Observable } from 'rxjs';
3
+ export interface ICellEditorManagerParam extends Partial<IPosition> {
4
+ show: boolean;
5
+ }
6
+ export interface ICellEditorBoundingClientRect {
7
+ left: number;
8
+ top: number;
9
+ width: number;
10
+ height: number;
11
+ }
12
+ export interface ISlideEditorManagerService {
13
+ state$: Observable<Nullable<ICellEditorManagerParam>>;
14
+ rect$: Observable<Nullable<ICellEditorBoundingClientRect>>;
15
+ focus$: Observable<boolean>;
16
+ dispose(): void;
17
+ setState(param: ICellEditorManagerParam): void;
18
+ getState(): Readonly<Nullable<ICellEditorManagerParam>>;
19
+ setRect(param: ICellEditorBoundingClientRect): void;
20
+ getRect(): Readonly<Nullable<ICellEditorBoundingClientRect>>;
21
+ setFocus(param: boolean): void;
22
+ }
23
+ export declare class SlideEditorManagerService implements ISlideEditorManagerService, IDisposable {
24
+ private _state;
25
+ private _rect;
26
+ private readonly _state$;
27
+ readonly state$: Observable<Nullable<ICellEditorManagerParam>>;
28
+ private readonly _rect$;
29
+ readonly rect$: Observable<Nullable<ICellEditorBoundingClientRect>>;
30
+ private _focus;
31
+ private readonly _focus$;
32
+ readonly focus$: Observable<boolean>;
33
+ dispose(): void;
34
+ setState(param: ICellEditorManagerParam): void;
35
+ getRect(): Readonly<Nullable<ICellEditorBoundingClientRect>>;
36
+ setRect(param: ICellEditorBoundingClientRect): void;
37
+ getState(): Readonly<Nullable<ICellEditorManagerParam>>;
38
+ setFocus(param?: boolean): void;
39
+ private _refresh;
40
+ }
41
+ export declare const ISlideEditorManagerService: import('@univerjs/core').IdentifierDecorator<SlideEditorManagerService>;
@@ -0,0 +1,21 @@
1
+ import { IDisposable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
+ import { IRenderManagerService, BaseObject, IBoundRectNoAngle, Scene } from '@univerjs/engine-render';
3
+ import { IPopup, ICanvasPopupService } from '@univerjs/ui';
4
+ export interface ISlideCanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside' | 'hideOnInvisible'> {
5
+ mask?: boolean;
6
+ extraProps?: Record<string, any>;
7
+ }
8
+ export declare function transformBound2OffsetBound(originBound: IBoundRectNoAngle, scene: Scene): IBoundRectNoAngle;
9
+ export declare function transformPosition2Offset(x: number, y: number, scene: Scene): {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ export declare class SlideCanvasPopMangerService extends Disposable {
14
+ private readonly _globalPopupManagerService;
15
+ private readonly _renderManagerService;
16
+ private readonly _univerInstanceService;
17
+ private readonly _commandService;
18
+ constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
19
+ private _createObjectPositionObserver;
20
+ attachPopupToObject(targetObject: BaseObject, popup: ISlideCanvasPopup): IDisposable;
21
+ }
@@ -0,0 +1,16 @@
1
+ import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ /**
4
+ * This controller is responsible for managing units of a specific kind to be rendered on the canvas.
5
+ */
6
+ export declare class SlideRenderService extends RxDisposable {
7
+ private readonly _contextService;
8
+ private readonly _instanceSrv;
9
+ private readonly _renderManagerService;
10
+ constructor(_contextService: IContextService, _instanceSrv: IUniverInstanceService, _renderManagerService: IRenderManagerService);
11
+ private _init;
12
+ private _initSlideDataListener;
13
+ private _createRenderer;
14
+ private _disposeRenderer;
15
+ private _initContextListener;
16
+ }
@@ -1,13 +1,17 @@
1
1
  import { Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
2
-
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
+ import { IUniverSlidesDrawingConfig } from './controllers/slide-ui.controller';
3
4
  export declare const SLIDE_UI_PLUGIN_NAME = "SLIDE_UI";
4
5
  export declare class UniverSlidesUIPlugin extends Plugin {
6
+ private readonly _config;
5
7
  readonly _injector: Injector;
8
+ private readonly _renderManagerService;
6
9
  private readonly _univerInstanceService;
7
10
  static pluginName: string;
8
11
  static type: UniverInstanceType;
9
- constructor(_config: unknown, _injector: Injector, _univerInstanceService: IUniverInstanceService);
10
- onStarting(injector: Injector): void;
12
+ constructor(_config: Partial<IUniverSlidesDrawingConfig>, _injector: Injector, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
13
+ onStarting(): void;
14
+ onReady(): void;
11
15
  onRendered(): void;
12
16
  private _markSlideAsFocused;
13
17
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface ISlideRichTextProps {
17
+ /**
18
+ * top offset value of PPT card area(px).
19
+ */
20
+ top: number;
21
+ /**
22
+ * left offset value of PPT card area(px).
23
+ */
24
+ left: number;
25
+ width: number;
26
+ height: number;
27
+ scaleX: number;
28
+ scaleY: number;
29
+ text: string;
30
+ fs: number;
31
+ }
32
+ export declare enum CursorChange {
33
+ InitialState = 0,
34
+ StartEditor = 1,
35
+ CursorChange = 2
36
+ }
37
+ export type PageID = string;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface ICellIEditorProps {
3
+ }
4
+ /**
5
+ * Floating editor's container.
6
+ * @returns
7
+ */
8
+ export declare const SlideEditorContainer: React.FC<ICellIEditorProps>;
9
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './EditorContainer';