{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1},"_ClipMode":"visible","derivationIds":["DD5144DF-D571-4C61-8F20-B4F31F2DC84D"],"id":"F43FACCE-8A3F-45C5-B918-4C283EE97C10","droppingEnabled":true,"halosEnabled":true,"eventHandler":{"__isSmartRef__":true,"id":8},"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":10},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":13}],"name":"SVGPathMorph","partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1.18,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(161.3,-28.2)"},"1":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2},{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":4},{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7}],"_BorderWidth":1,"_Opacity":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(2.0,0.0)","_Extent":"lively.pt(81.0,76.9)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(71,246,213)","_Fill":"Color.rgb(151,170,147)"},"2":{"isAbsolute":true,"x":42.5,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3":{"isAbsolute":true,"x":83,"y":29.4,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4":{"isAbsolute":true,"x":67.5,"y":76.9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5":{"isAbsolute":true,"x":17.5,"y":76.9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6":{"isAbsolute":true,"x":2,"y":29.4,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7":{"isAbsolute":true,"__LivelyClassName__":"lively.morphic.Shapes.ClosePath","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"8":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9":{"morph":{"__isSmartRef__":true,"id":0},"index":0,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"10":{"morph":{"__isSmartRef__":true,"id":0},"index":1,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"11":{"morph":{"__isSmartRef__":true,"id":0},"index":2,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"12":{"morph":{"__isSmartRef__":true,"id":0},"index":3,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"13":{"morph":{"__isSmartRef__":true,"id":0},"index":4,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"14":{"partName":"SVGPathMorph","requiredModules":[],"partsSpaceName":"PartsBin/Basic/","comment":"A wrapper around SVG Paths, both open and closed.  The key innovation on this one is that setExtent() is overwritten (and is just a script in the morph) to just redo the vertices","changes":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":16}],"migrationLevel":9,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Mon Dec 22 2014 12:40:56 GMT-0800 (PST)\")"},"15":{"author":"rick","message":"no comment","id":"BCE98FAB-82E7-4B11-8C2A-2D4D2CDE0111","__serializedExpressions__":["date"],"date":"new Date(\"Mon Dec 22 2014 12:40:55 GMT-0800 (PST)\")"},"16":{"__serializedExpressions__":["date"],"author":"rick","message":"put a layer of abstraction over the shape","id":"BAFC7663-64EE-40E1-B6FD-E24BBC41BD34","date":"new Date(\"Wed Dec 31 2014 17:07:14 GMT-0800 (PST)\")"},"17":{"setExtent":{"__isSmartRef__":true,"id":18},"setPathElements":{"__isSmartRef__":true,"id":25}},"18":{"varMapping":{"__isSmartRef__":true,"id":19},"source":"function setExtent(aPoint) {\n    var current = this.getExtent()\n    var scaleFactor = pt(aPoint.x/current.x, aPoint.y/current.y)\n    this.shape.setVertices(this.shape.vertices.map(function(aVertex) {\n        return aVertex.scaleByPt(scaleFactor)\n    }))\n    \n}","funcProperties":{"__isSmartRef__":true,"id":24},"__LivelyClassName__":"lively.Closure"},"19":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20}},"20":{"$super":{"__isSmartRef__":true,"id":21}},"21":{"varMapping":{"__isSmartRef__":true,"id":22},"source":"function () {\n        try {\n          // FIXME super is supposed to be static\n          return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n        } catch (e) {\n          if (typeof $world !== undefined) $world.logError(e, 'Error in $super call')\n          else alert('Error in $super call: ' + e + '\\n' + e.stack);\n          return null;\n        }\n      }","funcProperties":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"lively.Closure"},"22":{"obj":{"__isSmartRef__":true,"id":0},"name":"setExtent"},"23":{},"24":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Mon Dec 22 2014 12:34:37 GMT-0800 (PST)\")"},"25":{"varMapping":{"__isSmartRef__":true,"id":26},"source":"function setPathElements(pathElements) {\n    this.shape.setPathElements(pathElements)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":27},"__LivelyClassName__":"lively.Closure"},"26":{"this":{"__isSmartRef__":true,"id":0}},"27":{"__serializedExpressions__":["timestamp"],"user":"rick","tags":[],"timestamp":"new Date(\"Wed Dec 31 2014 17:06:23 GMT-0800 (PST)\")"},"isSimplifiedRegistry":true}}