Skip to content

Commit

Permalink
change the cartoon default style
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoes committed Oct 7, 2015
1 parent 37c02be commit ac8abd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 3Dmol/glcartoon.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var $3Dmol = $3Dmol || {};

/**@typedef CartoonStyleSpec
* @prop {ColorSpec} color - strand color, may specify as 'spectrum'
* @prop {string} style - style of cartoon rendering (default, trace, oval, rectangle, parabola)
* @prop {string} style - style of cartoon rendering (trace, oval, rectangle (default), parabola, edged)
* @prop {boolean} ribbon - whether to use constant strand width, disregarding secondary structure; use thickness to adjust radius
* @prop {boolean} arrows - whether to add arrows showing beta-sheet directionality; does not apply to trace or ribbon
* @prop {boolean} tubes - whether to display alpha helices as simple cylinders; does not apply to trace
Expand Down Expand Up @@ -749,6 +749,8 @@ $3Dmol.drawCartoon = (function() {
var drawStrip = function(group, points, colors, div, thickness, opacity, shape)
{
if (!shape || shape === "default")
shape = "rectangle";
if(shape === 'edged')
drawPlainStrip(group, points, colors, div, thickness, opacity);
else if (shape === "rectangle" || shape === "oval" || shape === "parabola")
drawShapeStrip(group, points, colors, div, thickness, opacity, shape);
Expand Down

0 comments on commit ac8abd0

Please sign in to comment.