leafer-connector 0.1.0 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +4 -5
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -68,7 +68,7 @@ const edge = new Connector(app, {
68
68
  },
69
69
  });
70
70
  ```
71
- ![Preview](https://github.com/qlynick/leafer-x-connector/blob/main/playground/assets/bezier.gif)
71
+ ![Preview](https://github.com/rideWind97/leafer-connector/blob/master/playground/assets/bezier.gif)
72
72
 
73
73
 
74
74
  ### 直线(straight)
@@ -80,7 +80,7 @@ const edge = new Connector(app, {
80
80
  routeType: "straight",
81
81
  });
82
82
  ```
83
- ![Preview](https://github.com/qlynick/leafer-x-connector/blob/main/playground/assets/straight.gif)
83
+ ![Preview](https://github.com/rideWind97/leafer-connector/blob/master/playground/assets/straight.gif)
84
84
 
85
85
  ### 自定义(custom + onDraw)
86
86
 
@@ -106,7 +106,7 @@ const edge = new Connector(app, {
106
106
  },
107
107
  });
108
108
  ```
109
- ![Preview](https://github.com/qlynick/leafer-x-connector/blob/main/playground/assets/custom.gif)
109
+ ![Preview](https://github.com/rideWind97/leafer-connector/blob/master/playground/assets/custom.gif)
110
110
 
111
111
  ## label(连线文字)示例
112
112
 
@@ -119,7 +119,7 @@ const edge = new Connector(app, {
119
119
  label: { text: "Hello", editable: true },
120
120
  });
121
121
  ```
122
- ![Preview](https://github.com/qlynick/leafer-x-connector/blob/main/playground/assets/name.gif)
122
+ ![Preview](https://github.com/rideWind97/leafer-connector/blob/master/playground/assets/name.gif)
123
123
 
124
124
  ### 自定义 label 样式
125
125
 
@@ -210,7 +210,6 @@ const edge = new Connector(app, {
210
210
  - `opt1?: TargetOption` / `opt2?: TargetOption`:单端覆盖(见下方 TargetOption)
211
211
 
212
212
  ### Bezier
213
- ![Preview](https://github.com/qlynick/leafer-x-connector/blob/main/playground/assets/preview.gif)
214
213
 
215
214
  - `bezierCurvature?: number`:曲率/张力(越大曲线“张开”越明显)
216
215
  - `routeOptions?.bezierFallbackDistance?: number`:当 `routeType="bezier"` 时,若两端 padding 点距离小于该值(或节点重叠),可降级为正交圆角
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leafer-connector",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "A LeaferJS connector (edge) component with arrows, multiple route types, labels, and collaboration helpers.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/rideWind97/leafer-connector",
@@ -20,7 +20,8 @@
20
20
  "edge",
21
21
  "arrow",
22
22
  "diagram",
23
- "flow"
23
+ "flow",
24
+ "leafer-connector"
24
25
  ],
25
26
  "files": [
26
27
  "dist",
@@ -63,5 +64,3 @@
63
64
  "access": "public"
64
65
  }
65
66
  }
66
-
67
-