diff --git a/src/lib/ui/Canvas.hx b/src/lib/ui/Canvas.hx index eeca7cb..ff0ebc8 100644 --- a/src/lib/ui/Canvas.hx +++ b/src/lib/ui/Canvas.hx @@ -40,6 +40,21 @@ abstract Canvas(Array>) to Array> { this[y][x] = value; } } + + public function hight(): Int { + return this.length; + } + + public function maxWidth() { + var max = 0; + for (i in 0...this.length){ + if (this[i].length > max){ + max = this[i].length; + } + } + + return max; + } } class CanvasKeyValueIterator{