constructor new Shape
new Shape([options])
-
options
(Object
) – The optional 'options' object's properties are copied thisShape
in the constructor. It allows all the same default properties asComponent
, but also addsShape#color
.
This will never be called directly in your code, use one of the subclasses
to instantiate Shape
s.