Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ To use Protea, try [Protea TypeScript workflow](https://github.com/Triadica/prot

### Calcit demo development

使用者影响:Calcit Demo 使用正式 CLI 和 `@calcit/procs` **0.46.0**,本地升级后需重装依赖并刷新页面。模型切换、Reel 开发面板、远程控制的启用条件和 TypeScript 库 API 保持原行为。
使用者影响:Calcit Demo 使用正式 CLI 和 `@calcit/procs` **0.51.0**,本地升级后需重装依赖并刷新页面。模型切换、Reel 开发面板、远程控制的启用条件和 TypeScript 库 API 保持原行为。

Demo 配对 HUD Nav 0.0.15、Respo 0.20.0、UI 0.16.6 和 Reel 0.11.10。渲染事件使用
Demo 候选配对 HUD Nav 0.0.16、Respo 0.20.1、UI 0.16.7 和 Reel 0.11.11;HUD Nav 0.0.16 已正式发布。渲染事件使用
`ViewOp` union 区分应用操作和 HUD Nav 操作,Reel 面板与快捷键通过独立的
`Control` 回调处理。应用状态只保存所选模型,Reel 面板不写入应用状态。编译和 shader 错误继续通过
`hud!` 在页面显示。正常刷新回到原默认模型。
`hud!` 在页面显示。正常刷新回到原默认模型。TypeScript 的 `listenShaderError` 回调类型修正为 `string | null`:成功时原本就会传入 null,启用严格空值检查的调用方需处理该分支。

```sh
caps --strict --ci
Expand Down
8 changes: 6 additions & 2 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@
js-await $ set-renderer! $ current-tab
render-loop!
listenShaderError $ fn (err)
if (non-nil? err) (hud! |error err)
hint-fn $ Fn (JsNullish String) (-> Unit) (:features :js-ffi)
if
not $ js-nullish? err
hud! |error err
, &unit
println "|App started."
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state)
Expand Down Expand Up @@ -222,7 +226,7 @@
:schema $ quote $ Fn Tag (-> JsObject) (:features :io :js-ffi)
'reload! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn reload! () (hint-fn Async)
if (nil? build-errors)
if (js-nullish? build-errors)
do (remove-watch! *reel :changes) (clear-cache!)
add-watch! *reel :changes $ fn (reel prev) (render-app!)
reset! *reel $ typed/refresh updater @*reel schema/store
Expand Down
10 changes: 5 additions & 5 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{} (:calcit-version |0.46.0)
{} (:calcit-version |0.51.0)
:version |0.0.4-a1
:dependencies $ {} (|Respo/reel.calcit |0.11.10)
|Respo/respo-ui.calcit |0.16.6
|Respo/respo.calcit |0.20.0
|Triadica/hud-nav |0.0.15
:dependencies $ {} (|Respo/reel.calcit |0.11.11)
|Respo/respo-ui.calcit |0.16.7
|Respo/respo.calcit |0.20.1
|Triadica/hud-nav |0.0.16
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"vite": "^8.3.0"
},
"dependencies": {
"@calcit/procs": "0.46.0",
"@calcit/procs": "0.51.0",
"@triadica/touch-control": "0.0.4-a1",
"ismobilejs": "^1.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/control.mts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export let loadGamepadControl = () => {
});
};

export let listenShaderError = (f: (s: string) => void) => {
export let listenShaderError = (f: (s: string | null) => void) => {
registerShaderResult((e, code, delta) => {
if (e.messages.length) {
console.error(e);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.