Skip to content

yss js functions svg

Bartlomiej Ceglik edited this page Feb 19, 2023 · 3 revisions

for .svg mOperation helper

mOperation

To index

Functions

cl(msg)

function to console.log ing.... try to use this one to silence down interface

rotateSvgSetRC(objName, objNameRc, ang)nothing

function to rotate object over center of other object in .svg object by name

rotateSvg(objName, haveRotateCenter, ang)nothing

function to rotate object over center point in .svg object by name

moveOnPath(objToMove, objPath, posNormal)nothing

function to move object over path in .svg object by name

putText(objName, text, align, chars)nothing

function to put text in .svg object by name

cl(msg)

function to console.log ing.... try to use this one to silence down interface

Kind: global function

Param Type Description
msg string The msg to console.log

rotateSvgSetRC(objName, objNameRc, ang) ⇒ nothing

function to rotate object over center of other object in .svg object by name

Kind: global function
Returns: nothing - - Set rotation of object over obejct in .svg on screen

Param Type Description
objName string The object name in .svg
objNameRc stirng The object2 name to rotate over it center
ang number The angle in deg

rotateSvg(objName, haveRotateCenter, ang) ⇒ nothing

function to rotate object over center point in .svg object by name

Kind: global function
Returns: nothing - - Set rotation of object over obejct in .svg on screen

Param Type Description
objName string The object name in .svg
haveRotateCenter bool if true then look for [object name]RC (rotation center)
ang number The angle in deg

moveOnPath(objToMove, objPath, posNormal) ⇒ nothing

function to move object over path in .svg object by name

Kind: global function
Returns: nothing - - Set position of object on the path in .svg on screen

Param Type Description
objToMove string The object name in .svg to move
objPath string The object name in .svg to path over
posNormal number The position on the path 0...1

putText(objName, text, align, chars) ⇒ nothing

function to put text in .svg object by name

Kind: global function
Returns: nothing - - Set text to .svg on screen

Param Type Description
objName string The object name in .svg
text string The text to put in .svg
align string The aligment definition [c
chars number The to limit length
Clone this wiki locally