@univerjs-pro/engine-shape 1.0.0-alpha.7 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/engine-shape",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "private": false,
5
5
  "description": "Preset shape model and rendering utilities for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,12 +58,15 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs/core": "1.0.0-alpha.7"
61
+ "@univerjs-pro/engine-formula": "1.0.0-alpha.8",
62
+ "@univerjs-pro/license": "1.0.0-alpha.8",
63
+ "@univerjs/core": "1.0.0-alpha.8",
64
+ "@univerjs/engine-render": "1.0.0-alpha.8"
62
65
  },
63
66
  "devDependencies": {
64
67
  "typescript": "^6.0.3",
65
68
  "vitest": "^4.1.10",
66
- "@univerjs-infra/shared": "1.0.0-alpha.7"
69
+ "@univerjs-infra/shared": "1.0.0-alpha.8"
67
70
  },
68
71
  "scripts": {
69
72
  "test": "vitest run",
@@ -1,56 +0,0 @@
1
- import type { IShapePoint } from '../shape-type';
2
- export interface IBentConnectorResult {
3
- points: IShapePoint[];
4
- flipH: boolean;
5
- flipV: boolean;
6
- rect: {
7
- left: number;
8
- top: number;
9
- width: number;
10
- height: number;
11
- };
12
- }
13
- /**
14
- * Route a free-free bent connector line (Excel-like behavior).
15
- *
16
- * 根据 Excel 的行为,对首尾都为自由点的 bent 连接线进行布点计算。
17
- * 该方法不涉及自动 routing、障碍规避或连接点约束,
18
- * 仅依据 start / end 构成的矩形关系生成折线路径。
19
- *
20
- * @deprecated For resize/drag operations, prefer using {@link ConnectorCoordinateTransform}
21
- * from './connector-transform' which provides cleaner coordinate space handling.
22
- * This function is still useful for initial point generation in the same coordinate space.
23
- *
24
- * 对于 resize/拖拽操作,建议使用 {@link ConnectorCoordinateTransform},
25
- * 它提供了更清晰的坐标空间处理。本函数仍适用于同一坐标系下的初始点生成。
26
- *
27
- * Core rules / 核心规则:
28
- *
29
- * 1. Start point and end point define a local bounding rectangle.
30
- * If the width (end.x - start.x) is negative, the width is stored
31
- * as an absolute value and flipH is set to true.
32
- * The same rule applies to height (flipV) in the vertical direction.
33
- *
34
- * 起点和终点共同定义一个局部矩形。
35
- * 如果 end.x - start.x < 0,则使用 width = abs(width),
36
- * 同时记录 flipH = true。
37
- * 垂直方向同理,记录 flipV。
38
- *
39
- * 2. The absolute width and height determine the bend orientation.
40
- * If |width| >= |height|, points are generated in
41
- * horizontal-first then vertical order (H → V).
42
- * Otherwise, points are generated in vertical-first
43
- * then horizontal order (V → H).
44
- *
45
- * 通过宽高绝对值决定折线方向:
46
- * - |width| >= |height|:先横后竖
47
- * - |width| < |height|:先竖后横
48
- *
49
- * 3. The returned points are always generated in a normalized
50
- * (non-flipped) coordinate space. The actual visual direction
51
- * is determined by flipH / flipV.
52
- *
53
- * 返回的点始终基于“未翻转”的规范坐标系生成,
54
- * 实际方向由 flipH / flipV 决定。
55
- */
56
- export declare function freeRouteBentConnectorLinePoints(startPoint: IShapePoint, endPoint: IShapePoint): IBentConnectorResult;
@@ -1,8 +0,0 @@
1
- import type { IShapeShadowEffect } from '../shape-type';
2
- export interface IResolvedShapeShadow {
3
- shadowColor: string;
4
- shadowBlur: number;
5
- shadowOffsetX: number;
6
- shadowOffsetY: number;
7
- }
8
- export declare function resolveShapeShadow(effect: IShapeShadowEffect | undefined): IResolvedShapeShadow | undefined;