Hanxing Yang

Results 119 comments of Hanxing Yang

* https://github.com/hubcarl/easywebpack * https://github.com/alibaba/dawn

嗯,它俩都一定程度上侵入了运行时的实现逻辑,这是个我们暂时没有越的线

* https://github.com/prijs/pri

* https://alibaba.github.io/dawn/

Note: we need to implement backdrop-mode in StageViewer, too.

补充下这里的文案 ![Image](https://github.com/goplus/builder/assets/1492263/4aac72ab-1075-48c0-9d93-23a3a0abc904) ```markdown En: * Tile Mode: The image will be tiled (repeated) to fill the stage * Scale Mode: The image will be proportionally scaled to ensure it covers...

https://github.com/goplus/builder/pull/552/files#r1625474768 补充个问题,就不单独建 issue 了

现在 Project 中的文件(图片、音频等)是通过 `File`(`src/models/common/file.ts`) 封装的,它们的加载会被推迟到被使用;此外 config(`.json`)与代码(`.spx`)文件的内容会被立刻加载,其中立刻读取 config 的内容是合理的,比如只有读取 sprite 的 config 内容才能知道它的“当前 costume”是什么;而对代码文件内容的读取是可以像图片、音频一样被延后的,这也会有助于我们实现 #369 —— 以 `File` 实例的形式持有 sprite/stage 的代码会可以自然地实现“未变更的代码不去重复上传” 总结一下,目前 ProjectItem 中应该会加载这些(来自 OSS 的)文件: * 第一个 sprite 的“当前 costume”对应的图片文件:符合预期...

> 其他 sprite 的配置可以被省掉(这个实现起来可能会稍微麻烦一点)TODO 还剩这个 TODO,低优先级解决