mirror of https://github.com/ColorlibHQ/AdminLTE
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
473 B
16 lines
473 B
/**
|
|
* 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;
|
|
}; |