mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
document.characterStyles and document.paragraphStyles list a document's styles, the Normal style first, and add, find and remove them. Each CharacterStyle and ParagraphStyle has a name, its attributes, applyTo with clearingOverrides, and remove; setting an attribute redefines the style through charStyle.setAttrs or paraStyle.setAttrs. A text range's characterStyles and paragraphStyles list the styles its text is in. Style names are trimmed and must have 1 to 256 characters and no control characters, one run names at most 4,096 styles, and a style object throws Stale style once its style is removed or renamed by a command. ParagraphStyle.characterAttributes is not available yet. charStyle.load, paraStyle.load and textStyle.loadAll refuse a file larger than 64 MB without reading it in full.