pixifact-cli 0.20.0 → 0.20.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.
- package/README.md +2 -0
- package/editor/assets/browserAll-BK5tSRnW.js +1 -0
- package/editor/assets/capture-C7kX9ccS.js +1 -0
- package/editor/assets/{captureCompilerScenePreview-4K1ehGWd.js → captureCompilerScenePreview-D1crYVOi.js} +83 -83
- package/editor/assets/editor-DXfKrkh3.js +5 -0
- package/editor/assets/{init-B6Wk-3NE.js → init-ChKChotc.js} +1 -1
- package/editor/assets/webworkerAll-DUy-YwIE.js +1 -0
- package/editor/capture.html +2 -2
- package/editor/index.html +2 -2
- package/package.json +2 -2
- package/src/editorServer.ts +36 -2
- package/editor/assets/browserAll-BJUI9ZxT.js +0 -1
- package/editor/assets/capture-CUhA-7Mo.js +0 -1
- package/editor/assets/editor-C18Nctzn.js +0 -5
- package/editor/assets/webworkerAll-iPsb_ehV.js +0 -1
package/README.md
CHANGED
|
@@ -84,6 +84,8 @@ pixifact editor screenshot --output /tmp/scene.png
|
|
|
84
84
|
|
|
85
85
|
图片必须由用户或外部 Agent 放入项目;Editor 只索引现有图片,不提供导入、移动、重命名或删除源资源。
|
|
86
86
|
|
|
87
|
+
资产面板中单击图片在 Editor 内预览,双击图片调用系统默认程序打开原文件;双击 `.scene` 在 Editor 中打开编辑。系统打开失败会显示错误,Scene 文档和当前选区保持不变。
|
|
88
|
+
|
|
87
89
|
## Agent 工作流
|
|
88
90
|
|
|
89
91
|
Codex、Claude Code 和其他 coding agent 应直接编辑 `.scene` 文件,然后运行:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,b as t,f as n,g as r,m as i,p as a,v as o}from"./captureCompilerScenePreview-D1crYVOi.js";import"./init-ChKChotc.js";t.add(e),t.mixin(o,r),t.add(i),t.add(a),t.mixin(o,n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,S as t,T as n,h as r,i,j as a,n as o,r as s,t as c}from"./captureCompilerScenePreview-D1crYVOi.js";window.capturePixifactScene=async l=>{let[u,d]=await Promise.all([n(),e(l)]),f=new o,p,m=new r,h=!1;try{return p=await s({cache:f,document:{template:a(d.source),sceneInterfaces:{}},projectTree:t(u),scenePath:l}),await m.init({width:p.width,height:p.height,backgroundAlpha:0,antialias:!0,autoStart:!1,resolution:1}),h=!0,m.stage.addChild(p.root),{scenePath:d.path,revision:d.version,width:p.width,height:p.height,dataUrl:await c(m,p)}}finally{h&&(m.stage.removeChild(p.root),m.destroy({removeView:!0},{children:!1})),i(p),await f.clear()}};
|