Class Index | File Index

Classes


Class ShapeTools


Defined in: ShapeTools.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Gathers some useful tools for shapes.
Method Summary
Method Attributes Method Name and Description
<static>  
ShapeTools.getPolylineShape(points, curved, closedPath)
Returns the shape of a polyline.
<static>  
ShapeTools.getStroke(thickness, capStyle, joinStyle, dashPattern, dashOffset)
Returns the line stroke matching the given line styles.
Class Detail
ShapeTools()
Gathers some useful tools for shapes.
Author: Emmanuel Puybaret.
Method Detail
<static> {Object} ShapeTools.getPolylineShape(points, curved, closedPath)
Returns the shape of a polyline.
Parameters:
{Array} points
{boolean} curved
{boolean} closedPath
Returns:
{Object}

<static> {Object} ShapeTools.getStroke(thickness, capStyle, joinStyle, dashPattern, dashOffset)
Returns the line stroke matching the given line styles.
Parameters:
{number} thickness
{Polyline.CapStyle} capStyle
{Polyline.JoinStyle} joinStyle
{number[]} dashPattern
{number} dashOffset
Returns:
{Object}

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 21 2024 17:43:24 GMT+0200 (CEST)