angular-canvas-painter icon indicating copy to clipboard operation
angular-canvas-painter copied to clipboard

exposing canvas and canvastmp in options

Open w3sami opened this issue 10 years ago • 1 comments

so I can access in the controller using the painter. btw, I couldn't figure out, why there are two canvases, the tmp canvas can maybe be omitted from exposure?

w3sami avatar Oct 29 '15 06:10 w3sami

sorry for the delay, i don't think exposing the canvas in the options is a good way to do it, the options object should be used only for configuration. perhaps it is better to expose the canvas through an extra service. another option would be to expose it as a scope property or through a callback function. what do you want to do with the canvas? get the image or also other stuff?

cheers phil

pwambach avatar Nov 17 '15 13:11 pwambach