@decidables/detectable-elements 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ export default class SDTExample extends DetectableElement {
59
59
  ];
60
60
  }
61
61
 
62
- render() { // eslint-disable-line class-methods-use-this
62
+ render() { /* eslint-disable-line class-methods-use-this */
63
63
  return html`
64
64
  <div class="holder">
65
65
  <div class="body">
@@ -20,15 +20,13 @@ export default class SDTExampleUnequal extends SDTExample {
20
20
 
21
21
  if (this.rocSpace) {
22
22
  this.rocSpace.setWithSDT(1, 0, 'default', '', 1); // Set 'default' to equal variance for contours
23
+
24
+ d3.range(-1.5, 1.6, 0.5).forEach((c, index) => {
25
+ this.rocSpace.setWithSDT(this.sdtModel.d, c, `point${index}`, '', this.sdtModel.s);
26
+ });
23
27
  }
24
28
 
25
29
  if (this.sdtModel) {
26
- if (this.rocSpace) {
27
- d3.range(-1.5, 1.6, 0.5).forEach((c, index) => {
28
- this.rocSpace.setWithSDT(this.sdtModel.d, c, `point${index}`, '', this.sdtModel.s);
29
- });
30
- }
31
-
32
30
  this.sdtModel.addEventListener('sdt-model-change', (event) => {
33
31
  if (this.rocSpace) {
34
32
  d3.range(-1.5, 1.6, 0.5).forEach((c, index) => {