@zoneflow/editor-dom 0.0.1 → 0.0.3
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/LICENSE +21 -0
- package/README.md +30 -0
- package/package.json +10 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GROOBEE
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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,24 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoneflow/editor-dom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
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
|
-
"url": "
|
|
11
|
+
"url": "https://github.com/groobee/zoneflow.git",
|
|
10
12
|
"directory": "packages/editor-dom"
|
|
11
13
|
},
|
|
12
14
|
"publishConfig": {
|
|
13
15
|
"registry": "https://registry.npmjs.org"
|
|
14
16
|
},
|
|
15
|
-
"files": [
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
16
20
|
"dependencies": {
|
|
17
|
-
"@zoneflow/
|
|
18
|
-
"@zoneflow/
|
|
21
|
+
"@zoneflow/renderer-dom": "0.0.3",
|
|
22
|
+
"@zoneflow/core": "0.0.3"
|
|
19
23
|
},
|
|
20
24
|
"scripts": {
|
|
21
25
|
"build": "tsc -p tsconfig.json",
|
|
22
26
|
"type-check": "tsc -p tsconfig.json --noEmit"
|
|
23
27
|
}
|
|
24
|
-
}
|
|
28
|
+
}
|