-
-
Notifications
You must be signed in to change notification settings - Fork 3
yss js functions svg
- 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
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 |
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 |
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 |
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 |
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 |