- Added text decoration options (underline, overline, line-through) (#469)
- Added german translations to extensions Co-authored-by: Timo Dittmann <timo.dittmann@kaufland.com>
This commit is contained in:
@@ -57,7 +57,8 @@ import {
|
||||
setDocumentTitleMethod, setResolutionMethod, getEditorNSMethod, setBBoxZoomMethod,
|
||||
setZoomMethod, setColorMethod, setGradientMethod, findDuplicateGradient, setPaintMethod,
|
||||
setStrokeWidthMethod, setStrokeAttrMethod, getBoldMethod, setBoldMethod, getItalicMethod,
|
||||
setItalicMethod, setTextAnchorMethod, getFontFamilyMethod, setFontFamilyMethod, setFontColorMethod, getFontColorMethod,
|
||||
setItalicMethod, hasTextDecorationMethod, addTextDecorationMethod, removeTextDecorationMethod,
|
||||
setTextAnchorMethod, getFontFamilyMethod, setFontFamilyMethod, setFontColorMethod, getFontColorMethod,
|
||||
getFontSizeMethod, setFontSizeMethod, getTextMethod, setTextContentMethod,
|
||||
setImageURLMethod, setLinkURLMethod, setRectRadiusMethod, makeHyperlinkMethod,
|
||||
removeHyperlinkMethod, setSegTypeMethod, setBackgroundMethod
|
||||
@@ -2215,6 +2216,30 @@ class SvgCanvas {
|
||||
*/
|
||||
this.setItalic = setItalicMethod;
|
||||
|
||||
/**
|
||||
* Check whether selected element has the given text decoration or not.
|
||||
* @function module:svgcanvas.SvgCanvas#hasTextDecoration
|
||||
* @param {string} value - The value that should be checked
|
||||
* @returns {boolean} Indicates whether the element has the given text decoration
|
||||
*/
|
||||
this.hasTextDecoration = hasTextDecorationMethod;
|
||||
|
||||
/**
|
||||
* Adds the given value to the text decoration.
|
||||
* @function module:svgcanvas.SvgCanvas#addTextDecoration
|
||||
* @param {string} value - The value that should be added
|
||||
* @returns {void}
|
||||
*/
|
||||
this.addTextDecoration = addTextDecorationMethod;
|
||||
|
||||
/**
|
||||
* Removes the given value from the text decoration.
|
||||
* @function module:svgcanvas.SvgCanvas#removeTextDecoration
|
||||
* @param {string} value - The value that should be removed
|
||||
* @returns {void}
|
||||
*/
|
||||
this.removeTextDecoration = removeTextDecorationMethod;
|
||||
|
||||
/**
|
||||
* Set the new text anchor.
|
||||
* @function module:svgcanvas.SvgCanvas#setTextAnchor
|
||||
|
||||
Reference in New Issue
Block a user