diff options
author | Nivesh Rajbhandari | 2012-03-29 15:52:08 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-29 17:04:06 -0700 |
commit | 5b4f6b1618cf571a6bce5a631f976a008e04a64e (patch) | |
tree | d073038b08d14884f87c7776e9e192256d414cfb /js/document | |
parent | 6b61de58f0733b40f64ed996933ac89927e922a1 (diff) | |
download | ninja-5b4f6b1618cf571a6bce5a631f976a008e04a64e.tar.gz |
Updated shapes to always check for its stroke and fill colors and materials instead of relying on the shapeModel cache because it can get out of sync.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/html-document.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 8f9d2870..6ca9eaa3 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -307,19 +307,15 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
307 | { | 307 | { |
308 | shapeModel.GLGeomObj = root; | 308 | shapeModel.GLGeomObj = root; |
309 | shapeModel.strokeSize = root._strokeWidth; | 309 | shapeModel.strokeSize = root._strokeWidth; |
310 | shapeModel.stroke = root._strokeColor.slice(); | 310 | shapeModel.stroke = root._strokeColor; |
311 | shapeModel.strokeMaterial = root._strikeMaterial ? root._strokeMaterial.dup() : null; | ||
312 | shapeModel.strokeStyle = "solid"; | 311 | shapeModel.strokeStyle = "solid"; |
313 | //shapeModel.strokeStyleIndex | 312 | //shapeModel.strokeStyleIndex |
314 | //shapeModel.border | ||
315 | //shapeModel.background | ||
316 | switch (root.geomType()) | 313 | switch (root.geomType()) |
317 | { | 314 | { |
318 | case root.GEOM_TYPE_RECTANGLE: | 315 | case root.GEOM_TYPE_RECTANGLE: |
319 | elementModel.selection = "Rectangle"; | 316 | elementModel.selection = "Rectangle"; |
320 | elementModel.pi = "RectanglePi"; | 317 | elementModel.pi = "RectanglePi"; |
321 | shapeModel.fill = root._fillColor.slice(); | 318 | shapeModel.fill = root._fillColor; |
322 | shapeModel.fillMaterial = root._fillMaterial ? root._fillMaterial.dup() : null; | ||
323 | shapeModel.tlRadius = root._tlRadius; | 319 | shapeModel.tlRadius = root._tlRadius; |
324 | shapeModel.trRadius = root._trRadius; | 320 | shapeModel.trRadius = root._trRadius; |
325 | shapeModel.blRadius = root._blRadius; | 321 | shapeModel.blRadius = root._blRadius; |
@@ -329,8 +325,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
329 | case root.GEOM_TYPE_CIRCLE: | 325 | case root.GEOM_TYPE_CIRCLE: |
330 | elementModel.selection = "Oval"; | 326 | elementModel.selection = "Oval"; |
331 | elementModel.pi = "OvalPi"; | 327 | elementModel.pi = "OvalPi"; |
332 | shapeModel.fill = root._fillColor.slice(); | 328 | shapeModel.fill = root._fillColor; |
333 | shapeModel.fillMaterial = root._fillMaterial ? root._fillMaterial.dup() : null; | ||
334 | shapeModel.innerRadius = root._innerRadius; | 329 | shapeModel.innerRadius = root._innerRadius; |
335 | break; | 330 | break; |
336 | 331 | ||