Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Adapt the demo builders to the merged CodeElement shape

nyblnetb813f3a7e9fd
diff --git a/scripts/build-code-obvious.mjs b/scripts/build-code-obvious.mjs
index a7fbe18c..9cffe8a2 100644
--- a/scripts/build-code-obvious.mjs
+++ b/scripts/build-code-obvious.mjs
@@ -33,8 +33,9 @@ const text = (html, x, y, w, h, o = {}) => ({
const code = (content, o = {}) => ({
id: id('c'), type: 'code', morphId: o.group ?? 'walkthrough',
x: 96, y: 200, w: 1088, h: 460, rotation: 0, opacity: 1,
- content, lang: o.lang ?? 'ts', color: '#DCE3EC',
- fontSize: o.size ?? 34, lineHeight: 1.55,
+ content, grammarName: o.lang ?? 'ts', color: '#DCE3EC',
+ fontSize: o.size ?? 34, lineHeight: 1.55, align: 'left', valign: 'top',
+ fontFamily: "ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace",
})
const slide = (elements, o = {}) => ({