@univerjs/engine-render 0.1.3 → 0.1.5
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 +2 -2
- package/lib/es/index.js +10914 -10855
- package/lib/types/base-object.d.ts +7 -23
- package/lib/types/basics/cell-data.d.ts +2 -16
- package/lib/types/basics/document-node-tools.d.ts +10 -24
- package/lib/types/basics/draw.d.ts +5 -20
- package/lib/types/basics/font-cache.d.ts +4 -18
- package/lib/types/basics/i-document-skeleton-cached.d.ts +15 -23
- package/lib/types/basics/i-events.d.ts +2 -16
- package/lib/types/basics/interfaces.d.ts +7 -21
- package/lib/types/basics/path2.d.ts +2 -16
- package/lib/types/basics/position.d.ts +3 -17
- package/lib/types/basics/quick-event.d.ts +3 -17
- package/lib/types/basics/range.d.ts +2 -16
- package/lib/types/basics/text-rotation.d.ts +2 -16
- package/lib/types/basics/tools.d.ts +10 -20
- package/lib/types/basics/transform.d.ts +3 -17
- package/lib/types/basics/vector2.d.ts +2 -16
- package/lib/types/basics/viewport-subtract.d.ts +3 -0
- package/lib/types/canvas.d.ts +1 -15
- package/lib/types/components/component.d.ts +5 -19
- package/lib/types/components/docs/doc-component.d.ts +10 -25
- package/lib/types/components/docs/doc-extension.d.ts +4 -18
- package/lib/types/components/docs/document.d.ts +10 -26
- package/lib/types/components/docs/extensions/background.d.ts +5 -19
- package/lib/types/components/docs/extensions/border.d.ts +5 -19
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +5 -19
- package/lib/types/components/docs/extensions/line.d.ts +5 -19
- package/lib/types/components/docs/layout/block/paragraph/bullet-ruler.d.ts +3 -0
- package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +5 -0
- package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +5 -0
- package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +21 -0
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +4 -0
- package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +6 -0
- package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +4 -0
- package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +7 -0
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +11 -0
- package/lib/types/components/docs/layout/block/section.d.ts +10 -0
- package/lib/types/components/docs/{doc-skeleton.d.ts → layout/doc-skeleton.d.ts} +11 -26
- package/lib/types/components/docs/layout/linebreak/extensions/tab-linebreak-extension.d.ts +3 -0
- package/lib/types/components/docs/layout/linebreak/linebreaker.d.ts +27 -0
- package/lib/types/components/docs/layout/model/__test__/glyph.spec.d.ts +16 -0
- package/lib/types/components/docs/layout/model/column.d.ts +4 -0
- package/lib/types/components/docs/layout/model/glyph.d.ts +16 -0
- package/lib/types/components/docs/{common → layout/model}/line.d.ts +2 -16
- package/lib/types/components/docs/layout/model/page.d.ts +4 -0
- package/lib/types/components/docs/layout/model/section.d.ts +5 -0
- package/lib/types/components/docs/{common → layout}/tools.d.ts +10 -25
- package/lib/types/components/docs/{common/liquid.d.ts → liquid.d.ts} +4 -19
- package/lib/types/components/docs/{common → text-selection}/convert-cursor.d.ts +9 -23
- package/lib/types/components/docs/{common → text-selection}/text-range.d.ts +10 -25
- package/lib/types/components/docs/{text-selection-render-manager.d.ts → text-selection/text-selection-render-manager.d.ts} +15 -28
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +2 -17
- package/lib/types/components/docs/view-model/document-view-model.d.ts +8 -23
- package/lib/types/components/extension.d.ts +5 -20
- package/lib/types/components/index.d.ts +0 -1
- package/lib/types/components/sheets/column-header.d.ts +5 -19
- package/lib/types/components/sheets/extensions/background.d.ts +4 -18
- package/lib/types/components/sheets/extensions/border.d.ts +4 -18
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/font.d.ts +4 -18
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
- package/lib/types/components/sheets/interfaces.d.ts +4 -18
- package/lib/types/components/sheets/row-header.d.ts +5 -19
- package/lib/types/components/sheets/sheet-component.d.ts +6 -20
- package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
- package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
- package/lib/types/components/skeleton.d.ts +2 -16
- package/lib/types/components/slides/slide.d.ts +5 -20
- package/lib/types/context.d.ts +4 -0
- package/lib/types/custom/custom-object.d.ts +3 -17
- package/lib/types/engine.d.ts +9 -19
- package/lib/types/group.d.ts +4 -19
- package/lib/types/index.d.ts +9 -1
- package/lib/types/layer.d.ts +5 -18
- package/lib/types/render-engine.d.ts +4 -18
- package/lib/types/render-manager.service.d.ts +10 -23
- package/lib/types/scene-viewer.d.ts +7 -21
- package/lib/types/scene.d.ts +14 -29
- package/lib/types/scene.input-manager.d.ts +3 -17
- package/lib/types/scene.transformer.d.ts +5 -20
- package/lib/types/scroll-timer.d.ts +4 -18
- package/lib/types/services/object-transform-manager.service.d.ts +4 -18
- package/lib/types/shape/base-scroll-bar.d.ts +7 -21
- package/lib/types/shape/circle.d.ts +3 -18
- package/lib/types/shape/path.d.ts +3 -18
- package/lib/types/shape/picture.d.ts +4 -19
- package/lib/types/shape/rect.d.ts +3 -18
- package/lib/types/shape/regular-polygon.d.ts +5 -20
- package/lib/types/shape/rich-text.d.ts +4 -18
- package/lib/types/shape/scroll-bar.d.ts +6 -21
- package/lib/types/shape/shape.d.ts +5 -19
- package/lib/types/thin-engine.d.ts +6 -21
- package/lib/types/thin-scene.d.ts +11 -24
- package/lib/types/viewport.d.ts +9 -28
- package/lib/umd/index.js +2 -2
- package/package.json +10 -9
- package/lib/types/components/docs/block/index.d.ts +0 -18
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +0 -17
- package/lib/types/components/docs/block/paragraph/bullet.d.ts +0 -19
- package/lib/types/components/docs/block/paragraph/index.d.ts +0 -21
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +0 -19
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +0 -35
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +0 -18
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts +0 -20
- package/lib/types/components/docs/block/section.d.ts +0 -24
- package/lib/types/components/docs/common/column.d.ts +0 -19
- package/lib/types/components/docs/common/index.d.ts +0 -24
- package/lib/types/components/docs/common/page.d.ts +0 -19
- package/lib/types/components/docs/common/section.d.ts +0 -20
- package/lib/types/components/docs/common/span.d.ts +0 -28
- package/lib/types/components/docs/index.d.ts +0 -22
- package/lib/types/components/docs/linebreak/extensions/tab-linebreak-extension.d.ts +0 -17
- package/lib/types/components/docs/linebreak/linebreaker.d.ts +0 -41
- /package/lib/types/components/docs/{block → layout/block}/block-error.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/__tests__/linebreak.spec.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/break.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/classes.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/index.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/pairs.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/rule.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/swap.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/tiny-inflate.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/trie-data.d.ts +0 -0
- /package/lib/types/components/docs/{linebreak → layout/linebreak}/unicode-trie.d.ts +0 -0
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
import type { IObjectFullState } from '../basics/interfaces';
|
|
17
|
-
import type { IPoint } from '../basics/vector2';
|
|
18
|
-
import type { UniverRenderingContext } from '../context';
|
|
19
|
-
import type { IShapeProps } from './shape';
|
|
20
|
-
import { Shape } from './shape';
|
|
1
|
+
import { IShapeProps, Shape } from './shape';
|
|
2
|
+
import { UniverRenderingContext } from '../context';
|
|
3
|
+
import { IPoint } from '../basics/vector2';
|
|
4
|
+
import { IObjectFullState } from '../basics/interfaces';
|
|
5
|
+
|
|
21
6
|
export interface IRegularPolygonProps extends IShapeProps {
|
|
22
7
|
pointsGroup: IPoint[][];
|
|
23
8
|
}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { UniverRenderingContext } from '../context';
|
|
2
|
+
import { IViewportBound } from '../basics/vector2';
|
|
17
3
|
import { BaseObject } from '../base-object';
|
|
18
|
-
import
|
|
19
|
-
|
|
4
|
+
import { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface IRichTextProps extends ITransformState, IStyleBase {
|
|
21
7
|
text?: string;
|
|
22
8
|
richText?: IDocumentData;
|
|
@@ -1,24 +1,9 @@
|
|
|
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
|
-
import type { Vector2 } from '../basics/vector2';
|
|
17
|
-
import type { UniverRenderingContext } from '../context';
|
|
18
|
-
import type { Viewport } from '../viewport';
|
|
19
|
-
import type { IScrollBarProps } from './base-scroll-bar';
|
|
20
|
-
import { BaseScrollBar } from './base-scroll-bar';
|
|
21
1
|
import { Rect } from './rect';
|
|
2
|
+
import { IScrollBarProps, BaseScrollBar } from './base-scroll-bar';
|
|
3
|
+
import { Viewport } from '../viewport';
|
|
4
|
+
import { UniverRenderingContext } from '../context';
|
|
5
|
+
import { Vector2 } from '../basics/vector2';
|
|
6
|
+
|
|
22
7
|
export declare class ScrollBar extends BaseScrollBar {
|
|
23
8
|
protected _view: Viewport;
|
|
24
9
|
private _mainScene;
|
|
@@ -49,7 +34,7 @@ export declare class ScrollBar extends BaseScrollBar {
|
|
|
49
34
|
resize(parentWidth?: number, parentHeight?: number, contentWidth?: number, contentHeight?: number): void;
|
|
50
35
|
makeDirty(state: boolean): void;
|
|
51
36
|
makeViewDirty(state: boolean): void;
|
|
52
|
-
pick(coord: Vector2): Rect<import(
|
|
37
|
+
pick(coord: Vector2): Rect<import('./rect').IRectProps> | null;
|
|
53
38
|
setProps(props?: IScrollBarProps): void;
|
|
54
39
|
private _resizeHorizontal;
|
|
55
40
|
private _resizeVertical;
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { IScale, Nullable } from '@univerjs/core';
|
|
1
|
+
import { UniverRenderingContext } from '../context';
|
|
2
|
+
import { IViewportBound, Vector2 } from '../basics/vector2';
|
|
3
|
+
import { IObjectFullState } from '../basics/interfaces';
|
|
17
4
|
import { BaseObject } from '../base-object';
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
import type { UniverRenderingContext } from '../context';
|
|
5
|
+
import { IScale, Nullable } from '@univerjs/core';
|
|
6
|
+
|
|
21
7
|
export type LineJoin = 'round' | 'bevel' | 'miter';
|
|
22
8
|
export type LineCap = 'butt' | 'round' | 'square';
|
|
23
9
|
export type PaintFirst = 'fill' | 'stroke';
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
import { Canvas } from './canvas';
|
|
2
|
+
import { ITransformChangeState } from './basics/interfaces';
|
|
3
|
+
import { IEvent } from './basics/i-events';
|
|
4
|
+
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
5
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
16
6
|
import { Disposable, Observable } from '@univerjs/core';
|
|
17
|
-
|
|
18
|
-
import type { CURSOR_TYPE } from './basics/const';
|
|
19
|
-
import { RENDER_CLASS_TYPE } from './basics/const';
|
|
20
|
-
import type { IEvent } from './basics/i-events';
|
|
21
|
-
import type { ITransformChangeState } from './basics/interfaces';
|
|
22
|
-
import type { Canvas } from './canvas';
|
|
7
|
+
|
|
23
8
|
export declare abstract class ThinEngine<T extends IDisposable> extends Disposable {
|
|
24
9
|
onInputChangedObservable: Observable<IEvent>;
|
|
25
10
|
onTransformChangeObservable: Observable<ITransformChangeState>;
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
import type { EventState, Nullable, Observer } from '@univerjs/core';
|
|
17
|
-
import { Disposable, Observable } from '@univerjs/core';
|
|
18
|
-
import type { BaseObject } from './base-object';
|
|
19
|
-
import type { EVENT_TYPE } from './basics/const';
|
|
20
|
-
import { RENDER_CLASS_TYPE } from './basics/const';
|
|
21
|
-
import type { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
22
|
-
import type { ITransformChangeState } from './basics/interfaces';
|
|
1
|
+
import { UniverRenderingContext } from './context';
|
|
2
|
+
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
23
3
|
import { Transform } from './basics/transform';
|
|
24
|
-
import
|
|
25
|
-
import
|
|
4
|
+
import { ITransformChangeState } from './basics/interfaces';
|
|
5
|
+
import { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
6
|
+
import { CURSOR_TYPE, EVENT_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
7
|
+
import { BaseObject } from './base-object';
|
|
8
|
+
import { EventState, Nullable, Observer, Disposable, Observable } from '@univerjs/core';
|
|
9
|
+
|
|
26
10
|
export declare abstract class ThinScene extends Disposable {
|
|
27
11
|
onTransformChangeObservable: Observable<ITransformChangeState>;
|
|
12
|
+
onFileLoadedObservable: Observable<string>;
|
|
28
13
|
onPointerDownObserver: Observable<IMouseEvent | IPointerEvent>;
|
|
29
14
|
onPointerMoveObserver: Observable<IMouseEvent | IPointerEvent>;
|
|
30
15
|
onPointerUpObserver: Observable<IMouseEvent | IPointerEvent>;
|
|
@@ -98,4 +83,6 @@ export declare abstract class ThinScene extends Disposable {
|
|
|
98
83
|
scaleX: number;
|
|
99
84
|
scaleY: number;
|
|
100
85
|
};
|
|
86
|
+
setCursor(val: CURSOR_TYPE): void;
|
|
87
|
+
resetCursor(): void;
|
|
101
88
|
}
|
package/lib/types/viewport.d.ts
CHANGED
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
import type { EventState, IPosition, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Observable } from '@univerjs/core';
|
|
18
|
-
import type { BaseObject } from './base-object';
|
|
19
|
-
import type { IWheelEvent } from './basics/i-events';
|
|
1
|
+
import { ThinScene } from './thin-scene';
|
|
2
|
+
import { BaseScrollBar } from './shape/base-scroll-bar';
|
|
3
|
+
import { UniverRenderingContext } from './context';
|
|
4
|
+
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
20
5
|
import { Transform } from './basics/transform';
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
import type { ThinScene } from './thin-scene';
|
|
6
|
+
import { IWheelEvent } from './basics/i-events';
|
|
7
|
+
import { BaseObject } from './base-object';
|
|
8
|
+
import { EventState, IPosition, Nullable, Observable } from '@univerjs/core';
|
|
9
|
+
|
|
26
10
|
interface IViewPosition {
|
|
27
11
|
top?: number;
|
|
28
12
|
left?: number;
|
|
@@ -74,7 +58,6 @@ export declare class Viewport {
|
|
|
74
58
|
onScrollStopObserver: Observable<IScrollObserverParam>;
|
|
75
59
|
onScrollByBarObserver: Observable<IScrollObserverParam>;
|
|
76
60
|
private _viewPortKey;
|
|
77
|
-
private _dirty;
|
|
78
61
|
private _topOrigin;
|
|
79
62
|
private _leftOrigin;
|
|
80
63
|
private _bottomOrigin;
|
|
@@ -133,8 +116,6 @@ export declare class Viewport {
|
|
|
133
116
|
resize(position: IViewPosition): void;
|
|
134
117
|
setPadding(param: IPosition): void;
|
|
135
118
|
resetPadding(): void;
|
|
136
|
-
makeDirty(state?: boolean, refreshParent?: boolean): void;
|
|
137
|
-
isDirty(): boolean;
|
|
138
119
|
/**
|
|
139
120
|
* scroll to position, absolute
|
|
140
121
|
* @param pos
|
|
@@ -187,7 +168,7 @@ export declare class Viewport {
|
|
|
187
168
|
getAbsoluteVector(coord: Vector2): Vector2;
|
|
188
169
|
onMouseWheel(evt: IWheelEvent, state: EventState): void;
|
|
189
170
|
isHit(coord: Vector2): boolean | undefined;
|
|
190
|
-
pickScrollBar(coord: Vector2): import(
|
|
171
|
+
pickScrollBar(coord: Vector2): import('./shape').Rect<import("./shape").IRectProps> | null | undefined;
|
|
191
172
|
openClip(): void;
|
|
192
173
|
closeClip(): void;
|
|
193
174
|
dispose(): void;
|