aboutsummaryrefslogtreecommitdiff
path: root/js/tools/TagTool.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools/TagTool.js')
-rwxr-xr-xjs/tools/TagTool.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/tools/TagTool.js b/js/tools/TagTool.js
index 6df49a7b..2b6742e6 100755
--- a/js/tools/TagTool.js
+++ b/js/tools/TagTool.js
@@ -221,7 +221,7 @@ exports.TagTool = Montage.create(DrawingTool, {
221 }, 221 },
222 222
223 makeElement: { 223 makeElement: {
224 value: function(w, h, planeMat, midPt,tag) { 224 value: function(w, h, planeMat, midPt,tag, isWebGl) {
225 var left = Math.round(midPt[0] - 0.5 * w); 225 var left = Math.round(midPt[0] - 0.5 * w);
226 var top = Math.round(midPt[1] - 0.5 * h); 226 var top = Math.round(midPt[1] - 0.5 * h);
227 227
@@ -234,6 +234,8 @@ exports.TagTool = Montage.create(DrawingTool, {
234 if(!MathUtils.isIdentityMatrix(planeMat)) { 234 if(!MathUtils.isIdentityMatrix(planeMat)) {
235 styles['-webkit-transform-style'] = 'preserve-3d'; 235 styles['-webkit-transform-style'] = 'preserve-3d';
236 styles['-webkit-transform'] = DrawingToolBase.getElementMatrix(planeMat, midPt); 236 styles['-webkit-transform'] = DrawingToolBase.getElementMatrix(planeMat, midPt);
237 } else if(isWebGl) {
238 styles['-webkit-transform-style'] = 'preserve-3d';
237 } 239 }
238 240
239 // TODO - for canvas, set both as style and attribute. 241 // TODO - for canvas, set both as style and attribute.