Closed nefaurk closed 9 years ago
The following code will cause Protoscope to crash on the device:
let polygon = new ShapeLayer() polygon.segments = [new Point({x: 0, y: 0})]
It looks like segments expects an array of Segment objects, not Point objects. We should probably throw a Protonope instead of crashing.
Fixed by 131718f
We might also want to consider just accepting an array of Point objects too.
Point
The following code will cause Protoscope to crash on the device:
let polygon = new ShapeLayer() polygon.segments = [new Point({x: 0, y: 0})]
It looks like segments expects an array of Segment objects, not Point objects. We should probably throw a Protonope instead of crashing.