Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / MCview / Bond.js
index 539e323..9aaba45 100644 (file)
@@ -1,34 +1,34 @@
-Clazz.declarePackage ("MCview");\r
-Clazz.load (["java.awt.Color"], "MCview.Bond", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.start = null;\r
-this.end = null;\r
-this.startCol = null;\r
-this.endCol = null;\r
-this.at1 = null;\r
-this.at2 = null;\r
-Clazz.instantialize (this, arguments);\r
-}, MCview, "Bond");\r
-Clazz.prepareFields (c$, function () {\r
-this.startCol = java.awt.Color.lightGray;\r
-this.endCol = java.awt.Color.lightGray;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (at1, at2) {\r
-this.start =  Clazz.newFloatArray (-1, [at1.x, at1.y, at1.z]);\r
-this.end =  Clazz.newFloatArray (-1, [at2.x, at2.y, at2.z]);\r
-this.startCol = at1.color;\r
-this.endCol = at2.color;\r
-this.at1 = at1;\r
-this.at2 = at2;\r
-}, "MCview.Atom,MCview.Atom");\r
-Clazz.defineMethod (c$, "translate", \r
-function (x, y, z) {\r
-this.start[0] = this.start[0] + x;\r
-this.end[0] = this.end[0] + x;\r
-this.start[1] = this.start[1] + y;\r
-this.end[1] = this.end[1] + y;\r
-this.start[2] = this.start[2] + z;\r
-this.end[2] = this.end[2] + z;\r
-}, "~N,~N,~N");\r
-});\r
+Clazz.declarePackage ("MCview");
+Clazz.load (["java.awt.Color"], "MCview.Bond", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.start = null;
+this.end = null;
+this.startCol = null;
+this.endCol = null;
+this.at1 = null;
+this.at2 = null;
+Clazz.instantialize (this, arguments);
+}, MCview, "Bond");
+Clazz.prepareFields (c$, function () {
+this.startCol = java.awt.Color.lightGray;
+this.endCol = java.awt.Color.lightGray;
+});
+Clazz.makeConstructor (c$, 
+function (at1, at2) {
+this.start =  Clazz.newFloatArray (-1, [at1.x, at1.y, at1.z]);
+this.end =  Clazz.newFloatArray (-1, [at2.x, at2.y, at2.z]);
+this.startCol = at1.color;
+this.endCol = at2.color;
+this.at1 = at1;
+this.at2 = at2;
+}, "MCview.Atom,MCview.Atom");
+Clazz.defineMethod (c$, "translate", 
+function (x, y, z) {
+this.start[0] = this.start[0] + x;
+this.end[0] = this.end[0] + x;
+this.start[1] = this.start[1] + y;
+this.end[1] = this.end[1] + y;
+this.start[2] = this.start[2] + z;
+this.end[2] = this.end[2] + z;
+}, "~N,~N,~N");
+});