92aafe67-5c72-4a67-944d-46a4d4be4a22.js.map
1.16 KB
{"version":3,"sources":["assets/script/avg/model/RichTextModel.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAkB,gBAOjB;AAPD,WAAkB,gBAAgB;IAC9B,uDAAQ,CAAA;IACR,2DAAU,CAAA;IACV,iEAAa,CAAA;IACb,yDAAS,CAAA;IACT,uDAAQ,CAAA;IACR,kEAAc,CAAA;AAClB,CAAC,EAPiB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAOjC","file":"","sourceRoot":"/","sourcesContent":["export const enum RichTextNodeType {\n Bold = 1,\n Italic = 2,\n Underline = 3,\n Color = 4,\n Text = 5,\n LineBreak = 20,\n}\n\nexport interface TextNode {\n type: RichTextNodeType.Text;\n text: string;\n}\n\nexport interface BoldNode {\n type: RichTextNodeType.Bold;\n children: RichTextNode[];\n}\n\nexport interface UnderlineNode {\n type: RichTextNodeType.Underline;\n children: RichTextNode[];\n}\n\nexport interface ItalicNode {\n type: RichTextNodeType.Italic;\n children: RichTextNode[];\n}\n\nexport interface LineBreakNode {\n type: RichTextNodeType.LineBreak;\n}\n\nexport interface ColorNode {\n type: RichTextNodeType.Color;\n color: string;\n children: RichTextNode[];\n}\n\nexport type RichTextNode = (TextNode | BoldNode | UnderlineNode | ItalicNode | LineBreakNode | ColorNode);"]}