@univerjs/engine-render 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IGroupBaseBound, IKeyValue, ITransformState, Nullable } from '@univerjs/core';
16
+ import type { IGroupBaseBound, ITransformState, Nullable } from '@univerjs/core';
17
17
  import type { IDragEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
18
18
  import type { IObjectFullState, ITransformChangeState } from './basics/interfaces';
19
19
  import type { ITransformerConfig } from './basics/transformer-config';
@@ -33,7 +33,8 @@ export declare enum ObjectType {
33
33
  IMAGE = 3,
34
34
  RECT = 4,
35
35
  CIRCLE = 5,
36
- CHART = 6
36
+ CHART = 6,
37
+ DRAWING_DOM = 7
37
38
  }
38
39
  export declare abstract class BaseObject extends Disposable {
39
40
  groupKey?: string;
@@ -186,7 +187,7 @@ export declare abstract class BaseObject extends Disposable {
186
187
  triggerDragEnter(evt: IDragEvent | IMouseEvent): boolean;
187
188
  triggerDrop(evt: IDragEvent | IMouseEvent): boolean;
188
189
  dispose(): void;
189
- toJson(): IKeyValue;
190
+ toJson(): Record<string, any>;
190
191
  getScene(): Nullable<Scene>;
191
192
  resetCursor(): void;
192
193
  setCursor(val: CURSOR_TYPE): void;
@@ -33,7 +33,7 @@ export declare class FontAndBaseLine extends docExtension {
33
33
  */
34
34
  actualFontMap: Record<string, string>;
35
35
  constructor();
36
- draw(ctx: UniverRenderingContext, _parentScale: IScale, glyph: IDocumentSkeletonGlyph, _?: IBoundRectNoAngle, more?: IDrawInfo): void;
36
+ draw(ctx: UniverRenderingContext, _parentScale: IScale, glyph: IDocumentSkeletonGlyph, _?: IBoundRectNoAngle, _more?: IDrawInfo): void;
37
37
  private _fillText;
38
38
  clearCache(): void;
39
39
  }
@@ -110,6 +110,15 @@ export declare class Spreadsheet extends SheetComponent {
110
110
  * Clear the guide lines within a range in the table, to make room for merged cells and overflow.
111
111
  */
112
112
  private _clearRectangle;
113
+ /**
114
+ * Draw gap areas for row and column gaps.
115
+ * Clears gridlines in gap regions and fills with gap style.
116
+ */
117
+ private _drawGapAreas;
118
+ /**
119
+ * Render a single gap rectangle: clear gridlines, fill background, draw diagonal stripes.
120
+ */
121
+ private _drawSingleGapRect;
113
122
  testShowRuler(cacheCtx: UniverRenderingContext2D, viewportInfo: IViewportInfo): void;
114
123
  testGetRandomLightColor(): string;
115
124
  }
@@ -21,7 +21,7 @@ export declare class CustomObject extends BaseObject {
21
21
  private _isHitCustom?;
22
22
  constructor(key?: string, _render?: (mainCtx: UniverRenderingContext) => void, _isHitCustom?: ((coord: Vector2) => boolean) | undefined);
23
23
  toJson(): {
24
- [key: string]: any;
24
+ [x: string]: any;
25
25
  };
26
26
  render(mainCtx: UniverRenderingContext, bounds?: IViewportInfo): this;
27
27
  isHit(coord: Vector2): boolean;