@aicut/core 0.4.0 → 0.4.1

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 +9 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -162,6 +162,15 @@ const ed = LightingEditor.create({
162
162
  ed.setView("front");
163
163
  ed.setConfig({ brightness: 0.8, color: "#ffaa3a" });
164
164
  ed.setSubjectImage("/frames/another-subject.jpg");
165
+ ed.reset(); // restore safe defaults
166
+
167
+ // Footer slot — the only DOM region the library leaves for host action
168
+ // buttons (Reset, Generate, save-preset, etc.). Library renders nothing
169
+ // into it; host appends whatever it wants:
170
+ const resetBtn = document.createElement("button");
171
+ resetBtn.textContent = "Reset";
172
+ resetBtn.onclick = () => ed.reset();
173
+ ed.controlsFooter.appendChild(resetBtn);
165
174
 
166
175
  // Host snapshot for "Generate" — call from your own button
167
176
  function onGenerate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicut/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Framework-agnostic core for the AiCut video editor — canvas timeline, data model, HTML5 playback engine, plus an opt-in 3D lighting picker.",
5
5
  "license": "MIT",
6
6
  "author": "ziqiang <ziqiangytu@gmail.com>",