|
@@ -1,5 +1,5 @@
|
|
/**
|
|
/**
|
|
- * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
|
|
|
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
*
|
|
*
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
*/
|
|
*/
|
|
@@ -35,7 +35,7 @@ export const CartoonParams = {
|
|
...NucleotideRingParams,
|
|
...NucleotideRingParams,
|
|
...PolymerDirectionParams,
|
|
...PolymerDirectionParams,
|
|
sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }),
|
|
sizeFactor: PD.Numeric(0.2, { min: 0, max: 10, step: 0.01 }),
|
|
- visuals: PD.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-block'], PD.objectToOptions(CartoonVisuals)),
|
|
|
|
|
|
+ visuals: PD.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring'], PD.objectToOptions(CartoonVisuals)),
|
|
bumpFrequency: PD.Numeric(2, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory),
|
|
bumpFrequency: PD.Numeric(2, { min: 0, max: 10, step: 0.1 }, BaseGeometry.ShadingCategory),
|
|
};
|
|
};
|
|
|
|
|
|
@@ -49,7 +49,7 @@ export function getCartoonParams(ctx: ThemeRegistryContext, structure: Structure
|
|
if (!hasGaps && u.gapElements.length) hasGaps = true;
|
|
if (!hasGaps && u.gapElements.length) hasGaps = true;
|
|
});
|
|
});
|
|
params.visuals.defaultValue = ['polymer-trace'];
|
|
params.visuals.defaultValue = ['polymer-trace'];
|
|
- if (hasNucleotides) params.visuals.defaultValue.push('nucleotide-block');
|
|
|
|
|
|
+ if (hasNucleotides) params.visuals.defaultValue.push('nucleotide-ring');
|
|
if (hasGaps) params.visuals.defaultValue.push('polymer-gap');
|
|
if (hasGaps) params.visuals.defaultValue.push('polymer-gap');
|
|
return params;
|
|
return params;
|
|
}
|
|
}
|