16 lines
295 B
Typst
16 lines
295 B
Typst
#import "cetz.typ": canvas
|
|
#import "render/structure.typ" as struct
|
|
|
|
#let render(config, schema, width: 100%) = {
|
|
canvas(length: 1pt, {
|
|
struct.render(config, schema, schema.structures.main)
|
|
})
|
|
}
|
|
|
|
#let make(config) = {
|
|
return (
|
|
config: config,
|
|
render: render.with(config)
|
|
)
|
|
}
|