// Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.

[
Constructor
]
interface Point {
    attribute long x;
    attribute long y;
};

[
Constructor
]
interface Canvas {
  attribute double[] coordinates;
  attribute DOMString[] codecs;
  attribute Point[] points;
  sequence<DOMString> getSupportedImageCodecs();
  sequence<Point> getInternalPoints();
  void drawPolygon(sequence<double> coordinates);

  sequence<double> getLastDrawnPolygon();
};
