Scope
To set a canvas width to equal its client width, you need to do:
Z('canvas').width(Z('canvas').clientWidth()[0]);
Tere should be an easier way to do this.
Suggested Solution
Z('canvas').width(Z.clientHeight);
This would involve storing the current values in Z, as this would need to work for groups of canvases as well.