### ----------------------------------------------------
### -- HTML::Canvas
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: lib/HTML/Canvas/Graphic.rakumod
### ----------------------------------------------------
unit role HTML::Canvas::Graphic;

has Numeric $.html-width is rw;
has Numeric $.html-height is rw;
has Str:D $.html-id = ~self.WHERE;
method js-ref {
    'document.getElementById("%s")'.sprintf($!html-id);
}


