PowerPoint Zero: a portable MoonBit PPTX generator driven by TOML deck and page sources.
moon runwasm Milky2018/pptz <deck.toml> [--out <output.pptx>]moon runwasm Milky2018/pptz@0.4.0 <deck.toml> [--out <output.pptx>]moon runwasm . examples/minimal/deck.pptz.toml --out examples/minimal/dist/demo.pptxnpx skills add https://github.com/moonbit-community/pptz.gitnpx skills add https://github.com/moonbit-community/pptz.git --skill pptznpx skills add https://github.com/moonbit-community/pptz.git --agent codex
npx skills add https://github.com/moonbit-community/pptz.git --globalcd examples/minimal
moon runwasm Milky2018/pptz deck.pptz.toml --out dist/demo.pptxmoon runwasm . examples/minimal/deck.pptz.toml --out examples/minimal/dist/demo.pptxmoon check --target wasm
moon test --target wasmpub(all) struct ChartSpec {
chart_style : String?
kind : String
title : String?
legend : String?
style : Int?
data_labels : String?
data_table : Bool?
rounded_corners : Bool?
categories : Array[String]?
series : Array[ChartSeriesSpec]
} derive(Eq, Debug)pub(all) struct ConnectorSpec {
kind : String
start : ConnectorEndpoint
end : ConnectorEndpoint
stroke : Border?
start_arrow : String?
end_arrow : String?
shadow : ShadowSpec?
} derive(Eq, Debug)pub(all) struct Deck {
title : String?
size : Size
theme : Theme?
layouts : Map[String, LayoutTemplate]
components : Map[String, ComponentTemplate]
pages : Array[PageRef]
} derive(Eq, Debug)pub(all) struct DeckBundle {
deck_path : String
deck_dir : String
deck : Deck
pages : Array[ResolvedPage]
} derive(Eq, Debug)pub(all) enum Element {
TextElement(ElementBase, TextContent)
ShapeElement(ElementBase, ShapeSpec)
ImageElement(ElementBase, ImageSpec)
ConnectorElement(String, ConnectorSpec)
IconElement(ElementBase, IconSpec)
TableElement(ElementBase, TableSpec)
ChartElement(ElementBase, ChartSpec)
} derive(Eq, Debug)pub(all) struct LayoutTemplate {
background : Background?
slots : Map[String, LayoutSlot]
elements : Array[Element]
} derive(Eq, Debug)pub(all) struct Page {
page_type : String?
layout : String?
slots : Map[String, String]
background : Background?
components : Array[ComponentInstance]
elements : Array[Element]
} derive(Eq, Debug)pub(all) struct ShapeSpec {
shape : String
fill : Fill?
border : Border?
shadow : ShadowSpec?
} derive(Eq, Debug)pub(all) struct TextContent {
text : String
style : String?
align : Align?
wrap : Bool?
body : TextBodyOptions?
paragraphs : Array[TextParagraphSpec]?
font_size : Double?
font_family : String?
color : String?
bold : Bool?
italic : Bool?
} derive(Eq, Debug)pub(all) struct TextParagraphSpec {
text : String?
runs : Array[TextRunSpec]?
style : String?
align : Align?
line_height : Double?
space_before : Double?
space_after : Double?
margin_left : Double?
indent : Double?
bullet : BulletSpec?
} derive(Eq, Debug)pub(all) struct Theme {
colors : Map[String, String]
text_styles : Map[String, TextStyle]
table_styles : Map[String, TableStyle]
chart_styles : Map[String, ChartStyle]
} derive(Eq, Debug)Install
Download zipPowerPoint Zero: a portable MoonBit PPTX generator driven by TOML deck and page sources.