pa_font 0.2.3 → 0.2.5
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/USAGE.md +9 -0
- package/dist/paFont.cjs +659 -255
- package/dist/paFont.cjs.map +1 -1
- package/dist/paFont.js +659 -255
- package/dist/paFont.js.map +1 -1
- package/paFont.d.ts +8 -0
- package/package.json +1 -1
package/USAGE.md
CHANGED
|
@@ -189,6 +189,10 @@ const shape = paragraph.toShape({
|
|
|
189
189
|
|
|
190
190
|
문단 전체를 plain region 데이터로 반환합니다.
|
|
191
191
|
|
|
192
|
+
### `paragraph.toRegionViews(options?)`
|
|
193
|
+
|
|
194
|
+
문단 전체를 zero-copy region view로 반환합니다.
|
|
195
|
+
|
|
192
196
|
### `paragraph.toPoints(options?)`
|
|
193
197
|
|
|
194
198
|
문단 전체를 점 샘플로 반환합니다.
|
|
@@ -234,6 +238,11 @@ const shape = paragraph.toShape({
|
|
|
234
238
|
|
|
235
239
|
최종 polygon 데이터를 반환합니다.
|
|
236
240
|
|
|
241
|
+
### `shape.toRegionViews({ step, openWidth })`
|
|
242
|
+
|
|
243
|
+
내부 polygon을 복사하지 않는 read-only view를 반환합니다.
|
|
244
|
+
반복 후처리나 시각화처럼 바로 순회만 할 때 `toRegions()`보다 가볍습니다.
|
|
245
|
+
|
|
237
246
|
반환 형태:
|
|
238
247
|
|
|
239
248
|
```js
|