@zoneflow/editor-dom 0.0.2 → 0.0.4
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 +30 -0
- package/package.json +5 -3
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @zoneflow/editor-dom
|
|
2
|
+
|
|
3
|
+
`@zoneflow/editor-dom`은 Zoneflow의 저수준 editor geometry / interaction helper 패키지입니다.
|
|
4
|
+
|
|
5
|
+
이 패키지는 주로 다음을 포함합니다.
|
|
6
|
+
|
|
7
|
+
- zone/path 이동 계산
|
|
8
|
+
- 리사이즈 계산
|
|
9
|
+
- reparent 계산
|
|
10
|
+
- path 생성/재연결 계산
|
|
11
|
+
- editor target / anchor geometry 유틸
|
|
12
|
+
|
|
13
|
+
대부분의 앱에서는 이 패키지를 직접 설치하거나 사용할 필요가 없습니다.
|
|
14
|
+
일반적인 React 앱은 `@zoneflow/react`를 통해 editor 기능을 사용하는 편이 맞습니다.
|
|
15
|
+
|
|
16
|
+
## 설치
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pnpm add @zoneflow/editor-dom
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 언제 직접 쓰나
|
|
23
|
+
|
|
24
|
+
- React 바깥에서 editor interaction을 직접 구성할 때
|
|
25
|
+
- geometry helper만 별도로 써야 할 때
|
|
26
|
+
- low-level editor behavior를 직접 제어할 때
|
|
27
|
+
|
|
28
|
+
일반적인 앱 통합은 `@zoneflow/react`를 우선 사용하는 편이 맞습니다.
|
|
29
|
+
|
|
30
|
+
레포지토리: [github.com/groobee/zoneflow](https://github.com/groobee/zoneflow)
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoneflow/editor-dom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "Low-level editor geometry and interaction helpers for Zoneflow.",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"homepage": "https://github.com/groobee/zoneflow",
|
|
7
9
|
"repository": {
|
|
8
10
|
"type": "git",
|
|
9
11
|
"url": "https://github.com/groobee/zoneflow.git",
|
|
@@ -16,8 +18,8 @@
|
|
|
16
18
|
"dist"
|
|
17
19
|
],
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@zoneflow/core": "0.0.
|
|
20
|
-
"@zoneflow/renderer-dom": "0.0.
|
|
21
|
+
"@zoneflow/core": "0.0.4",
|
|
22
|
+
"@zoneflow/renderer-dom": "0.0.4"
|
|
21
23
|
},
|
|
22
24
|
"scripts": {
|
|
23
25
|
"build": "tsc -p tsconfig.json",
|