@univerjs-pro/engine-shape 0.15.3-insiders.20260131-cbd5fac
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/README.md +232 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/types/index.d.ts +200 -0
- package/lib/types/model/group-shape-model.d.ts +0 -0
- package/lib/types/model/shape-model.d.ts +107 -0
- package/lib/types/perset-shape-config.d.ts +2 -0
- package/lib/types/render-engine/base-shape-context.d.ts +9 -0
- package/lib/types/render-engine/bent-connector-router-util.d.ts +48 -0
- package/lib/types/render-engine/connector-points-util.d.ts +44 -0
- package/lib/types/render-engine/line-shape-render-model.d.ts +135 -0
- package/lib/types/render-engine/point-to-shape-transform.d.ts +13 -0
- package/lib/types/render-engine/shape-context-operator.d.ts +19 -0
- package/lib/types/render-engine/shape-render-model.d.ts +96 -0
- package/lib/types/shape-default.d.ts +27 -0
- package/lib/types/shape-enum.d.ts +314 -0
- package/lib/types/shape-type.d.ts +836 -0
- package/lib/types/shapes/accent-border-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/accent-border-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/accent-border-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/accent-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-back-previous-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-beginning-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-blank-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-document-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-end-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-forward-next-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-help-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-home-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-information-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-movie-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-return-shape.d.ts +6 -0
- package/lib/types/shapes/action-button-sound-shape.d.ts +6 -0
- package/lib/types/shapes/arc-shape.d.ts +6 -0
- package/lib/types/shapes/bent-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/bent-connector2-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector3-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector4-shape.d.ts +7 -0
- package/lib/types/shapes/bent-connector5-shape.d.ts +7 -0
- package/lib/types/shapes/bent-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/bevel-shape.d.ts +6 -0
- package/lib/types/shapes/block-arc-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout2-shape.d.ts +6 -0
- package/lib/types/shapes/border-callout3-shape.d.ts +6 -0
- package/lib/types/shapes/brace-pair-shape.d.ts +6 -0
- package/lib/types/shapes/bracket-pair-shape.d.ts +6 -0
- package/lib/types/shapes/callout1-shape.d.ts +6 -0
- package/lib/types/shapes/callout2-shape.d.ts +6 -0
- package/lib/types/shapes/callout3-shape.d.ts +6 -0
- package/lib/types/shapes/can-shape.d.ts +6 -0
- package/lib/types/shapes/chart-plus-shape.d.ts +6 -0
- package/lib/types/shapes/chart-star-shape.d.ts +6 -0
- package/lib/types/shapes/chart-x-shape.d.ts +6 -0
- package/lib/types/shapes/chevron-shape.d.ts +6 -0
- package/lib/types/shapes/chord-shape.d.ts +6 -0
- package/lib/types/shapes/circle-shape.d.ts +6 -0
- package/lib/types/shapes/circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-callout-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/cloud-shape.d.ts +6 -0
- package/lib/types/shapes/corner-shape.d.ts +6 -0
- package/lib/types/shapes/corner-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/cube-shape.d.ts +6 -0
- package/lib/types/shapes/curved-connector2-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector3-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector4-shape.d.ts +7 -0
- package/lib/types/shapes/curved-connector5-shape.d.ts +7 -0
- package/lib/types/shapes/curved-down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-left-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/curved-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/decagon-shape.d.ts +6 -0
- package/lib/types/shapes/diagonal-stripe-shape.d.ts +6 -0
- package/lib/types/shapes/diamond-shape.d.ts +6 -0
- package/lib/types/shapes/dodecagon-shape.d.ts +6 -0
- package/lib/types/shapes/donut-shape.d.ts +6 -0
- package/lib/types/shapes/double-wave-shape.d.ts +6 -0
- package/lib/types/shapes/down-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-ribbon2-shape.d.ts +6 -0
- package/lib/types/shapes/ellipse-shape.d.ts +6 -0
- package/lib/types/shapes/flow-chart-offline-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-alternate-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-collate-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-connector-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-data-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-decision-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-delay-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-display-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-document-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-extract-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-internal-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-disk-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-drum-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-magnetic-tape-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-manual-input-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-manual-operation-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-merge-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-multidocument-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-offpage-connector-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-online-storage-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-or-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-predefined-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-preparation-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-process-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-punched-card-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-punched-tape-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-sort-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-summing-junction-shape.d.ts +6 -0
- package/lib/types/shapes/flowchart-terminator-shape.d.ts +6 -0
- package/lib/types/shapes/folded-corner-shape.d.ts +6 -0
- package/lib/types/shapes/frame-shape.d.ts +6 -0
- package/lib/types/shapes/frame2-shape.d.ts +6 -0
- package/lib/types/shapes/funnel-shape.d.ts +6 -0
- package/lib/types/shapes/gear6-shape.d.ts +6 -0
- package/lib/types/shapes/gear9-shape.d.ts +6 -0
- package/lib/types/shapes/half-frame-shape.d.ts +6 -0
- package/lib/types/shapes/heart-shape.d.ts +6 -0
- package/lib/types/shapes/heptagon-shape.d.ts +6 -0
- package/lib/types/shapes/hexagon-shape.d.ts +6 -0
- package/lib/types/shapes/home-plate-shape.d.ts +6 -0
- package/lib/types/shapes/horizontal-scroll-shape.d.ts +6 -0
- package/lib/types/shapes/index.d.ts +3 -0
- package/lib/types/shapes/irregular-seal1-shape.d.ts +6 -0
- package/lib/types/shapes/irregular-seal2-shape.d.ts +6 -0
- package/lib/types/shapes/left-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/left-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-brace-shape.d.ts +6 -0
- package/lib/types/shapes/left-bracket-shape.d.ts +6 -0
- package/lib/types/shapes/left-circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-circular-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/left-right-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/left-up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/lightning-bolt-shape.d.ts +6 -0
- package/lib/types/shapes/line-lnv-shape.d.ts +6 -0
- package/lib/types/shapes/line-shape.d.ts +7 -0
- package/lib/types/shapes/math-divide-shape.d.ts +6 -0
- package/lib/types/shapes/math-equal-shape.d.ts +6 -0
- package/lib/types/shapes/math-minus-shape.d.ts +6 -0
- package/lib/types/shapes/math-multiply-shape.d.ts +6 -0
- package/lib/types/shapes/math-not-equal-shape.d.ts +6 -0
- package/lib/types/shapes/math-plus-shape.d.ts +6 -0
- package/lib/types/shapes/moon-shape.d.ts +6 -0
- package/lib/types/shapes/no-smoking-shape.d.ts +6 -0
- package/lib/types/shapes/non-isosceles-trapezoid.d.ts +6 -0
- package/lib/types/shapes/notched-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/octagon-shape.d.ts +6 -0
- package/lib/types/shapes/oval-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/parallelogram-shape.d.ts +6 -0
- package/lib/types/shapes/pentagon-shape.d.ts +6 -0
- package/lib/types/shapes/pie-shape.d.ts +6 -0
- package/lib/types/shapes/pie-wedge-shape.d.ts +6 -0
- package/lib/types/shapes/plaque-shape.d.ts +6 -0
- package/lib/types/shapes/plaque-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/plus-shape.d.ts +6 -0
- package/lib/types/shapes/quad-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/quad-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/rectangle-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/rectangle-shape.d.ts +6 -0
- package/lib/types/shapes/ribbon-shape.d.ts +6 -0
- package/lib/types/shapes/ribbon2-shape.d.ts +6 -0
- package/lib/types/shapes/right-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/right-brace-shape.d.ts +6 -0
- package/lib/types/shapes/right-bracket-shape.d.ts +6 -0
- package/lib/types/shapes/right-triangle-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle2-diagonal-shape.d.ts +6 -0
- package/lib/types/shapes/round-rectangle2-shape.d.ts +6 -0
- package/lib/types/shapes/rounded-rectangular-callout1-shape.d.ts +6 -0
- package/lib/types/shapes/smiley-face-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle2-diagonal-shape.d.ts +6 -0
- package/lib/types/shapes/snip-rectangle2-same-shape.d.ts +6 -0
- package/lib/types/shapes/snip-round-rectangle1-shape.d.ts +6 -0
- package/lib/types/shapes/square-tabs-shape.d.ts +6 -0
- package/lib/types/shapes/star10-shape.d.ts +6 -0
- package/lib/types/shapes/star12-shape.d.ts +6 -0
- package/lib/types/shapes/star16-shape.d.ts +6 -0
- package/lib/types/shapes/star24-shape.d.ts +6 -0
- package/lib/types/shapes/star32-shape.d.ts +6 -0
- package/lib/types/shapes/star4-shape.d.ts +6 -0
- package/lib/types/shapes/star5-shape.d.ts +6 -0
- package/lib/types/shapes/star6-shape.d.ts +6 -0
- package/lib/types/shapes/star7-shape.d.ts +6 -0
- package/lib/types/shapes/star8-shape.d.ts +6 -0
- package/lib/types/shapes/straight-connector1-shape.d.ts +7 -0
- package/lib/types/shapes/striped-right-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/sun-shape.d.ts +6 -0
- package/lib/types/shapes/swoosh-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/teardrop-shape.d.ts +6 -0
- package/lib/types/shapes/text-box-shape.d.ts +6 -0
- package/lib/types/shapes/trapezoid-shape.d.ts +6 -0
- package/lib/types/shapes/triangle-shape.d.ts +6 -0
- package/lib/types/shapes/up-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/up-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/up-down-arrow-callout-shape.d.ts +6 -0
- package/lib/types/shapes/up-down-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/uturn-arrow-shape.d.ts +6 -0
- package/lib/types/shapes/vertical-scroll-shape.d.ts +6 -0
- package/lib/types/shapes/wave-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-ellipse-callout-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-rect-callout-shape.d.ts +6 -0
- package/lib/types/shapes/wedge-round-rect-callout-shape.d.ts +6 -0
- package/lib/types/util/color-util.d.ts +12 -0
- package/lib/types/util/connector-points-util.d.ts +56 -0
- package/lib/types/util/connector-transform.d.ts +119 -0
- package/lib/types/util/shape-util.d.ts +8 -0
- package/lib/umd/index.js +1 -0
- package/package.json +65 -0
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs-pro/engine-shape",
|
|
3
|
+
"version": "0.15.3-insiders.20260131-cbd5fac",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "preset shape library for Univer.",
|
|
6
|
+
"author": "DreamNum <developer@univer.ai>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"type": "opencollective",
|
|
9
|
+
"url": "https://opencollective.com/univer"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://univer.ai",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/dream-num/univer"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"univer",
|
|
21
|
+
"shape",
|
|
22
|
+
"preset shape",
|
|
23
|
+
"drawing shape",
|
|
24
|
+
"adjust point",
|
|
25
|
+
"connector line"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./lib/es/index.js",
|
|
30
|
+
"require": "./lib/cjs/index.js",
|
|
31
|
+
"types": "./lib/types/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./*": {
|
|
34
|
+
"import": "./lib/es/*",
|
|
35
|
+
"require": "./lib/cjs/*",
|
|
36
|
+
"types": "./lib/types/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./lib/*": "./lib/*"
|
|
39
|
+
},
|
|
40
|
+
"main": "./lib/es/index.js",
|
|
41
|
+
"module": "./lib/es/index.js",
|
|
42
|
+
"types": "./lib/types/index.d.ts",
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"directories": {
|
|
47
|
+
"lib": "lib"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"lib"
|
|
51
|
+
],
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"typescript": "^5.9.3",
|
|
54
|
+
"vite": "^7.3.1",
|
|
55
|
+
"vitest": "^4.0.18",
|
|
56
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest",
|
|
61
|
+
"coverage": "vitest run --coverage",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"build": "univer-cli build"
|
|
64
|
+
}
|
|
65
|
+
}
|