Skip to content

3.6.0

Compare
Choose a tag to compare
@100pah 100pah released this 22 Aug 05:12
· 1663 commits to master since this release

v3.6.0

2017-08-22

[+] Support rich text, including:

  • style.textFill
  • style.textStroke
  • style.textWidth
  • style.textHeight
  • style.textLineWidth
  • style.textLineHeight
  • style.textPosition
  • style.textPositionRect
  • style.textOffset
  • style.textAlign
  • style.textVerticalAlign
  • style.textDistance
  • style.textShadowColor
  • style.textShadowBlur
  • style.textShadowOffsetX
  • style.textShadowOffsetY
  • style.textBoxShadowColor
  • style.textBoxShadowBlur
  • style.textBoxShadowOffsetX
  • style.textBoxShadowOffsetY
  • style.transformText
  • style.textRotation
  • style.textOrigin
  • style.textBackgroundColor
  • style.textBorderColor
  • style.textBorderWidth
  • style.textBorderRadius
  • style.textPadding
  • style.rich

[Break change]:
The styles in Text element should use prefix "text".

var text = new Text({
    style: {
        textFill: 'red',
        textStroke: 'blue'
    }
})

The original "fill", "stroke" is not supported in Text element any more.