Skip to content

Commit

Permalink
Added new "style" and "startAt" options to bullets (Issue #452, Issue #…
Browse files Browse the repository at this point in the history
…554, Pull #555)
  • Loading branch information
gitbrent committed Sep 3, 2019
1 parent b5e7cc3 commit b37b30b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export interface ITextOpts extends PositionOptions, OptsDataOrPath {
}
bold?: boolean
breakLine?: boolean
bullet?: boolean | { type?: string; code?: string }
bullet?: boolean | { type?: string; code?: string; style?: string; startAt?: number }
charSpacing?: number
color?: string
fontFace?: string
Expand Down
3 changes: 2 additions & 1 deletion src/gen-xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,8 @@ function genXmlParagraphProperties(textObj: ISlideObject | IText, isDefault: boo
'" indent="-' +
bulletLvl0Margin +
'"'
strXmlBullet = '<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="arabicPeriod"/>'
strXmlBullet = `<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${textObj.options.bullet.style ||
'arabicPeriod'}" startAt="${textObj.options.bullet.startAt || '1'}"/>`
}
} else if (textObj.options.bullet.code) {
var bulletCode = '&#x' + textObj.options.bullet.code + ';'
Expand Down

0 comments on commit b37b30b

Please sign in to comment.