blob: 02bb391f66ae626ff81db69ba9ef1eec51fbb08f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* 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);
}
this.impl.mode = this.mode;
return this.impl;
};
|