From 0a7357bad4e646177b0420848844f503e0b64161 Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Thu, 31 May 2012 14:34:21 -0700 Subject: somewhat working version of the canvas runtime for pen paths (the runtime renders properly if we go through debugger)...also removed calls to getStageElement from pen tool --- assets/canvas-runtime.js | 10 ++++++++-- js/tools/PenTool.js | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/canvas-runtime.js b/assets/canvas-runtime.js index c0c4ccfc..3ed7ed0f 100644 --- a/assets/canvas-runtime.js +++ b/assets/canvas-runtime.js @@ -1920,6 +1920,12 @@ NinjaCvsRt.RuntimeSubPath = Object.create(NinjaCvsRt.RuntimeGeomObj, { _strokeColor: {value: null, writable: true}, _fillColor: {value: null, writable: true}, + geomType: { + value: function () { + return this.GEOM_TYPE_CUBIC_BEZIER; + } + }, + importJSON: { value: function(jo) { if (this.geomType()!== jo.geomType){ @@ -1929,7 +1935,7 @@ NinjaCvsRt.RuntimeSubPath = Object.create(NinjaCvsRt.RuntimeGeomObj, { this._Anchors = []; var i=0; for (i=0;i