pa_encoder 0.2.0 → 0.2.2
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 +0 -22
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yongpa Han
|
|
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
CHANGED
|
@@ -12,17 +12,6 @@ It supports both **Live (realtime) capture** and **Frame (deterministic) capture
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
### 핵심 개념
|
|
16
|
-
|
|
17
|
-
- **Live mode (realtime)**
|
|
18
|
-
실제 브라우저 렌더 루프를 그대로 기록합니다. 마우스/키보드 등 **실시간 인터랙션**이 결과에 반영됩니다.
|
|
19
|
-
성능 저하나 프레임 드랍도 “있는 그대로” 기록됩니다.
|
|
20
|
-
|
|
21
|
-
- **Frame mode (deterministic)**
|
|
22
|
-
가상 시간(virtual time)을 사용해 `fps`와 `frames`에 맞춰 **프레임을 정확히 step**합니다.
|
|
23
|
-
`Date.now`, `performance.now`, `requestAnimationFrame`, timer를 훅하여 `deltaTime` 기반 애니메이션을 **정밀하게 재현**합니다.
|
|
24
|
-
동일한 설정/초기 상태에서 **항상 동일한 결과**를 목표로 합니다.
|
|
25
|
-
|
|
26
15
|
### 설치
|
|
27
16
|
|
|
28
17
|
```bash
|
|
@@ -99,17 +88,6 @@ npx pa_encoder --url http://localhost:3000 --entry /src/sketch.js
|
|
|
99
88
|
|
|
100
89
|
---
|
|
101
90
|
|
|
102
|
-
### Core Ideas
|
|
103
|
-
|
|
104
|
-
- **Live mode (realtime)**
|
|
105
|
-
Records the canvas as it is rendered in real time, including **mouse/keyboard interaction**.
|
|
106
|
-
Performance drops and frame skips are captured as-is.
|
|
107
|
-
|
|
108
|
-
- **Frame mode (deterministic)**
|
|
109
|
-
Uses virtual time and advances frames in fixed steps according to `fps` and `frames`.
|
|
110
|
-
Hooks `Date.now`, `performance.now`, `requestAnimationFrame`, and timers to reproduce **deltaTime-based animation** precisely.
|
|
111
|
-
With the same code/settings/initial state, it aims to produce **reproducible output**.
|
|
112
|
-
|
|
113
91
|
### Installation
|
|
114
92
|
|
|
115
93
|
```bash
|