UNPKG

biojs-vis-pdbviewer

Version:

A BioJS 2.0 component to view protein structures

23 lines (22 loc) 854 B
Clazz.declarePackage ("J.shape"); Clazz.load (["J.shape.FontLineShape"], "J.shape.Bbcage", null, function () { c$ = Clazz.decorateAsClass (function () { this.isVisible = false; Clazz.instantialize (this, arguments); }, J.shape, "Bbcage", J.shape.FontLineShape); Clazz.overrideMethod (c$, "setProperty", function (propertyName, value, bs) { this.setPropFLS (propertyName, value); }, "~S,~O,JU.BS"); Clazz.defineMethod (c$, "initShape", function () { Clazz.superCall (this, J.shape.Bbcage, "initShape", []); this.font3d = this.gdata.getFont3D (14); this.myType = "boundBox"; }); Clazz.overrideMethod (c$, "setVisibilityFlags", function (bs) { var bboxModels; this.isVisible = ((this.mad = this.vwr.getObjectMad (4)) != 0 && ((bboxModels = this.vwr.ms.getBoundBoxModels ()) == null || bs.intersects (bboxModels))); }, "JU.BS"); });