
Код: Выделить всё
Path.prototype.trace = function(elem, closePath) {
sd.context.beginPath();
sd.context.moveTo(this.getStretchedX(0, elem.width), this.getStretchedY(0, elem.height));
sd.context.lineCap = "square";
for(var i=1; i
Подробнее здесь: [url]https://stackoverflow.com/questions/29658761/draw-an-outline-outside-the-path-surface[/url]
Мобильная версия