UNPKG

penframe

Version:

A lightweight DSL-based wireframe and UI structure visualization tool.

27 lines 861 B
[ { "type": "config", "name": "pc", "width": 800, "height": 600, "title": "Text Wrapping Test" }, { "type": "paragraph", "value": "This is a long paragraph that should wrap automatically because a width has been specified. The wrapping is based on an estimated character width, so it might not be perfect for all fonts and characters, but it should demonstrate the functionality.", "x": 20, "y": 40, "width": 300 }, { "type": "paragraph", "value": "This is another long paragraph, this time center-aligned, that should also wrap within its given width. Let's see how it handles the alignment with multiple lines of text.", "align": "center", "width": 400 }, { "type": "paragraph", "value": "This paragraph without a width will not wrap.", "x": 20 } ]