Open this page in the API Guide

Stroke.applyToElement Method

Applies given stroke to given element. If element null, ignored. If stroke null, stroke will be removed from element.
 
 
Static This method is static.

Parameters

element

Type: HTMLElement
The element to which to apply the stroke.
stroke

Type: Stroke
The stroke to apply.
width

Type: Number
The width of the element.
height

Type: Number
The height of the element.