mirror of
https://github.com/supanadit/todo.git
synced 2024-11-26 20:36:21 +00:00
16 lines
473 B
JavaScript
16 lines
473 B
JavaScript
|
/**
|
||
|
* Class for vector images manipulations.
|
||
|
* @constructor
|
||
|
* @param {DOMElement} container to place canvas to
|
||
|
* @param {Number} width
|
||
|
* @param {Number} height
|
||
|
*/
|
||
|
jvm.VectorCanvas = function(container, width, height) {
|
||
|
this.mode = window.SVGAngle ? 'svg' : 'vml';
|
||
|
if (this.mode == 'svg') {
|
||
|
this.impl = new jvm.SVGCanvasElement(container, width, height);
|
||
|
} else {
|
||
|
this.impl = new jvm.VMLCanvasElement(container, width, height);
|
||
|
}
|
||
|
return this.impl;
|
||
|
};
|