integ/js/vs/_vs.chart.js
changeset 28 84719280c84d
child 53 88666afffe6b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/integ/js/vs/_vs.chart.js	Fri Apr 12 15:08:00 2013 +0200
@@ -0,0 +1,44 @@
+(function ($) {
+$.fn.vs.chart = {
+	/* 
+		actually empty everything is in 
+	   _vs.AxisLabelLayout.js,
+       _vs.AxisLayout.js,
+       _vs.CircleLayout.js,
+       _vs.CollapsedStackLayout.js,
+       _vs.GridLayout.js,
+       _vs.StackedAreaChart.js
+   
+
+  this.update = function(_this,options){
+    var defaultOptions = {cat:0,y:0}
+    if(_this.chartPhySetup.grounds[options.cat]!=null) {
+      var myBody = _this.chartPhySetup.grounds[options.cat].GetBody();
+      var myPos = myBody.GetWorldCenter();
+      myPos.y-=options.y/ _this.settings.options.scale;
+      myBody.SetPosition(myPos);
+      //console.log(myBody)
+    }
+  }
+
+  this.getPosition = function(_this){
+    var result =[]
+    for (var i = 0; i < _this.chartPhySetup.grounds.length; i++) {
+      myBody = _this.chartPhySetup.grounds[i].GetBody();
+     
+      console.log(myBody.GetWorldCenter())
+     
+      result.push({
+        x:(myBody.GetWorldCenter().x* _this.settings.options.scale),
+        y:(myBody.GetWorldCenter().y* _this.settings.options.scale),
+        a:myBody.GetAngle()
+      })
+    
+    };  
+   return result 
+  }
+ */
+}
+
+
+})(jQuery);