setStrokeWidth

abstract fun setStrokeWidth(block: DesignBlock, width: Float)

Set the stroke width of the given design block. When the dash pattern is a preset's pattern at the old width, it is scaled to the new width. Any other dash pattern keeps its lengths. Required scope: "stroke/change"

Parameters

block

the block whose stroke width should be set.

width

the stroke width to be set.