@univerjs/engine-render 0.1.0-alpha.1 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +178 -0
- package/README.md +1 -1
- package/lib/cjs/index.js +73 -23962
- package/lib/es/index.js +15060 -0
- package/lib/types/base-object.d.ts +21 -6
- package/lib/types/basics/cell-data.d.ts +15 -1
- package/lib/types/basics/const.d.ts +16 -154
- package/lib/types/basics/document-node-tools.d.ts +15 -1
- package/lib/types/basics/draw.d.ts +15 -1
- package/lib/types/basics/font-cache.d.ts +15 -1
- package/lib/types/basics/i-document-skeleton-cached.d.ts +17 -3
- package/lib/types/basics/i-events.d.ts +17 -6
- package/lib/types/basics/index.d.ts +15 -1
- package/lib/types/basics/interfaces.d.ts +15 -1
- package/lib/types/basics/path2.d.ts +15 -1
- package/lib/types/basics/performance-monitor.d.ts +15 -1
- package/lib/types/basics/position.d.ts +15 -1
- package/lib/types/basics/quick-event.d.ts +15 -1
- package/lib/types/basics/range.d.ts +20 -1
- package/lib/types/basics/scroll-xy.d.ts +15 -1
- package/lib/types/basics/tools.d.ts +22 -8
- package/lib/types/basics/transform.d.ts +15 -1
- package/lib/types/basics/unit-convert.d.ts +15 -1
- package/lib/types/basics/vector2.d.ts +23 -1
- package/lib/types/canvas.d.ts +15 -1
- package/lib/types/components/component.d.ts +22 -8
- package/lib/types/components/docs/block/block-error.d.ts +15 -1
- package/lib/types/components/docs/block/index.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/bullet.d.ts +16 -2
- package/lib/types/components/docs/block/paragraph/index.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +32 -9
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts +15 -1
- package/lib/types/components/docs/block/section.d.ts +15 -1
- package/lib/types/components/docs/common/column.d.ts +15 -1
- package/lib/types/components/docs/common/convert-cursor.d.ts +17 -3
- package/lib/types/components/docs/common/index.d.ts +15 -1
- package/lib/types/components/docs/common/line.d.ts +16 -2
- package/lib/types/components/docs/common/liquid.d.ts +15 -1
- package/lib/types/components/docs/common/page.d.ts +15 -1
- package/lib/types/components/docs/common/range.d.ts +17 -3
- package/lib/types/components/docs/common/section.d.ts +15 -1
- package/lib/types/components/docs/common/span.d.ts +17 -1
- package/lib/types/components/docs/common/tools.d.ts +15 -2
- package/lib/types/components/docs/doc-component.d.ts +21 -11
- package/lib/types/components/docs/doc-extension.d.ts +17 -2
- package/lib/types/components/docs/doc-skeleton.d.ts +18 -4
- package/lib/types/components/docs/document.d.ts +18 -7
- package/lib/types/components/docs/extensions/background.d.ts +15 -1
- package/lib/types/components/docs/extensions/border.d.ts +15 -1
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +16 -1
- package/lib/types/components/docs/extensions/index.d.ts +15 -1
- package/lib/types/components/docs/extensions/line.d.ts +16 -1
- package/lib/types/components/docs/horizon-bar.d.ts +15 -1
- package/lib/types/components/docs/index.d.ts +15 -1
- package/lib/types/components/docs/text-selection-render-manager.d.ts +41 -25
- package/lib/types/components/docs/vertical-bar.d.ts +15 -1
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +15 -1
- package/lib/types/components/docs/view-model/document-view-model.d.ts +15 -1
- package/lib/types/components/extension.d.ts +17 -3
- package/lib/types/components/index.d.ts +15 -1
- package/lib/types/components/sheets/column-header.d.ts +17 -3
- package/lib/types/components/sheets/extensions/background.d.ts +17 -3
- package/lib/types/components/sheets/extensions/border.d.ts +17 -3
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +15 -1
- package/lib/types/components/sheets/extensions/font.d.ts +17 -3
- package/lib/types/components/sheets/extensions/index.d.ts +15 -2
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +15 -1
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +19 -2
- package/lib/types/components/sheets/index.d.ts +15 -1
- package/lib/types/components/sheets/interfaces.d.ts +17 -2
- package/lib/types/components/sheets/row-header.d.ts +17 -3
- package/lib/types/components/sheets/sheet-component.d.ts +23 -9
- package/lib/types/components/sheets/sheet-skeleton.d.ts +43 -11
- package/lib/types/components/sheets/spreadsheet.d.ts +33 -17
- package/lib/types/components/skeleton.d.ts +15 -1
- package/lib/types/components/slides/index.d.ts +15 -1
- package/lib/types/components/slides/slide.d.ts +15 -1
- package/lib/types/custom/custom-object.d.ts +17 -3
- package/lib/types/custom/index.d.ts +15 -1
- package/lib/types/engine.d.ts +18 -4
- package/lib/types/group.d.ts +17 -3
- package/lib/types/index.d.ts +16 -2
- package/lib/types/layer.d.ts +29 -3
- package/lib/types/render-engine.d.ts +16 -2
- package/lib/types/render-manager.service.d.ts +15 -1
- package/lib/types/scene-viewer.d.ts +17 -3
- package/lib/types/scene.-transformer.d.ts +15 -1
- package/lib/types/scene.d.ts +18 -5
- package/lib/types/scene.input-manager.d.ts +19 -2
- package/lib/types/scroll-timer.d.ts +15 -1
- package/lib/types/services/object-transform-manager.service.d.ts +15 -1
- package/lib/types/shape/base-scroll-bar.d.ts +15 -1
- package/lib/types/shape/circle.d.ts +15 -1
- package/lib/types/shape/control.d.ts +15 -1
- package/lib/types/shape/drawing.d.ts +15 -1
- package/lib/types/shape/index.d.ts +15 -1
- package/lib/types/shape/path.d.ts +15 -1
- package/lib/types/shape/picture.d.ts +15 -1
- package/lib/types/shape/rect.d.ts +15 -1
- package/lib/types/shape/regular-polygon.d.ts +15 -1
- package/lib/types/shape/rich-text.d.ts +17 -6
- package/lib/types/shape/scroll-bar.d.ts +15 -1
- package/lib/types/shape/selection.d.ts +15 -1
- package/lib/types/shape/shape.d.ts +17 -11
- package/lib/types/thin-engine.d.ts +15 -1
- package/lib/types/thin-scene.d.ts +18 -3
- package/lib/types/viewport.d.ts +26 -11
- package/lib/umd/index.js +73 -0
- package/package.json +22 -14
- package/LICENSE +0 -21
- package/lib/esm/index.js +0 -23259
- package/lib/types/base-object.d.ts.map +0 -1
- package/lib/types/basics/cell-data.d.ts.map +0 -1
- package/lib/types/basics/const.d.ts.map +0 -1
- package/lib/types/basics/document-node-tools.d.ts.map +0 -1
- package/lib/types/basics/draw.d.ts.map +0 -1
- package/lib/types/basics/font-cache.d.ts.map +0 -1
- package/lib/types/basics/i-document-skeleton-cached.d.ts.map +0 -1
- package/lib/types/basics/i-events.d.ts.map +0 -1
- package/lib/types/basics/index.d.ts.map +0 -1
- package/lib/types/basics/interfaces.d.ts.map +0 -1
- package/lib/types/basics/path2.d.ts.map +0 -1
- package/lib/types/basics/performance-monitor.d.ts.map +0 -1
- package/lib/types/basics/position.d.ts.map +0 -1
- package/lib/types/basics/quick-event.d.ts.map +0 -1
- package/lib/types/basics/range.d.ts.map +0 -1
- package/lib/types/basics/scroll-xy.d.ts.map +0 -1
- package/lib/types/basics/tools.d.ts.map +0 -1
- package/lib/types/basics/transform.d.ts.map +0 -1
- package/lib/types/basics/unit-convert.d.ts.map +0 -1
- package/lib/types/basics/vector2.d.ts.map +0 -1
- package/lib/types/canvas.d.ts.map +0 -1
- package/lib/types/components/component.d.ts.map +0 -1
- package/lib/types/components/docs/block/block-error.d.ts.map +0 -1
- package/lib/types/components/docs/block/index.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/bullet.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/index.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts.map +0 -1
- package/lib/types/components/docs/block/section.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table-cell.d.ts +0 -1
- package/lib/types/components/docs/block/table/table-cell.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table-row.d.ts +0 -1
- package/lib/types/components/docs/block/table/table-row.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table.d.ts +0 -1
- package/lib/types/components/docs/block/table/table.d.ts.map +0 -1
- package/lib/types/components/docs/common/column.d.ts.map +0 -1
- package/lib/types/components/docs/common/convert-cursor.d.ts.map +0 -1
- package/lib/types/components/docs/common/index.d.ts.map +0 -1
- package/lib/types/components/docs/common/line.d.ts.map +0 -1
- package/lib/types/components/docs/common/liquid.d.ts.map +0 -1
- package/lib/types/components/docs/common/page.d.ts.map +0 -1
- package/lib/types/components/docs/common/range.d.ts.map +0 -1
- package/lib/types/components/docs/common/section.d.ts.map +0 -1
- package/lib/types/components/docs/common/span.d.ts.map +0 -1
- package/lib/types/components/docs/common/tools.d.ts.map +0 -1
- package/lib/types/components/docs/doc-component.d.ts.map +0 -1
- package/lib/types/components/docs/doc-extension.d.ts.map +0 -1
- package/lib/types/components/docs/doc-skeleton.d.ts.map +0 -1
- package/lib/types/components/docs/document.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/background.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/border.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/index.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/line.d.ts.map +0 -1
- package/lib/types/components/docs/horizon-bar.d.ts.map +0 -1
- package/lib/types/components/docs/index.d.ts.map +0 -1
- package/lib/types/components/docs/text-selection-render-manager.d.ts.map +0 -1
- package/lib/types/components/docs/vertical-bar.d.ts.map +0 -1
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts.map +0 -1
- package/lib/types/components/docs/view-model/document-view-model.d.ts.map +0 -1
- package/lib/types/components/extension.d.ts.map +0 -1
- package/lib/types/components/index.d.ts.map +0 -1
- package/lib/types/components/sheets/column-header.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/background.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts +0 -13
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/border.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/font.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/index.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts.map +0 -1
- package/lib/types/components/sheets/index.d.ts.map +0 -1
- package/lib/types/components/sheets/interfaces.d.ts.map +0 -1
- package/lib/types/components/sheets/row-header.d.ts.map +0 -1
- package/lib/types/components/sheets/sheet-component.d.ts.map +0 -1
- package/lib/types/components/sheets/sheet-skeleton.d.ts.map +0 -1
- package/lib/types/components/sheets/spreadsheet.d.ts.map +0 -1
- package/lib/types/components/skeleton.d.ts.map +0 -1
- package/lib/types/components/slides/index.d.ts.map +0 -1
- package/lib/types/components/slides/slide.d.ts.map +0 -1
- package/lib/types/custom/custom-object.d.ts.map +0 -1
- package/lib/types/custom/index.d.ts.map +0 -1
- package/lib/types/engine.d.ts.map +0 -1
- package/lib/types/group.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/layer.d.ts.map +0 -1
- package/lib/types/render-engine.d.ts.map +0 -1
- package/lib/types/render-manager.service.d.ts.map +0 -1
- package/lib/types/scene-viewer.d.ts.map +0 -1
- package/lib/types/scene.-transformer.d.ts.map +0 -1
- package/lib/types/scene.d.ts.map +0 -1
- package/lib/types/scene.input-manager.d.ts.map +0 -1
- package/lib/types/scroll-timer.d.ts.map +0 -1
- package/lib/types/services/object-transform-manager.service.d.ts.map +0 -1
- package/lib/types/shape/base-scroll-bar.d.ts.map +0 -1
- package/lib/types/shape/circle.d.ts.map +0 -1
- package/lib/types/shape/control.d.ts.map +0 -1
- package/lib/types/shape/drawing.d.ts.map +0 -1
- package/lib/types/shape/index.d.ts.map +0 -1
- package/lib/types/shape/path.d.ts.map +0 -1
- package/lib/types/shape/picture.d.ts.map +0 -1
- package/lib/types/shape/rect.d.ts.map +0 -1
- package/lib/types/shape/regular-polygon.d.ts.map +0 -1
- package/lib/types/shape/rich-text.d.ts.map +0 -1
- package/lib/types/shape/scroll-bar.d.ts.map +0 -1
- package/lib/types/shape/selection.d.ts.map +0 -1
- package/lib/types/shape/shape.d.ts.map +0 -1
- package/lib/types/thin-engine.d.ts.map +0 -1
- package/lib/types/thin-scene.d.ts.map +0 -1
- package/lib/types/viewport.d.ts.map +0 -1
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
|
|
2
17
|
import { Observable } from '@univerjs/core';
|
|
3
18
|
import type { EVENT_TYPE } from './basics/const';
|
|
@@ -5,7 +20,7 @@ import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
|
5
20
|
import type { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
6
21
|
import type { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
7
22
|
import { Transform } from './basics/transform';
|
|
8
|
-
import type {
|
|
23
|
+
import type { IViewportBound, Vector2 } from './basics/vector2';
|
|
9
24
|
export declare const BASE_OBJECT_ARRAY: string[];
|
|
10
25
|
export declare abstract class BaseObject {
|
|
11
26
|
groupKey?: string;
|
|
@@ -50,6 +65,7 @@ export declare abstract class BaseObject {
|
|
|
50
65
|
private _cursor;
|
|
51
66
|
private _isTransformer;
|
|
52
67
|
private _forceRender;
|
|
68
|
+
private _layer;
|
|
53
69
|
constructor(key?: string);
|
|
54
70
|
get transform(): Transform;
|
|
55
71
|
get topOrigin(): string | number;
|
|
@@ -79,6 +95,7 @@ export declare abstract class BaseObject {
|
|
|
79
95
|
get debounceParentDirty(): boolean;
|
|
80
96
|
get isTransformer(): boolean;
|
|
81
97
|
get cursor(): CURSOR_TYPE;
|
|
98
|
+
get layer(): any;
|
|
82
99
|
set transform(trans: Transform);
|
|
83
100
|
set zIndex(index: number);
|
|
84
101
|
set parent(o: any);
|
|
@@ -86,6 +103,7 @@ export declare abstract class BaseObject {
|
|
|
86
103
|
set debounceParentDirty(state: boolean);
|
|
87
104
|
set isTransformer(state: boolean);
|
|
88
105
|
set cursor(val: CURSOR_TYPE);
|
|
106
|
+
set layer(layer: any);
|
|
89
107
|
protected set top(num: number | string);
|
|
90
108
|
protected set left(num: number | string);
|
|
91
109
|
protected set width(num: number | string);
|
|
@@ -107,7 +125,7 @@ export declare abstract class BaseObject {
|
|
|
107
125
|
skew(skewX?: number, skewY?: number): this;
|
|
108
126
|
flip(flipX?: boolean, flipY?: boolean): this;
|
|
109
127
|
transformByState(option: IObjectFullState): this | undefined;
|
|
110
|
-
isRender(bounds?:
|
|
128
|
+
isRender(bounds?: IViewportBound): boolean | undefined;
|
|
111
129
|
getParent(): any;
|
|
112
130
|
getState(): {
|
|
113
131
|
left: number;
|
|
@@ -124,13 +142,11 @@ export declare abstract class BaseObject {
|
|
|
124
142
|
};
|
|
125
143
|
hide(): void;
|
|
126
144
|
show(): void;
|
|
127
|
-
render(ctx: CanvasRenderingContext2D, bounds?:
|
|
145
|
+
render(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
|
|
128
146
|
isHit(coord: Vector2): boolean;
|
|
129
147
|
on(eventType: EVENT_TYPE, func: (evt: unknown, state: EventState) => void): Nullable<Observer<unknown>>;
|
|
130
148
|
off(eventType: EVENT_TYPE, observer: Nullable<Observer<unknown>>): void;
|
|
131
149
|
clear(eventType: EVENT_TYPE): void;
|
|
132
|
-
resizeCacheCanvas(): void;
|
|
133
|
-
scaleCacheCanvas(): void;
|
|
134
150
|
triggerPointerMove(evt: IPointerEvent | IMouseEvent): boolean;
|
|
135
151
|
triggerPointerDown(evt: IPointerEvent | IMouseEvent): boolean;
|
|
136
152
|
triggerPointerUp(evt: IPointerEvent | IMouseEvent): boolean;
|
|
@@ -152,4 +168,3 @@ export declare abstract class BaseObject {
|
|
|
152
168
|
protected _setTransForm(): void;
|
|
153
169
|
private _makeDirtyMix;
|
|
154
170
|
}
|
|
155
|
-
//# sourceMappingURL=base-object.d.ts.map
|
|
@@ -1,6 +1,20 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ICellData, IStyleData } from '@univerjs/core';
|
|
2
17
|
export interface ITempCellData extends ICellData {
|
|
3
18
|
style: IStyleData;
|
|
4
19
|
prefix: string[];
|
|
5
20
|
}
|
|
6
|
-
//# sourceMappingURL=cell-data.d.ts.map
|
|
@@ -1,156 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
burlyWood: number[];
|
|
17
|
-
cadetBlue: number[];
|
|
18
|
-
chartreuse: number[];
|
|
19
|
-
chocolate: number[];
|
|
20
|
-
coral: number[];
|
|
21
|
-
cornFlowerBlue: number[];
|
|
22
|
-
cornSilk: number[];
|
|
23
|
-
crimson: number[];
|
|
24
|
-
cyan: number[];
|
|
25
|
-
darkblue: number[];
|
|
26
|
-
darkCyan: number[];
|
|
27
|
-
darkGoldenrod: number[];
|
|
28
|
-
darkGray: number[];
|
|
29
|
-
darkGreen: number[];
|
|
30
|
-
darkGrey: number[];
|
|
31
|
-
darkKhaki: number[];
|
|
32
|
-
darkMagenta: number[];
|
|
33
|
-
darkOliveGreen: number[];
|
|
34
|
-
darkOrange: number[];
|
|
35
|
-
darkOrchid: number[];
|
|
36
|
-
darkRed: number[];
|
|
37
|
-
darkSalmon: number[];
|
|
38
|
-
darkSeaGreen: number[];
|
|
39
|
-
darkSlateBlue: number[];
|
|
40
|
-
darkSlateGray: number[];
|
|
41
|
-
darkSlateGrey: number[];
|
|
42
|
-
darkTurquoise: number[];
|
|
43
|
-
darkViolet: number[];
|
|
44
|
-
deepPink: number[];
|
|
45
|
-
deepSkyBlue: number[];
|
|
46
|
-
dimGray: number[];
|
|
47
|
-
dimGrey: number[];
|
|
48
|
-
dodgerBlue: number[];
|
|
49
|
-
firebrick: number[];
|
|
50
|
-
floralWhite: number[];
|
|
51
|
-
forestGreen: number[];
|
|
52
|
-
fuchsia: number[];
|
|
53
|
-
gainsboro: number[];
|
|
54
|
-
ghostWhite: number[];
|
|
55
|
-
gold: number[];
|
|
56
|
-
goldenrod: number[];
|
|
57
|
-
gray: number[];
|
|
58
|
-
green: number[];
|
|
59
|
-
greenYellow: number[];
|
|
60
|
-
grey: number[];
|
|
61
|
-
honeydew: number[];
|
|
62
|
-
hotPink: number[];
|
|
63
|
-
indianRed: number[];
|
|
64
|
-
indigo: number[];
|
|
65
|
-
ivory: number[];
|
|
66
|
-
khaki: number[];
|
|
67
|
-
lavender: number[];
|
|
68
|
-
lavenderBlush: number[];
|
|
69
|
-
lawnGreen: number[];
|
|
70
|
-
lemonChiffon: number[];
|
|
71
|
-
lightblue: number[];
|
|
72
|
-
lightCoral: number[];
|
|
73
|
-
lightCyan: number[];
|
|
74
|
-
lightGoldenrodYellow: number[];
|
|
75
|
-
lightGray: number[];
|
|
76
|
-
lightGreen: number[];
|
|
77
|
-
lightGrey: number[];
|
|
78
|
-
lightPink: number[];
|
|
79
|
-
lightSalmon: number[];
|
|
80
|
-
lightSeaGreen: number[];
|
|
81
|
-
lightSkyBlue: number[];
|
|
82
|
-
lightSlateGray: number[];
|
|
83
|
-
lightSlateGrey: number[];
|
|
84
|
-
lightSteelBlue: number[];
|
|
85
|
-
lightYellow: number[];
|
|
86
|
-
lime: number[];
|
|
87
|
-
limeGreen: number[];
|
|
88
|
-
linen: number[];
|
|
89
|
-
magenta: number[];
|
|
90
|
-
maroon: number[];
|
|
91
|
-
mediumAquamarine: number[];
|
|
92
|
-
mediumBlue: number[];
|
|
93
|
-
mediumOrchid: number[];
|
|
94
|
-
mediumPurple: number[];
|
|
95
|
-
mediumSeaGreen: number[];
|
|
96
|
-
mediumSlateBlue: number[];
|
|
97
|
-
mediumSpringGreen: number[];
|
|
98
|
-
mediumTurquoise: number[];
|
|
99
|
-
mediumVioletRed: number[];
|
|
100
|
-
midBightBlue: number[];
|
|
101
|
-
mintCream: number[];
|
|
102
|
-
mistyRose: number[];
|
|
103
|
-
moccasin: number[];
|
|
104
|
-
navajoWhite: number[];
|
|
105
|
-
navy: number[];
|
|
106
|
-
oldLace: number[];
|
|
107
|
-
olive: number[];
|
|
108
|
-
oliveDrab: number[];
|
|
109
|
-
orange: number[];
|
|
110
|
-
orangeRed: number[];
|
|
111
|
-
orchid: number[];
|
|
112
|
-
paleGoldenrod: number[];
|
|
113
|
-
paleGreen: number[];
|
|
114
|
-
paleTurquoise: number[];
|
|
115
|
-
paleVioletRed: number[];
|
|
116
|
-
papayaWhip: number[];
|
|
117
|
-
peachPuff: number[];
|
|
118
|
-
peru: number[];
|
|
119
|
-
pink: number[];
|
|
120
|
-
plum: number[];
|
|
121
|
-
powderBlue: number[];
|
|
122
|
-
purple: number[];
|
|
123
|
-
rebeccaPurple: number[];
|
|
124
|
-
red: number[];
|
|
125
|
-
rosyBrown: number[];
|
|
126
|
-
royalBlue: number[];
|
|
127
|
-
saddleBrown: number[];
|
|
128
|
-
salmon: number[];
|
|
129
|
-
sandyBrown: number[];
|
|
130
|
-
seaGreen: number[];
|
|
131
|
-
seashell: number[];
|
|
132
|
-
sienna: number[];
|
|
133
|
-
silver: number[];
|
|
134
|
-
skyBlue: number[];
|
|
135
|
-
slateBlue: number[];
|
|
136
|
-
slateGray: number[];
|
|
137
|
-
slateGrey: number[];
|
|
138
|
-
snow: number[];
|
|
139
|
-
springGreen: number[];
|
|
140
|
-
steelBlue: number[];
|
|
141
|
-
tan: number[];
|
|
142
|
-
teal: number[];
|
|
143
|
-
thistle: number[];
|
|
144
|
-
transparent: number[];
|
|
145
|
-
tomato: number[];
|
|
146
|
-
turquoise: number[];
|
|
147
|
-
violet: number[];
|
|
148
|
-
wheat: number[];
|
|
149
|
-
white: number[];
|
|
150
|
-
whiteSmoke: number[];
|
|
151
|
-
yellow: number[];
|
|
152
|
-
yellowGreen: number[];
|
|
153
|
-
};
|
|
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
|
+
*/
|
|
154
16
|
export declare enum SHAPE_TYPE {
|
|
155
17
|
RECT = "rect",
|
|
156
18
|
CIRCLE = "circle",
|
|
@@ -260,4 +122,4 @@ export declare enum RENDER_CLASS_TYPE {
|
|
|
260
122
|
}
|
|
261
123
|
export declare const DEFAULT_SELECTION_LAYER_INDEX = 1000;
|
|
262
124
|
export declare const MAXIMUM_ROW_HEIGHT = 2000;
|
|
263
|
-
|
|
125
|
+
export declare const FIX_ONE_PIXEL_BLUR_OFFSET = 0.5;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IDocumentBody, Nullable } from '@univerjs/core';
|
|
2
17
|
import type { IDocumentSkeletonSpan } from './i-document-skeleton-cached';
|
|
3
18
|
export declare function hasListSpan(span: Nullable<IDocumentSkeletonSpan>): boolean;
|
|
@@ -7,4 +22,3 @@ export declare function isFirstSpan(span: Nullable<IDocumentSkeletonSpan>): bool
|
|
|
7
22
|
export declare function getParagraphBySpan(span: Nullable<IDocumentSkeletonSpan>, body?: IDocumentBody): import("@univerjs/core").IParagraph | undefined;
|
|
8
23
|
export declare function isPlaceholderOrSpace(span: Nullable<IDocumentSkeletonSpan>): boolean;
|
|
9
24
|
export declare function isSameLine(span1: Nullable<IDocumentSkeletonSpan>, span2: Nullable<IDocumentSkeletonSpan>): boolean;
|
|
10
|
-
//# sourceMappingURL=document-node-tools.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { IPosition } from '@univerjs/core';
|
|
2
17
|
import { BorderStyleTypes } from '@univerjs/core';
|
|
3
18
|
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
@@ -36,4 +51,3 @@ export declare function getTranslateInSpreadContextWithPixelRatio(): {
|
|
|
36
51
|
left: number;
|
|
37
52
|
top: number;
|
|
38
53
|
};
|
|
39
|
-
//# sourceMappingURL=draw.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { Nullable } from '@univerjs/core';
|
|
2
17
|
import type { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
|
|
3
18
|
import type { IMeasureTextCache } from './interfaces';
|
|
@@ -34,4 +49,3 @@ export declare class FontCache {
|
|
|
34
49
|
private static _getBoundingBoxByFont;
|
|
35
50
|
private static _calculateBoundingBoxByMeasureText;
|
|
36
51
|
}
|
|
37
|
-
//# sourceMappingURL=font-cache.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
2
17
|
export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
|
|
3
18
|
pages: IDocumentSkeletonPage[];
|
|
@@ -117,8 +132,8 @@ export interface IDocumentSkeletonSpan {
|
|
|
117
132
|
bBox: IDocumentSkeletonBoundingBox;
|
|
118
133
|
paddingLeft: number;
|
|
119
134
|
left: number;
|
|
120
|
-
count
|
|
121
|
-
content
|
|
135
|
+
count: number;
|
|
136
|
+
content: string;
|
|
122
137
|
ts?: ITextStyle;
|
|
123
138
|
fontStyle?: IDocumentSkeletonFontStyle;
|
|
124
139
|
parent?: IDocumentSkeletonDivide;
|
|
@@ -207,4 +222,3 @@ export declare enum PageLayoutType {
|
|
|
207
222
|
HORIZONTAL = 1,
|
|
208
223
|
AUTO = 2
|
|
209
224
|
}
|
|
210
|
-
//# sourceMappingURL=i-document-skeleton-cached.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { Nullable } from '@univerjs/core';
|
|
2
17
|
/**
|
|
3
18
|
* Alias type for number that are floats
|
|
@@ -31,7 +46,7 @@ export type Immutable<T> = T extends Primitive ? T : T extends Array<infer U> ?
|
|
|
31
46
|
/**
|
|
32
47
|
* Type modifier to make all the properties of an object Readonly recursively
|
|
33
48
|
*/
|
|
34
|
-
export type DeepImmutable<T> = T extends Primitive ? T : T extends Array<infer U> ?
|
|
49
|
+
export type DeepImmutable<T> = T extends Primitive ? T : T extends Array<infer U> ? IDeepImmutableArray<U> : DeepImmutableObject<T>;
|
|
35
50
|
/**
|
|
36
51
|
* Type modifier to make object properties readonly.
|
|
37
52
|
*/
|
|
@@ -39,12 +54,9 @@ export type DeepImmutableObject<T> = {
|
|
|
39
54
|
readonly [K in keyof T]: DeepImmutable<T[K]>;
|
|
40
55
|
};
|
|
41
56
|
/** @hidden */
|
|
42
|
-
interface
|
|
57
|
+
interface IDeepImmutableArray<T> extends ReadonlyArray<DeepImmutable<T>> {
|
|
43
58
|
}
|
|
44
59
|
/** @hidden */
|
|
45
|
-
export interface Class<T> {
|
|
46
|
-
new (...param: any): T;
|
|
47
|
-
}
|
|
48
60
|
/**
|
|
49
61
|
* Event Types
|
|
50
62
|
*/
|
|
@@ -301,4 +313,3 @@ export declare enum PointerInput {
|
|
|
301
313
|
FakeMove = 12
|
|
302
314
|
}
|
|
303
315
|
export {};
|
|
304
|
-
//# sourceMappingURL=i-events.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export * from './cell-data';
|
|
2
17
|
export * from './const';
|
|
3
18
|
export * from './document-node-tools';
|
|
@@ -13,4 +28,3 @@ export * from './scroll-xy';
|
|
|
13
28
|
export * from './tools';
|
|
14
29
|
export * from './transform';
|
|
15
30
|
export * from './vector2';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
|
|
2
17
|
import type { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
3
18
|
import type { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonHeader, IDocumentSkeletonSpan } from './i-document-skeleton-cached';
|
|
@@ -99,4 +114,3 @@ export interface INodeSearch {
|
|
|
99
114
|
export interface INodePosition extends INodeSearch {
|
|
100
115
|
isBack: boolean;
|
|
101
116
|
}
|
|
102
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { Nullable } from '@univerjs/core';
|
|
2
17
|
import { Vector2 } from './vector2';
|
|
3
18
|
export declare const INITIAL_Path2: Vector2[];
|
|
@@ -7,4 +22,3 @@ export declare class Path2 {
|
|
|
7
22
|
intersection(lines: Vector2[]): Nullable<Vector2[]>;
|
|
8
23
|
private _intersection;
|
|
9
24
|
}
|
|
10
|
-
//# sourceMappingURL=path2.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
/**
|
|
2
17
|
* Performance monitor tracks rolling average frame-time and frame-time variance over a user defined sliding-window
|
|
3
18
|
*/
|
|
@@ -108,4 +123,3 @@ export declare class RollingAverage {
|
|
|
108
123
|
*/
|
|
109
124
|
protected _wrapPosition(i: number): number;
|
|
110
125
|
}
|
|
111
|
-
//# sourceMappingURL=performance-monitor.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { BaseObject } from '../base-object';
|
|
2
17
|
import type { IBoundRect } from './vector2';
|
|
3
18
|
export declare function getOffsetRectForDom(ele: HTMLElement): {
|
|
@@ -10,4 +25,3 @@ export declare function transformBoundingCoord(object: BaseObject, bounds: IBoun
|
|
|
10
25
|
minY: number;
|
|
11
26
|
maxY: number;
|
|
12
27
|
};
|
|
13
|
-
//# sourceMappingURL=position.d.ts.map
|
|
@@ -1,4 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { BaseObject } from '../base-object';
|
|
2
17
|
import type { IMouseEvent, IPointerEvent } from './i-events';
|
|
3
18
|
export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void;
|
|
4
|
-
//# sourceMappingURL=quick-event.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import type { ITextRangeParam } from '@univerjs/core';
|
|
2
17
|
export interface ITextSelectionStyle {
|
|
3
18
|
strokeWidth: number;
|
|
@@ -9,9 +24,13 @@ export declare const NORMAL_TEXT_SELECTION_PLUGIN_STYLE: ITextSelectionStyle;
|
|
|
9
24
|
export interface ITextRangeWithStyle extends ITextRangeParam {
|
|
10
25
|
style?: ITextSelectionStyle;
|
|
11
26
|
}
|
|
27
|
+
export interface ISuccinctTextRangeParam {
|
|
28
|
+
startOffset: number;
|
|
29
|
+
endOffset: number;
|
|
30
|
+
style?: ITextSelectionStyle;
|
|
31
|
+
}
|
|
12
32
|
export declare enum RANGE_DIRECTION {
|
|
13
33
|
NONE = "none",
|
|
14
34
|
BACKWARD = "backward",
|
|
15
35
|
FORWARD = "forward"
|
|
16
36
|
}
|
|
17
|
-
//# sourceMappingURL=range.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export declare function getCurrentScrollXY(scrollTimer: any): {
|
|
2
17
|
scrollX: any;
|
|
3
18
|
scrollY: any;
|
|
4
19
|
};
|
|
5
|
-
//# sourceMappingURL=scroll-xy.d.ts.map
|