@univerjs/engine-render
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,25 +0,9 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core'; | ||
import { Observable } from '@univerjs/core'; | ||
import type { EVENT_TYPE } from './basics/const'; | ||
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const'; | ||
import type { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import type { IObjectFullState, ITransformChangeState } from './basics/interfaces'; | ||
import { UniverRenderingContext } from './context'; | ||
import { IViewportBound, Vector2 } from './basics/vector2'; | ||
import { Transform } from './basics/transform'; | ||
import type { IViewportBound, Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
import { IObjectFullState, ITransformChangeState } from './basics/interfaces'; | ||
import { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import { EVENT_TYPE, CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const'; | ||
import { EventState, IKeyValue, Nullable, Observer, Observable } from '@univerjs/core'; | ||
export declare const BASE_OBJECT_ARRAY: string[]; | ||
@@ -26,0 +10,0 @@ export declare abstract class BaseObject { |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ICellData, IStyleData } from '@univerjs/core'; | ||
import { ICellData, IStyleData } from '@univerjs/core'; | ||
export interface ITempCellData extends ICellData { | ||
@@ -18,0 +4,0 @@ style: IStyleData; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentBody, Nullable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from './i-document-skeleton-cached'; | ||
import { IDocumentSkeletonGlyph } from './i-document-skeleton-cached'; | ||
import { IDocumentBody, Nullable } from '@univerjs/core'; | ||
export declare function hasListGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean; | ||
@@ -22,4 +8,4 @@ export declare function isIndentByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): boolean; | ||
export declare function isFirstGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean; | ||
export declare function getParagraphByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): import("@univerjs/core").IParagraph | undefined; | ||
export declare function getParagraphByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): import('@univerjs/core').IParagraph | undefined; | ||
export declare function isPlaceholderOrSpace(glyph: Nullable<IDocumentSkeletonGlyph>): boolean; | ||
export declare function isSameLine(glyph1: Nullable<IDocumentSkeletonGlyph>, glyph2: Nullable<IDocumentSkeletonGlyph>): boolean; |
@@ -1,22 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IPosition } from '@univerjs/core'; | ||
import { BorderStyleTypes } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import { Vector2 } from './vector2'; | ||
import { IDocumentSkeletonLine } from './i-document-skeleton-cached'; | ||
import { BORDER_TYPE, ORIENTATION_TYPE } from './const'; | ||
import type { IDocumentSkeletonLine } from './i-document-skeleton-cached'; | ||
import { Vector2 } from './vector2'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { IPosition, BorderStyleTypes } from '@univerjs/core'; | ||
export interface IContext2D extends CanvasRenderingContext2D { | ||
@@ -23,0 +8,0 @@ webkitBackingStorePixelRatio: number; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached'; | ||
import type { IMeasureTextCache } from './interfaces'; | ||
import { IMeasureTextCache } from './interfaces'; | ||
import { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare class FontCache { | ||
@@ -20,0 +6,0 @@ private static _getTextHeightCache; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core'; | ||
import { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core'; | ||
export interface IDocumentSkeletonCached extends ISkeletonResourceReference { | ||
@@ -18,0 +4,0 @@ pages: IDocumentSkeletonPage[]; |
@@ -0,18 +1,4 @@ | ||
import { Nullable } from '@univerjs/core'; | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
/** | ||
* Alias type for number that are floats | ||
@@ -19,0 +5,0 @@ */ |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core'; | ||
import type { DocumentViewModel } from '../components/docs/view-model/document-view-model'; | ||
import type { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached'; | ||
import type { Vector2 } from './vector2'; | ||
import { Vector2 } from './vector2'; | ||
import { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached'; | ||
import { DocumentViewModel } from '../components/docs/view-model/document-view-model'; | ||
import { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core'; | ||
export interface IObjectFullState extends ITransformState { | ||
@@ -21,0 +7,0 @@ strokeWidth?: number; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { Vector2 } from './vector2'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare const INITIAL_Path2: Vector2[]; | ||
@@ -19,0 +5,0 @@ export declare class Path2 { |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { BaseObject } from '../base-object'; | ||
import type { IBoundRect } from './vector2'; | ||
import { IBoundRect } from './vector2'; | ||
import { BaseObject } from '../base-object'; | ||
export declare function getOffsetRectForDom(ele: HTMLElement): { | ||
@@ -19,0 +5,0 @@ top: number; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { BaseObject } from '../base-object'; | ||
import type { IMouseEvent, IPointerEvent } from './i-events'; | ||
import { IMouseEvent, IPointerEvent } from './i-events'; | ||
import { BaseObject } from '../base-object'; | ||
export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ITextRangeParam } from '@univerjs/core'; | ||
import { ITextRangeParam } from '@univerjs/core'; | ||
export interface ITextSelectionStyle { | ||
@@ -18,0 +4,0 @@ strokeWidth: number; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { type ITextRotation } from '@univerjs/core'; | ||
import { ITextRotation } from '@univerjs/core'; | ||
export declare const VERTICAL_ROTATE_ANGLE = 90; | ||
@@ -18,0 +4,0 @@ export declare function convertTextRotation(textRotation?: ITextRotation): { |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core'; | ||
import type { IBoundRectNoAngle } from './vector2'; | ||
import { IBoundRectNoAngle } from './vector2'; | ||
import { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core'; | ||
export declare const getColor: (RgbArray: number[], opacity?: number) => string; | ||
@@ -111,5 +97,5 @@ export declare const toPx: (num: number | string, ReferenceValue: Nullable<number>) => number; | ||
endColumn: number; | ||
rangeType?: import("@univerjs/core").RANGE_TYPE | undefined; | ||
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined; | ||
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined; | ||
rangeType?: import('@univerjs/core').RANGE_TYPE | undefined; | ||
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined; | ||
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined; | ||
startRow: number; | ||
@@ -116,0 +102,0 @@ endRow: number; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ITransformState } from '@univerjs/core'; | ||
import type { IRect } from './interfaces'; | ||
import { Vector2 } from './vector2'; | ||
import { IRect } from './interfaces'; | ||
import { ITransformState } from '@univerjs/core'; | ||
export declare const INITIAL_MATRIX: number[]; | ||
@@ -20,0 +6,0 @@ export declare class Transform { |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { DeepImmutable, FloatArray } from './i-events'; | ||
import { DeepImmutable, FloatArray } from './i-events'; | ||
export interface IPoint { | ||
@@ -18,0 +4,0 @@ x: number; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange } from '@univerjs/core'; | ||
import { IRange } from '@univerjs/core'; | ||
export declare function subtractViewportRange(range1: IRange, range2: IRange): IRange[]; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { UniverRenderingContext } from './context'; | ||
/** | ||
@@ -18,0 +4,0 @@ * canvas render mode |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDisposable } from '@wendellhu/redi'; | ||
import { ComponentExtension } from './extension'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { IViewportBound } from '../basics/vector2'; | ||
import { BaseObject } from '../base-object'; | ||
import type { IViewportBound } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { ComponentExtension } from './extension'; | ||
import { IDisposable } from '@wendellhu/redi'; | ||
export declare class RenderComponent<T, U, V> extends BaseObject { | ||
@@ -22,0 +8,0 @@ private _extensions; |
@@ -1,25 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached'; | ||
import { PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
import type { INodeInfo } from '../../basics/interfaces'; | ||
import type { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import { DocumentSkeleton } from './layout/doc-skeleton'; | ||
import { DOCS_EXTENSION_TYPE } from './doc-extension'; | ||
import { RenderComponent } from '../component'; | ||
import type { DOCS_EXTENSION_TYPE } from './doc-extension'; | ||
import type { DocumentSkeleton } from './layout/doc-skeleton'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2'; | ||
import { INodeInfo } from '../../basics/interfaces'; | ||
import { IDocumentSkeletonGlyph, IDocumentSkeletonLine, PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare class DocComponent extends RenderComponent<IDocumentSkeletonGlyph | IDocumentSkeletonLine, DOCS_EXTENSION_TYPE, IBoundRectNoAngle[]> { | ||
@@ -26,0 +11,0 @@ private _skeleton?; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached'; | ||
import type { IBoundRectNoAngle } from '../../basics/vector2'; | ||
import { ComponentExtension } from '../extension'; | ||
import { IBoundRectNoAngle } from '../../basics/vector2'; | ||
import { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached'; | ||
export declare enum DOCS_EXTENSION_TYPE { | ||
@@ -20,0 +6,0 @@ SPAN = 0, |
@@ -1,27 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import './extensions'; | ||
import type { Nullable } from '@univerjs/core'; | ||
import { Observable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonPage } from '../../basics/i-document-skeleton-cached'; | ||
import { PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
import type { Transform } from '../../basics/transform'; | ||
import type { IViewportBound } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import type { Scene } from '../../scene'; | ||
import { DocumentSkeleton } from './layout/doc-skeleton'; | ||
import { DocComponent } from './doc-component'; | ||
import type { DocumentSkeleton } from './layout/doc-skeleton'; | ||
import { Scene } from '../../scene'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IViewportBound } from '../../basics/vector2'; | ||
import { Transform } from '../../basics/transform'; | ||
import { IDocumentSkeletonPage, PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
import { Nullable, Observable } from '@univerjs/core'; | ||
interface IPageMarginLayout { | ||
@@ -57,3 +40,3 @@ pageMarginLeft: number; | ||
getOffsetConfig(): IDocumentOffsetConfig; | ||
getEngine(): Nullable<import("../../thin-engine").ThinEngine<Scene>>; | ||
getEngine(): Nullable<import('../../thin-engine').ThinEngine<Scene>>; | ||
draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void; | ||
@@ -60,0 +43,0 @@ changeSkeleton(newSkeleton: DocumentSkeleton): this; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import { docExtension } from '../doc-extension'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class Background extends docExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import { docExtension } from '../doc-extension'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class Border extends docExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import { docExtension } from '../doc-extension'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class FontAndBaseLine extends docExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import { docExtension } from '../doc-extension'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class Line extends docExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { GlyphType } from '@univerjs/core'; | ||
export declare function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string): string; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonBullet } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonBullet } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core'; | ||
export declare function dealWithBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined; | ||
export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDrawing, LocaleService } from '@univerjs/core'; | ||
import type { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IDrawing, LocaleService } from '@univerjs/core'; | ||
export declare function dealWidthInlineDrawing(drawing: IDrawing, sectionBreakConfig: ISectionBreakConfig, allPages?: IDocumentSkeletonPage[], paragraphConfig?: IParagraphConfig, localeService?: LocaleService): never[]; |
@@ -1,35 +0,21 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IParagraphStyle } from '@univerjs/core'; | ||
import type { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import type { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IParagraphStyle } from '@univerjs/core'; | ||
export declare function otherHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): { | ||
step: number; | ||
glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[]; | ||
glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[]; | ||
}; | ||
export declare function ArabicHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): { | ||
step: number; | ||
glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[]; | ||
glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[]; | ||
}; | ||
export declare function emojiHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): { | ||
step: number; | ||
glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[]; | ||
glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[]; | ||
}; | ||
export declare function TibetanHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): { | ||
step: number; | ||
glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[]; | ||
glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[]; | ||
}; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonGlyph, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IDocumentSkeletonGlyph, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
export declare function layoutParagraph(glyphGroup: IDocumentSkeletonGlyph[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[]; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached'; | ||
import type { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import type { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached'; | ||
export declare function dealWidthParagraph(bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[]; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IParagraph } from '@univerjs/core'; | ||
import type { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IParagraph } from '@univerjs/core'; | ||
export declare function lineAdjustment(pages: IDocumentSkeletonPage[], paragraph: IParagraph): void; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached'; | ||
import type { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import type { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import type { IShapedText } from './shaping'; | ||
import { IShapedText } from './shaping'; | ||
import { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached'; | ||
export declare function lineBreaking(shapedTextList: IShapedText[], curPage: IDocumentSkeletonPage, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[]; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IParagraphStyle } from '@univerjs/core'; | ||
import type { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached'; | ||
import type { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import type { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { ISectionBreakConfig } from '../../../../../basics/interfaces'; | ||
import { DocumentViewModel } from '../../../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node'; | ||
import { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached'; | ||
import { IParagraphStyle } from '@univerjs/core'; | ||
export interface IShapedText { | ||
@@ -22,0 +8,0 @@ text: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached'; | ||
import type { ISectionBreakConfig } from '../../../../basics/interfaces'; | ||
import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../../view-model/document-view-model'; | ||
import { DocumentViewModel } from '../../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node'; | ||
import { ISectionBreakConfig } from '../../../../basics/interfaces'; | ||
import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached'; | ||
export declare function dealWithSections(bodyModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, _preRenderedBlockIdMap?: Map<string, boolean>): { | ||
@@ -21,0 +7,0 @@ pages: IDocumentSkeletonPage[]; |
@@ -1,23 +0,8 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { LocaleService, Nullable } from '@univerjs/core'; | ||
import type { IDocumentSkeletonCached, IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached'; | ||
import { PageLayoutType } from '../../../basics/i-document-skeleton-cached'; | ||
import type { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces'; | ||
import type { IViewportBound, Vector2 } from '../../../basics/vector2'; | ||
import { DocumentViewModel } from '../view-model/document-view-model'; | ||
import { Skeleton } from '../../skeleton'; | ||
import type { DocumentViewModel } from '../view-model/document-view-model'; | ||
import { IViewportBound, Vector2 } from '../../../basics/vector2'; | ||
import { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces'; | ||
import { IDocumentSkeletonCached, IDocumentSkeletonGlyph, PageLayoutType } from '../../../basics/i-document-skeleton-cached'; | ||
import { LocaleService, Nullable } from '@univerjs/core'; | ||
export declare enum DocumentSkeletonState { | ||
@@ -44,3 +29,3 @@ PENDING = "pending", | ||
private _getPageActualWidth; | ||
getPageSize(): import("@univerjs/core").ISize | undefined; | ||
getPageSize(): import('@univerjs/core').ISize | undefined; | ||
findPositionByGlyph(glyph: IDocumentSkeletonGlyph): Nullable<INodeSearch>; | ||
@@ -47,0 +32,0 @@ findNodePositionByCharIndex(charIndex: number, isBack?: boolean): Nullable<INodePosition>; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { LineBreaker } from '../linebreaker'; | ||
import { LineBreaker } from '../linebreaker'; | ||
export declare function tabLineBreakExtension(breaker: LineBreaker): void; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { ILineBreakRule } from './rule'; | ||
import { Break } from './break'; | ||
import type { ILineBreakRule } from './rule'; | ||
interface ILineBreakExtension { | ||
@@ -19,0 +5,0 @@ (breaker: LineBreaker): void; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ISectionColumnProperties } from '@univerjs/core'; | ||
import { ColumnSeparatorType } from '@univerjs/core'; | ||
import type { IDocumentSkeletonColumn } from '../../../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonColumn } from '../../../../basics/i-document-skeleton-cached'; | ||
import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core'; | ||
export declare function createSkeletonColumn(columnIndex: number | undefined, columnProperties: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, pageWidth?: number): IDocumentSkeletonColumn; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IAdjustability, IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonGlyph } from '../../../../basics/i-document-skeleton-cached'; | ||
import { GlyphType } from '../../../../basics/i-document-skeleton-cached'; | ||
import type { IFontCreateConfig } from '../../../../basics/interfaces'; | ||
import { IFontCreateConfig } from '../../../../basics/interfaces'; | ||
import { IAdjustability, IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, GlyphType } from '../../../../basics/i-document-skeleton-cached'; | ||
export declare function isSpace(char: string): boolean; | ||
@@ -20,0 +5,0 @@ export declare function isJustifiable(content: string): boolean; |
@@ -1,17 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonLine, LineType } from '../../../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonLine, LineType } from '../../../../basics/i-document-skeleton-cached'; | ||
interface ILineBoundingBox { | ||
@@ -18,0 +4,0 @@ lineHeight: number; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached'; | ||
import { BreakType } from '../../../../basics/i-document-skeleton-cached'; | ||
import type { ISectionBreakConfig } from '../../../../basics/interfaces'; | ||
import { ISectionBreakConfig } from '../../../../basics/interfaces'; | ||
import { IDocumentSkeletonPage, ISkeletonResourceReference, BreakType } from '../../../../basics/i-document-skeleton-cached'; | ||
export declare function createSkeletonPage(sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage; |
@@ -1,20 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ISectionColumnProperties } from '@univerjs/core'; | ||
import { ColumnSeparatorType } from '@univerjs/core'; | ||
import type { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../../basics/i-document-skeleton-cached'; | ||
import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core'; | ||
export declare function createSkeletonSection(columnProperties?: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, top?: number, left?: number, sectionWidth?: number, sectionHeight?: number): IDocumentSkeletonSection; | ||
export declare function setColumnFullState(column: IDocumentSkeletonColumn, state: boolean): void; |
@@ -1,24 +0,9 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { INumberUnit, IParagraphStyle, ITextStyle, ObjectPositionH, ObjectPositionV } from '@univerjs/core'; | ||
import { BooleanNumber, GridType, SpacingRule } from '@univerjs/core'; | ||
import type { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../basics/i-document-skeleton-cached'; | ||
import type { IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces'; | ||
import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node'; | ||
import type { DocumentViewModel } from '../view-model/document-view-model'; | ||
import { DocumentViewModel } from '../view-model/document-view-model'; | ||
import { DataStreamTreeNode } from '../view-model/data-stream-tree-node'; | ||
import { IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces'; | ||
import { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../basics/i-document-skeleton-cached'; | ||
import { INumberUnit, IParagraphStyle, ITextStyle, ObjectPositionH, ObjectPositionV, BooleanNumber, GridType, SpacingRule } from '@univerjs/core'; | ||
export declare function getLastPage(pages: IDocumentSkeletonPage[]): IDocumentSkeletonPage; | ||
export declare function getLastSection(page: IDocumentSkeletonPage): import("../../../basics/i-document-skeleton-cached").IDocumentSkeletonSection; | ||
export declare function getLastSection(page: IDocumentSkeletonPage): import('../../../basics/i-document-skeleton-cached').IDocumentSkeletonSection; | ||
export declare function getLastColumn(page: IDocumentSkeletonPage): IDocumentSkeletonColumn; | ||
@@ -25,0 +10,0 @@ export declare function getLastLine(page: IDocumentSkeletonPage): IDocumentSkeletonLine | undefined; |
@@ -1,18 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonSection } from '../../basics/i-document-skeleton-cached'; | ||
import { PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
import { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonSection, PageLayoutType } from '../../basics/i-document-skeleton-cached'; | ||
export declare class Liquid { | ||
@@ -19,0 +4,0 @@ private _translateX; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ITextRange, Nullable } from '@univerjs/core'; | ||
import type { INodePosition } from '../../../basics/interfaces'; | ||
import type { IPoint } from '../../../basics/vector2'; | ||
import type { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import type { IDocumentOffsetConfig } from '../document'; | ||
import { IDocumentOffsetConfig } from '../document'; | ||
import { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import { IPoint } from '../../../basics/vector2'; | ||
import { INodePosition } from '../../../basics/interfaces'; | ||
import { ITextRange, Nullable } from '@univerjs/core'; | ||
export declare enum NodePositionStateType { | ||
@@ -22,0 +8,0 @@ NORMAL = 0, |
@@ -1,26 +0,11 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { INodePosition } from '../../../basics/interfaces'; | ||
import type { ISuccinctTextRangeParam, ITextSelectionStyle } from '../../../basics/range'; | ||
import { RANGE_DIRECTION } from '../../../basics/range'; | ||
import type { IPoint } from '../../../basics/vector2'; | ||
import type { Scene } from '../../../scene'; | ||
import { Documents } from '../document'; | ||
import { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import { ThinScene } from '../../../thin-scene'; | ||
import { Rect } from '../../../shape/rect'; | ||
import type { ThinScene } from '../../../thin-scene'; | ||
import type { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import type { Documents } from '../document'; | ||
import { Scene } from '../../../scene'; | ||
import { IPoint } from '../../../basics/vector2'; | ||
import { ISuccinctTextRangeParam, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range'; | ||
import { INodePosition } from '../../../basics/interfaces'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare const TEXT_RANGE_LAYER_INDEX = 1; | ||
@@ -54,3 +39,3 @@ export declare function cursorConvertToTextRange(scene: Scene, range: ISuccinctTextRangeParam, docSkeleton: DocumentSkeleton, document: Documents): Nullable<TextRange>; | ||
get direction(): RANGE_DIRECTION; | ||
getAnchor(): Nullable<Rect<import("../../../shape/rect").IRectProps>>; | ||
getAnchor(): Nullable<Rect<import('../../../shape/rect').IRectProps>>; | ||
activeStatic(): void; | ||
@@ -57,0 +42,0 @@ deactivateStatic(): void; |
@@ -1,28 +0,13 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { ILogService, RxDisposable } from '@univerjs/core'; | ||
import type { Observable } from 'rxjs'; | ||
import type { IMouseEvent, IPointerEvent } from '../../../basics/i-events'; | ||
import type { INodePosition } from '../../../basics/interfaces'; | ||
import type { ISuccinctTextRangeParam, ITextRangeWithStyle, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range'; | ||
import type { Engine } from '../../../engine'; | ||
import type { Scene } from '../../../scene'; | ||
import type { Viewport } from '../../../viewport'; | ||
import type { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import type { Documents } from '../document'; | ||
import { TextRange } from './text-range'; | ||
import { Documents } from '../document'; | ||
import { DocumentSkeleton } from '../layout/doc-skeleton'; | ||
import { Viewport } from '../../../viewport'; | ||
import { Scene } from '../../../scene'; | ||
import { Engine } from '../../../engine'; | ||
import { ISuccinctTextRangeParam, ITextRangeWithStyle, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range'; | ||
import { INodePosition } from '../../../basics/interfaces'; | ||
import { IMouseEvent, IPointerEvent } from '../../../basics/i-events'; | ||
import { Observable } from 'rxjs'; | ||
import { Nullable, ILogService, RxDisposable } from '@univerjs/core'; | ||
export declare function getCanvasOffsetByEngine(engine: Nullable<Engine>): { | ||
@@ -177,2 +162,2 @@ left: number; | ||
} | ||
export declare const ITextSelectionRenderManager: import("@wendellhu/redi").IdentifierDecorator<TextSelectionRenderManager>; | ||
export declare const ITextSelectionRenderManager: import('@wendellhu/redi').IdentifierDecorator<TextSelectionRenderManager>; |
@@ -1,18 +0,3 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { DataStreamTreeNodeType } from '@univerjs/core'; | ||
import { Nullable, DataStreamTreeNodeType } from '@univerjs/core'; | ||
export declare class DataStreamTreeNode { | ||
@@ -19,0 +4,0 @@ nodeType: DataStreamTreeNodeType; |
@@ -1,20 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentBody, ITextRun } from '@univerjs/core'; | ||
import { DocumentDataModel } from '@univerjs/core'; | ||
import type { IDisposable } from '@wendellhu/redi'; | ||
import { DataStreamTreeNode } from './data-stream-tree-node'; | ||
import { IDisposable } from '@wendellhu/redi'; | ||
import { IDocumentBody, ITextRun, DocumentDataModel } from '@univerjs/core'; | ||
export declare class DocumentViewModel implements IDisposable { | ||
@@ -45,4 +30,4 @@ private _documentDataModel; | ||
resetCache(): void; | ||
getSectionBreak(index: number): import("@univerjs/core").ISectionBreak | undefined; | ||
getParagraph(index: number): import("@univerjs/core").IParagraph | undefined; | ||
getSectionBreak(index: number): import('@univerjs/core').ISectionBreak | undefined; | ||
getParagraph(index: number): import('@univerjs/core').IParagraph | undefined; | ||
getTextRunRange(startIndex: number | undefined, endIndex: number): ITextRun[]; | ||
@@ -53,5 +38,5 @@ /** | ||
getTextRun(index: number): ITextRun | undefined; | ||
getCustomBlock(index: number): import("@univerjs/core").ICustomBlock | undefined; | ||
getTable(index: number): import("@univerjs/core").ITable | undefined; | ||
getCustomRange(index: number): import("@univerjs/core").ICustomRange | undefined; | ||
getCustomBlock(index: number): import('@univerjs/core').ICustomBlock | undefined; | ||
getTable(index: number): import('@univerjs/core').ITable | undefined; | ||
getCustomRange(index: number): import('@univerjs/core').ICustomRange | undefined; | ||
protected _transformToTree(dataStream: string): DataStreamTreeNode[]; | ||
@@ -58,0 +43,0 @@ private _processPreviousNodesUntil; |
@@ -1,21 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentRenderConfig, IScale, Nullable } from '@univerjs/core'; | ||
import { Registry } from '@univerjs/core'; | ||
import type { BaseObject } from '../base-object'; | ||
import type { Vector2 } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { Vector2 } from '../basics/vector2'; | ||
import { BaseObject } from '../base-object'; | ||
import { IDocumentRenderConfig, IScale, Nullable, Registry } from '@univerjs/core'; | ||
export interface IExtensionConfig { | ||
@@ -22,0 +7,0 @@ originTranslate?: Vector2; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import type { ColumnHeaderLayout } from './extensions/column-header-layout'; | ||
import { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { SpreadsheetHeader } from './sheet-component'; | ||
import type { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { ColumnHeaderLayout } from './extensions/column-header-layout'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
export declare class SpreadsheetColumnHeader extends SpreadsheetHeader { | ||
@@ -22,0 +8,0 @@ private _columnHeaderLayoutExtension; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange, IScale } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import type { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { SheetExtension } from './sheet-extension'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IRange, IScale } from '@univerjs/core'; | ||
export declare class Background extends SheetExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange, IScale } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import type { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { SheetExtension } from './sheet-extension'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IRange, IScale } from '@univerjs/core'; | ||
export declare class Border extends SheetExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import type { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { SheetExtension } from './sheet-extension'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class ColumnHeaderLayout extends SheetExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange, IScale } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import { type SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { SheetExtension } from './sheet-extension'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IRange, IScale } from '@univerjs/core'; | ||
export interface ISheetFontRenderExtension { | ||
@@ -21,0 +7,0 @@ fontRenderExtension?: { |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../../context'; | ||
import type { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { SheetExtension } from './sheet-extension'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../../context'; | ||
import { IScale } from '@univerjs/core'; | ||
export declare class RowHeaderLayout extends SheetExtension { | ||
@@ -21,0 +7,0 @@ uKey: string; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { type IRange } from '@univerjs/core'; | ||
import { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { ComponentExtension } from '../../extension'; | ||
import type { SpreadsheetSkeleton } from '../sheet-skeleton'; | ||
import { IRange } from '@univerjs/core'; | ||
export declare enum SHEET_EXTENSION_TYPE { | ||
@@ -24,3 +10,3 @@ GRID = 0 | ||
type: SHEET_EXTENSION_TYPE; | ||
getCellIndex(rowIndex: number, columnIndex: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], dataMergeCache: IRange[]): import("@univerjs/core").ISelectionCellWithCoord; | ||
getCellIndex(rowIndex: number, columnIndex: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], dataMergeCache: IRange[]): import('@univerjs/core').ISelectionCellWithCoord; | ||
isRenderDiffRangesByCell(range: IRange, diffRanges?: IRange[]): boolean; | ||
@@ -27,0 +13,0 @@ isRenderDiffRangesByColumn(curStartColumn: number, curEndColumn: number, diffRanges?: IRange[]): boolean; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core'; | ||
import type { BORDER_TYPE } from '../../basics/const'; | ||
import type { DocumentSkeleton } from '../docs/layout/doc-skeleton'; | ||
import { DocumentSkeleton } from '../docs/layout/doc-skeleton'; | ||
import { BORDER_TYPE } from '../../basics/const'; | ||
import { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core'; | ||
export interface BorderCache { | ||
@@ -20,0 +6,0 @@ [key: string]: BorderCacheItem | {}; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import type { RowHeaderLayout } from './extensions/row-header-layout'; | ||
import { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { SpreadsheetHeader } from './sheet-component'; | ||
import type { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { RowHeaderLayout } from './extensions/row-header-layout'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
export declare class SpreadsheetRowHeader extends SpreadsheetHeader { | ||
@@ -22,0 +8,0 @@ private _rowHeaderLayoutExtension; |
@@ -1,22 +0,8 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IRange, Nullable } from '@univerjs/core'; | ||
import type { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { SHEET_EXTENSION_TYPE } from './extensions/sheet-extension'; | ||
import { RenderComponent } from '../component'; | ||
import type { SHEET_EXTENSION_TYPE } from './extensions/sheet-extension'; | ||
import type { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
import { IRange, Nullable } from '@univerjs/core'; | ||
export declare class SheetComponent extends RenderComponent<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> { | ||
@@ -23,0 +9,0 @@ private _skeleton?; |
@@ -1,22 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { ICellData, IPaddingData, IRange, ISelectionCellWithCoord, ITextRotation, IWorksheetData, Nullable, Styles, Worksheet } from '@univerjs/core'; | ||
import { BooleanNumber, DocumentDataModel, HorizontalAlign, IContextService, LocaleService, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core'; | ||
import type { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2'; | ||
import { IStylesCache } from './interfaces'; | ||
import { Skeleton } from '../skeleton'; | ||
import { DocumentSkeleton } from '../docs/layout/doc-skeleton'; | ||
import { Skeleton } from '../skeleton'; | ||
import type { IStylesCache } from './interfaces'; | ||
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2'; | ||
import { ICellData, IPaddingData, IRange, ISelectionCellWithCoord, ITextRotation, IWorksheetData, Nullable, Styles, Worksheet, BooleanNumber, DocumentDataModel, HorizontalAlign, IContextService, LocaleService, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core'; | ||
/** | ||
@@ -246,5 +231,5 @@ * Obtain the height and width of a cell's text, taking into account scenarios with rotated text. | ||
endColumn: number; | ||
rangeType?: import("@univerjs/core").RANGE_TYPE | undefined; | ||
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined; | ||
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined; | ||
rangeType?: import('@univerjs/core').RANGE_TYPE | undefined; | ||
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined; | ||
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined; | ||
startRow: number; | ||
@@ -251,0 +236,0 @@ endRow: number; |
@@ -1,24 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { SheetComponent } from './sheet-component'; | ||
import { Font } from './extensions/font'; | ||
import { Border } from './extensions/border'; | ||
import { Background } from './extensions/background'; | ||
import { Documents } from '../docs/document'; | ||
import type { Background } from './extensions/background'; | ||
import type { Border } from './extensions/border'; | ||
import type { Font } from './extensions/font'; | ||
import { SheetComponent } from './sheet-component'; | ||
import type { SpreadsheetSkeleton } from './sheet-skeleton'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { IViewportBound, Vector2 } from '../../basics/vector2'; | ||
export declare class Spreadsheet extends SheetComponent { | ||
@@ -25,0 +11,0 @@ private _allowCache; |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { IFontLocale } from '../basics/interfaces'; | ||
import { Disposable, LocaleService } from '@univerjs/core'; | ||
import type { IFontLocale } from '../basics/interfaces'; | ||
export declare class Skeleton extends Disposable { | ||
@@ -19,0 +5,0 @@ protected readonly _localService: LocaleService; |
@@ -1,21 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { Observable } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../../context'; | ||
import type { Scene } from '../../scene'; | ||
import { SceneViewer } from '../../scene-viewer'; | ||
import { Scene } from '../../scene'; | ||
import { UniverRenderingContext } from '../../context'; | ||
import { Nullable, Observable } from '@univerjs/core'; | ||
export declare enum SLIDE_NAVIGATION_KEY { | ||
@@ -31,3 +16,3 @@ LEFT = "__slideNavigationLeft__", | ||
changePage(id?: string): void; | ||
hasPage(key: string): import("../../thin-scene").ThinScene | undefined; | ||
hasPage(key: string): import('../../thin-scene').ThinScene | undefined; | ||
addNavigation(): void; | ||
@@ -34,0 +19,0 @@ removeNavigation(): void; |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { UniverRenderingContext } from '../context'; | ||
import { IViewportBound, Vector2 } from '../basics/vector2'; | ||
import { BaseObject } from '../base-object'; | ||
import type { IViewportBound, Vector2 } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
export declare class CustomObject extends BaseObject { | ||
@@ -20,0 +6,0 @@ private _render; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { ThinEngine } from './thin-engine'; | ||
import { Scene } from './scene'; | ||
import { Canvas, CanvasRenderMode } from './canvas'; | ||
import { CURSOR_TYPE } from './basics/const'; | ||
import { Observable } from '@univerjs/core'; | ||
import type { CURSOR_TYPE } from './basics/const'; | ||
import { Canvas, type CanvasRenderMode } from './canvas'; | ||
import type { Scene } from './scene'; | ||
import { ThinEngine } from './thin-engine'; | ||
export declare class Engine extends ThinEngine<Scene> { | ||
@@ -40,2 +26,3 @@ renderEvenInBackground: boolean; | ||
private _usingSafari; | ||
private _resizeObserver; | ||
private _fps; | ||
@@ -119,2 +106,3 @@ private _deltaTime; | ||
private _getPointerType; | ||
private _matchMediaHandler; | ||
} |
@@ -1,21 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { UniverRenderingContext } from './context'; | ||
import { IViewportBound, Vector2 } from './basics/vector2'; | ||
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const'; | ||
import { BaseObject } from './base-object'; | ||
import type { CURSOR_TYPE } from './basics/const'; | ||
import { RENDER_CLASS_TYPE } from './basics/const'; | ||
import type { IViewportBound, Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
export declare class Group extends BaseObject { | ||
@@ -22,0 +7,0 @@ private _objects; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { ThinScene } from './thin-scene'; | ||
import { UniverRenderingContext } from './context'; | ||
import { BaseObject } from './base-object'; | ||
import { Disposable } from '@univerjs/core'; | ||
import { BaseObject } from './base-object'; | ||
import type { UniverRenderingContext } from './context'; | ||
import type { ThinScene } from './thin-scene'; | ||
export declare class Layer extends Disposable { | ||
@@ -21,0 +7,0 @@ private _scene; |
@@ -1,23 +0,9 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { Engine } from './engine'; | ||
import { Injector } from '@wendellhu/redi'; | ||
import { Plugin, PluginType } from '@univerjs/core'; | ||
import { Injector } from '@wendellhu/redi'; | ||
import { Engine } from './engine'; | ||
/** | ||
* The global rendering engine. | ||
*/ | ||
export declare const IRenderingEngine: import("@wendellhu/redi").IdentifierDecorator<Engine>; | ||
export declare const IRenderingEngine: import('@wendellhu/redi').IdentifierDecorator<Engine>; | ||
export declare class UniverRenderEnginePlugin extends Plugin { | ||
@@ -24,0 +10,0 @@ readonly _injector: Injector; |
@@ -1,24 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { Observable } from 'rxjs'; | ||
import type { BaseObject } from './base-object'; | ||
import type { DocComponent } from './components/docs/doc-component'; | ||
import type { SheetComponent } from './components/sheets/sheet-component'; | ||
import type { Slide } from './components/slides/slide'; | ||
import { Scene } from './scene'; | ||
import { Engine } from './engine'; | ||
import { Scene } from './scene'; | ||
import { Slide } from './components/slides/slide'; | ||
import { SheetComponent } from './components/sheets/sheet-component'; | ||
import { DocComponent } from './components/docs/doc-component'; | ||
import { BaseObject } from './base-object'; | ||
import { Observable } from 'rxjs'; | ||
import { Nullable } from '@univerjs/core'; | ||
export interface IRenderManagerService { | ||
@@ -75,2 +61,2 @@ currentRender$: Observable<Nullable<string>>; | ||
} | ||
export declare const IRenderManagerService: import("@wendellhu/redi").IdentifierDecorator<RenderManagerService>; | ||
export declare const IRenderManagerService: import('@wendellhu/redi').IdentifierDecorator<RenderManagerService>; |
@@ -1,23 +0,9 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { ThinScene } from './thin-scene'; | ||
import { UniverRenderingContext } from './context'; | ||
import { IViewportBound, Vector2 } from './basics/vector2'; | ||
import { IObjectFullState } from './basics/interfaces'; | ||
import { RENDER_CLASS_TYPE } from './basics/const'; | ||
import { BaseObject } from './base-object'; | ||
import { RENDER_CLASS_TYPE } from './basics/const'; | ||
import type { IObjectFullState } from './basics/interfaces'; | ||
import type { IViewportBound, Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
import type { ThinScene } from './thin-scene'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare class SceneViewer extends BaseObject { | ||
@@ -24,0 +10,0 @@ private _subScenes; |
@@ -1,30 +0,15 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { BaseObject } from './base-object'; | ||
import { Viewport } from './viewport'; | ||
import { ThinScene } from './thin-scene'; | ||
import { ThinEngine } from './thin-engine'; | ||
import { SceneViewer } from './scene-viewer'; | ||
import { ITransformerConfig, Transformer } from './scene.transformer'; | ||
import { Layer } from './layer'; | ||
import { UniverRenderingContext } from './context'; | ||
import { Vector2 } from './basics/vector2'; | ||
import { ISceneTransformState } from './basics/interfaces'; | ||
import { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import { CURSOR_TYPE } from './basics/const'; | ||
import type { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import type { ISceneTransformState } from './basics/interfaces'; | ||
import { Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
import { Layer } from './layer'; | ||
import type { ITransformerConfig } from './scene.transformer'; | ||
import { Transformer } from './scene.transformer'; | ||
import type { SceneViewer } from './scene-viewer'; | ||
import type { ThinEngine } from './thin-engine'; | ||
import { ThinScene } from './thin-scene'; | ||
import type { Viewport } from './viewport'; | ||
import { BaseObject } from './base-object'; | ||
import { Nullable } from '@univerjs/core'; | ||
export declare class Scene extends ThinScene { | ||
@@ -37,3 +22,3 @@ private _parent; | ||
private _addObject$; | ||
readonly addObject$: import("rxjs").Observable<Scene>; | ||
readonly addObject$: import('rxjs').Observable<Scene>; | ||
/** | ||
@@ -40,0 +25,0 @@ * Transformer constructor. Transformer is a special type of group that allow you transform |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { ThinScene } from './thin-scene'; | ||
import { IMouseEvent } from './basics/i-events'; | ||
import { Disposable } from '@univerjs/core'; | ||
import type { IMouseEvent } from './basics/i-events'; | ||
import type { ThinScene } from './thin-scene'; | ||
export declare class InputManager extends Disposable { | ||
@@ -20,0 +6,0 @@ /** The distance in pixel that you have to move to prevent some events */ |
@@ -1,22 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import { Disposable, Observable } from '@univerjs/core'; | ||
import type { BaseObject } from './base-object'; | ||
import type { IMouseEvent, IPointerEvent } from './basics/i-events'; | ||
import { ThinScene } from './thin-scene'; | ||
import { Group } from './group'; | ||
import type { ThinScene } from './thin-scene'; | ||
import { IMouseEvent, IPointerEvent } from './basics/i-events'; | ||
import { BaseObject } from './base-object'; | ||
import { Nullable, Disposable, Observable } from '@univerjs/core'; | ||
declare enum MoveObserverType { | ||
@@ -23,0 +8,0 @@ MOVE_START = 0, |
@@ -1,19 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IPaddingData } from '@univerjs/core'; | ||
import type { Scene } from './scene'; | ||
import type { Viewport } from './viewport'; | ||
import { Viewport } from './viewport'; | ||
import { Scene } from './scene'; | ||
import { IPaddingData } from '@univerjs/core'; | ||
export declare enum ScrollTimerType { | ||
@@ -20,0 +6,0 @@ NONE = 0, |
@@ -1,18 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { IDisposable } from '@wendellhu/redi'; | ||
import { IDisposable } from '@wendellhu/redi'; | ||
import { Nullable } from '@univerjs/core'; | ||
export interface ITransformObject { | ||
@@ -48,3 +34,3 @@ unitId: string; | ||
private readonly _currentObject$; | ||
readonly currentObject$: import("rxjs").Observable<Nullable<ITransformObject>>; | ||
readonly currentObject$: import('rxjs').Observable<Nullable<ITransformObject>>; | ||
dispose(): void; | ||
@@ -51,0 +37,0 @@ updateObject(transformObject: ITransformObject): void; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { Disposable, type Nullable } from '@univerjs/core'; | ||
import type { Vector2 } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { ThinScene } from '../thin-scene'; | ||
import type { Rect } from './rect'; | ||
import { Rect } from './rect'; | ||
import { ThinScene } from '../thin-scene'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { Vector2 } from '../basics/vector2'; | ||
import { Disposable, Nullable } from '@univerjs/core'; | ||
export interface IScrollBarProps { | ||
@@ -55,3 +41,3 @@ thumbMargin?: number; | ||
get miniThumbRatioY(): number; | ||
pick(coord: Vector2): Rect<import("./rect").IRectProps> | null; | ||
pick(coord: Vector2): Rect<import('./rect').IRectProps> | null; | ||
dispose(): void; | ||
@@ -58,0 +44,0 @@ hasHorizonThumb(): boolean; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { IShapeProps } from './shape'; | ||
import { Shape } from './shape'; | ||
import { IShapeProps, Shape } from './shape'; | ||
import { UniverRenderingContext } from '../context'; | ||
export interface ICircleProps extends IShapeProps { | ||
@@ -20,0 +5,0 @@ radius: number; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { IShapeProps } from './shape'; | ||
import { Shape } from './shape'; | ||
import { IShapeProps, Shape } from './shape'; | ||
import { UniverRenderingContext } from '../context'; | ||
interface IPathDataArray { | ||
@@ -20,0 +5,0 @@ command: string; |
@@ -1,20 +0,5 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Nullable } from '@univerjs/core'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { IShapeProps } from './shape'; | ||
import { Shape } from './shape'; | ||
import { IShapeProps, Shape } from './shape'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { Nullable } from '@univerjs/core'; | ||
export interface IPictureProps extends IShapeProps { | ||
@@ -21,0 +6,0 @@ image?: HTMLImageElement; |
@@ -1,19 +0,4 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { IShapeProps } from './shape'; | ||
import { Shape } from './shape'; | ||
import { IShapeProps, Shape } from './shape'; | ||
import { UniverRenderingContext } from '../context'; | ||
export interface IRectProps extends IShapeProps { | ||
@@ -20,0 +5,0 @@ radius?: number; |
@@ -1,21 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IObjectFullState } from '../basics/interfaces'; | ||
import type { IPoint } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { IShapeProps } from './shape'; | ||
import { Shape } from './shape'; | ||
import { IShapeProps, Shape } from './shape'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { IPoint } from '../basics/vector2'; | ||
import { IObjectFullState } from '../basics/interfaces'; | ||
export interface IRegularPolygonProps extends IShapeProps { | ||
@@ -22,0 +7,0 @@ pointsGroup: IPoint[][]; |
@@ -1,20 +0,6 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { IViewportBound } from '../basics/vector2'; | ||
import { BaseObject } from '../base-object'; | ||
import type { IViewportBound } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core'; | ||
export interface IRichTextProps extends ITransformState, IStyleBase { | ||
@@ -21,0 +7,0 @@ text?: string; |
@@ -1,22 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { Vector2 } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import type { Viewport } from '../viewport'; | ||
import type { IScrollBarProps } from './base-scroll-bar'; | ||
import { BaseScrollBar } from './base-scroll-bar'; | ||
import { Rect } from './rect'; | ||
import { IScrollBarProps, BaseScrollBar } from './base-scroll-bar'; | ||
import { Viewport } from '../viewport'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { Vector2 } from '../basics/vector2'; | ||
export declare class ScrollBar extends BaseScrollBar { | ||
@@ -52,3 +37,3 @@ protected _view: Viewport; | ||
makeViewDirty(state: boolean): void; | ||
pick(coord: Vector2): Rect<import("./rect").IRectProps> | null; | ||
pick(coord: Vector2): Rect<import('./rect').IRectProps> | null; | ||
setProps(props?: IScrollBarProps): void; | ||
@@ -55,0 +40,0 @@ private _resizeHorizontal; |
@@ -1,21 +0,7 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { IScale, Nullable } from '@univerjs/core'; | ||
import { UniverRenderingContext } from '../context'; | ||
import { IViewportBound, Vector2 } from '../basics/vector2'; | ||
import { IObjectFullState } from '../basics/interfaces'; | ||
import { BaseObject } from '../base-object'; | ||
import type { IObjectFullState } from '../basics/interfaces'; | ||
import type { IViewportBound, Vector2 } from '../basics/vector2'; | ||
import type { UniverRenderingContext } from '../context'; | ||
import { IScale, Nullable } from '@univerjs/core'; | ||
export type LineJoin = 'round' | 'bevel' | 'miter'; | ||
@@ -22,0 +8,0 @@ export type LineCap = 'butt' | 'round' | 'square'; |
@@ -1,23 +0,8 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { Canvas } from './canvas'; | ||
import { ITransformChangeState } from './basics/interfaces'; | ||
import { IEvent } from './basics/i-events'; | ||
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const'; | ||
import { IDisposable } from '@wendellhu/redi'; | ||
import { Disposable, Observable } from '@univerjs/core'; | ||
import type { IDisposable } from '@wendellhu/redi'; | ||
import type { CURSOR_TYPE } from './basics/const'; | ||
import { RENDER_CLASS_TYPE } from './basics/const'; | ||
import type { IEvent } from './basics/i-events'; | ||
import type { ITransformChangeState } from './basics/interfaces'; | ||
import type { Canvas } from './canvas'; | ||
export declare abstract class ThinEngine<T extends IDisposable> extends Disposable { | ||
@@ -24,0 +9,0 @@ onInputChangedObservable: Observable<IEvent>; |
@@ -1,26 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { EventState, Nullable, Observer } from '@univerjs/core'; | ||
import { Disposable, Observable } from '@univerjs/core'; | ||
import type { BaseObject } from './base-object'; | ||
import type { CURSOR_TYPE, EVENT_TYPE } from './basics/const'; | ||
import { RENDER_CLASS_TYPE } from './basics/const'; | ||
import type { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import type { ITransformChangeState } from './basics/interfaces'; | ||
import { UniverRenderingContext } from './context'; | ||
import { IViewportBound, Vector2 } from './basics/vector2'; | ||
import { Transform } from './basics/transform'; | ||
import type { IViewportBound, Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
import { ITransformChangeState } from './basics/interfaces'; | ||
import { IKeyboardEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events'; | ||
import { CURSOR_TYPE, EVENT_TYPE, RENDER_CLASS_TYPE } from './basics/const'; | ||
import { BaseObject } from './base-object'; | ||
import { EventState, Nullable, Observer, Disposable, Observable } from '@univerjs/core'; | ||
export declare abstract class ThinScene extends Disposable { | ||
@@ -27,0 +11,0 @@ onTransformChangeObservable: Observable<ITransformChangeState>; |
@@ -1,26 +0,10 @@ | ||
/** | ||
* Copyright 2023-present DreamNum Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import type { EventState, IPosition, Nullable } from '@univerjs/core'; | ||
import { Observable } from '@univerjs/core'; | ||
import type { BaseObject } from './base-object'; | ||
import type { IWheelEvent } from './basics/i-events'; | ||
import { ThinScene } from './thin-scene'; | ||
import { BaseScrollBar } from './shape/base-scroll-bar'; | ||
import { UniverRenderingContext } from './context'; | ||
import { IViewportBound, Vector2 } from './basics/vector2'; | ||
import { Transform } from './basics/transform'; | ||
import type { IViewportBound } from './basics/vector2'; | ||
import { Vector2 } from './basics/vector2'; | ||
import type { UniverRenderingContext } from './context'; | ||
import type { BaseScrollBar } from './shape/base-scroll-bar'; | ||
import type { ThinScene } from './thin-scene'; | ||
import { IWheelEvent } from './basics/i-events'; | ||
import { BaseObject } from './base-object'; | ||
import { EventState, IPosition, Nullable, Observable } from '@univerjs/core'; | ||
interface IViewPosition { | ||
@@ -187,3 +171,3 @@ top?: number; | ||
isHit(coord: Vector2): boolean | undefined; | ||
pickScrollBar(coord: Vector2): import("./shape").Rect<import("./shape").IRectProps> | null | undefined; | ||
pickScrollBar(coord: Vector2): import('./shape').Rect<import("./shape").IRectProps> | null | undefined; | ||
openClip(): void; | ||
@@ -190,0 +174,0 @@ closeClip(): void; |
{ | ||
"name": "@univerjs/engine-render", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"private": false, | ||
@@ -55,3 +55,3 @@ "description": "UniverSheet normal base-render", | ||
"rxjs": ">=7.0.0", | ||
"@univerjs/core": "0.1.4" | ||
"@univerjs/core": "0.1.5" | ||
}, | ||
@@ -65,7 +65,7 @@ "dependencies": { | ||
"rxjs": "^7.8.1", | ||
"typescript": "^5.4.2", | ||
"vite": "^5.1.6", | ||
"typescript": "^5.4.3", | ||
"vite": "^5.2.6", | ||
"vitest": "^1.4.0", | ||
"@univerjs/core": "0.1.4", | ||
"@univerjs/shared": "0.1.4" | ||
"@univerjs/shared": "0.1.5", | ||
"@univerjs/core": "0.1.5" | ||
}, | ||
@@ -72,0 +72,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2417318
32213