This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/test/app.ts
2026-01-23 15:15:48 +07:00

14 lines
311 B
TypeScript

import { BagBinding, f, ItemAuxID, Label } from ".."
const text = Label({
text: "#text",
[BagBinding.ITEM_ID_AUX]: ItemAuxID.DIAMOND,
"#x": 2,
})
text.addBindings({
source_property_name: f(`Test: #{ -(${BagBinding.ITEM_ID_AUX} % #x) == 0 }`),
target_property_name: BagBinding.TEXT,
})
console.log(text)