Commit d75c45c56c1fcbf03e232c5845cb8841c5bbe087
1 parent
6f105dbd55
Exists in
master
and in
2 other branches
remove test showcase
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
app/scripts/controllers/tshirtdesign.js
... | ... | @@ -16,11 +16,11 @@ |
16 | 16 | 'object:selected': onllustrationSelected, |
17 | 17 | }); |
18 | 18 | function onIllustrationChange(options) { |
19 | - options.target.setCoords(); | |
20 | - canvas.forEachObject(function(obj) { | |
21 | - if (obj === options.target) return; | |
22 | - obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); | |
23 | - }); | |
19 | + // options.target.setCoords(); | |
20 | + // canvas.forEachObject(function(obj) { | |
21 | + // if (obj === options.target) return; | |
22 | + // obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); | |
23 | + // }); | |
24 | 24 | } |
25 | 25 | |
26 | 26 | $scope.currentObject = null; |
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | $scope.insertSvg = function(item){ |
39 | 39 | fabric.loadSVGFromURL(item.path, function(objects, options) { |
40 | 40 | var shape = fabric.util.groupSVGElements(objects, options); |
41 | - shape.setFill('green'); | |
41 | + // shape.setFill('green'); | |
42 | 42 | canvas.add(shape.scale(0.6)); |
43 | 43 | shape.set({ left: 150, top: 200 }).setCoords(); |
44 | 44 | canvas.renderAll(); |