Gitlab CSE Unil

Commit 9841bb9c authored by M. Chardon's avatar M. Chardon
Browse files

correction bug grosseur de flèche à la génération de la thumb

parent 2d13371b
......@@ -175,11 +175,6 @@ define([
var arrows = [], arr, aIdx;
if (options && options.thumbnailSize) {
// Enable strokeScaling for arrows
arrows = paper.project.getItems({data:{type:'arrow'}});
for (aIdx=0, arr; arr=arrows[aIdx]; aIdx++) {
arr.symbol.definition.strokeScaling = true;
}
paper.view.zoom = options.thumbnailSize / Math.max(ts.width, ts.height);
view.resize(ts.width * paper.view.zoom, ts.height * paper.view.zoom);
......@@ -209,11 +204,6 @@ define([
$.each(selectedAnnot, function(i, e){ e.selected=true; });
$.each(fullySelectedAnnot, function(i, e){ e.fullySelected=true; });
// Reset arrows strokeScaling to false if needed
for (aIdx=0, arr; arr=arrows[aIdx]; aIdx++) {
arr.symbol.definition.strokeScaling = false;
}
// Restore view params
paper.view.viewSize = s;
paper.view.zoom = z;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment