@decidables/detectable-elements 0.2.7 → 0.2.9
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.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -0
- package/lib/detectableElements.esm.js +54 -29
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +16 -16
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +54 -29
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +16 -16
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/src/components/detectable-table.js +10 -7
- package/src/components/roc-space.js +4 -2
- package/src/components/sdt-model.js +4 -2
- package/src/equations/dc2far.js +4 -1
- package/src/equations/dc2hr.js +4 -1
- package/src/equations/facr2far.js +4 -1
- package/src/equations/hfa2ppv.js +4 -1
- package/src/equations/hm2hr.js +4 -1
- package/src/equations/hmfacr2acc.js +4 -1
- package/src/equations/hrfar2c.js +4 -1
- package/src/equations/hrfar2d.js +4 -1
- package/src/equations/mcr2fomr.js +4 -1
- package/src/examples/double-interactive.js +3 -1
- package/src/examples/human.js +3 -1
- package/src/examples/interactive.js +3 -1
- package/src/examples/model.js +3 -1
- package/src/examples/multiple.js +3 -1
- package/src/examples/unequal.js +3 -1
|
@@ -12650,9 +12650,11 @@
|
|
|
12650
12650
|
${DetectableElement.svgFilters}
|
|
12651
12651
|
`;
|
|
12652
12652
|
}
|
|
12653
|
+
willUpdate() {
|
|
12654
|
+
this.alignState();
|
|
12655
|
+
}
|
|
12653
12656
|
update(changedProperties) {
|
|
12654
12657
|
super.update(changedProperties);
|
|
12655
|
-
this.alignState();
|
|
12656
12658
|
|
|
12657
12659
|
// Bail out if we can't get the width/height/rem
|
|
12658
12660
|
if (Number.isNaN(this.width) || Number.isNaN(this.height) || Number.isNaN(this.rem)) {
|
|
@@ -13842,9 +13844,11 @@
|
|
|
13842
13844
|
bubbles: true
|
|
13843
13845
|
}));
|
|
13844
13846
|
}
|
|
13847
|
+
willUpdate() {
|
|
13848
|
+
this.alignState();
|
|
13849
|
+
}
|
|
13845
13850
|
update(changedProperties) {
|
|
13846
13851
|
super.update(changedProperties);
|
|
13847
|
-
this.alignState();
|
|
13848
13852
|
|
|
13849
13853
|
// Bail out if we can't get the width/height
|
|
13850
13854
|
if (Number.isNaN(this.width) || Number.isNaN(this.height) || Number.isNaN(this.rem)) {
|
|
@@ -15190,16 +15194,17 @@
|
|
|
15190
15194
|
this.summary = new Set();
|
|
15191
15195
|
this.colors = ['none', 'accuracy', 'stimulus', 'response', 'outcome', 'all'];
|
|
15192
15196
|
this.color = 'all';
|
|
15193
|
-
this.h = 40;
|
|
15194
|
-
this.m = 60;
|
|
15195
|
-
this.fa = 75;
|
|
15196
|
-
this.cr = 25;
|
|
15197
|
-
this.alignState();
|
|
15198
15197
|
this.payoff = false;
|
|
15199
15198
|
this.hPayoff = undefined; // Hit payoff
|
|
15200
15199
|
this.mPayoff = undefined; // Miss payoff
|
|
15201
15200
|
this.crPayoff = undefined; // Correct Rejection payoff
|
|
15202
15201
|
this.faPayoff = undefined; // False Alarm payoff
|
|
15202
|
+
|
|
15203
|
+
this.h = 40;
|
|
15204
|
+
this.m = 60;
|
|
15205
|
+
this.fa = 75;
|
|
15206
|
+
this.cr = 25;
|
|
15207
|
+
this.alignState();
|
|
15203
15208
|
}
|
|
15204
15209
|
alignState() {
|
|
15205
15210
|
this.hr = SDTMath.hM2Hr(this.h, this.m);
|
|
@@ -15492,6 +15497,9 @@
|
|
|
15492
15497
|
}
|
|
15493
15498
|
`];
|
|
15494
15499
|
}
|
|
15500
|
+
willUpdate() {
|
|
15501
|
+
this.alignState();
|
|
15502
|
+
}
|
|
15495
15503
|
render() {
|
|
15496
15504
|
const payoffFormatter = new Intl.NumberFormat('en-US', {
|
|
15497
15505
|
style: 'currency',
|
|
@@ -15512,7 +15520,6 @@
|
|
|
15512
15520
|
return string + part;
|
|
15513
15521
|
});
|
|
15514
15522
|
};
|
|
15515
|
-
this.alignState();
|
|
15516
15523
|
let h;
|
|
15517
15524
|
let m;
|
|
15518
15525
|
let fa;
|
|
@@ -15882,8 +15889,10 @@
|
|
|
15882
15889
|
this.alignState();
|
|
15883
15890
|
this.sendEvent();
|
|
15884
15891
|
}
|
|
15885
|
-
|
|
15892
|
+
willUpdate() {
|
|
15886
15893
|
this.alignState();
|
|
15894
|
+
}
|
|
15895
|
+
render() {
|
|
15887
15896
|
let d;
|
|
15888
15897
|
let c;
|
|
15889
15898
|
let s;
|
|
@@ -16048,8 +16057,10 @@
|
|
|
16048
16057
|
this.alignState();
|
|
16049
16058
|
this.sendEvent();
|
|
16050
16059
|
}
|
|
16051
|
-
|
|
16060
|
+
willUpdate() {
|
|
16052
16061
|
this.alignState();
|
|
16062
|
+
}
|
|
16063
|
+
render() {
|
|
16053
16064
|
let d;
|
|
16054
16065
|
let c;
|
|
16055
16066
|
let s;
|
|
@@ -16205,8 +16216,10 @@
|
|
|
16205
16216
|
this.alignState();
|
|
16206
16217
|
this.sendEvent();
|
|
16207
16218
|
}
|
|
16208
|
-
|
|
16219
|
+
willUpdate() {
|
|
16209
16220
|
this.alignState();
|
|
16221
|
+
}
|
|
16222
|
+
render() {
|
|
16210
16223
|
let fa;
|
|
16211
16224
|
let cr;
|
|
16212
16225
|
let far;
|
|
@@ -16311,8 +16324,10 @@
|
|
|
16311
16324
|
this.alignState();
|
|
16312
16325
|
this.sendEvent();
|
|
16313
16326
|
}
|
|
16314
|
-
|
|
16327
|
+
willUpdate() {
|
|
16315
16328
|
this.alignState();
|
|
16329
|
+
}
|
|
16330
|
+
render() {
|
|
16316
16331
|
let h;
|
|
16317
16332
|
let fa;
|
|
16318
16333
|
let ppv;
|
|
@@ -16418,8 +16433,10 @@
|
|
|
16418
16433
|
this.alignState();
|
|
16419
16434
|
this.sendEvent();
|
|
16420
16435
|
}
|
|
16421
|
-
|
|
16436
|
+
willUpdate() {
|
|
16422
16437
|
this.alignState();
|
|
16438
|
+
}
|
|
16439
|
+
render() {
|
|
16423
16440
|
let h;
|
|
16424
16441
|
let m;
|
|
16425
16442
|
let hr;
|
|
@@ -16549,8 +16566,10 @@
|
|
|
16549
16566
|
this.alignState();
|
|
16550
16567
|
this.sendEvent();
|
|
16551
16568
|
}
|
|
16552
|
-
|
|
16569
|
+
willUpdate() {
|
|
16553
16570
|
this.alignState();
|
|
16571
|
+
}
|
|
16572
|
+
render() {
|
|
16554
16573
|
let h;
|
|
16555
16574
|
let m;
|
|
16556
16575
|
let fa;
|
|
@@ -16687,8 +16706,10 @@
|
|
|
16687
16706
|
this.alignState();
|
|
16688
16707
|
this.sendEvent();
|
|
16689
16708
|
}
|
|
16690
|
-
|
|
16709
|
+
willUpdate() {
|
|
16691
16710
|
this.alignState();
|
|
16711
|
+
}
|
|
16712
|
+
render() {
|
|
16692
16713
|
let hr;
|
|
16693
16714
|
let far;
|
|
16694
16715
|
let s;
|
|
@@ -16850,8 +16871,10 @@
|
|
|
16850
16871
|
this.alignState();
|
|
16851
16872
|
this.sendEvent();
|
|
16852
16873
|
}
|
|
16853
|
-
|
|
16874
|
+
willUpdate() {
|
|
16854
16875
|
this.alignState();
|
|
16876
|
+
}
|
|
16877
|
+
render() {
|
|
16855
16878
|
let hr;
|
|
16856
16879
|
let far;
|
|
16857
16880
|
let s;
|
|
@@ -16978,8 +17001,10 @@
|
|
|
16978
17001
|
this.alignState();
|
|
16979
17002
|
this.sendEvent();
|
|
16980
17003
|
}
|
|
16981
|
-
|
|
17004
|
+
willUpdate() {
|
|
16982
17005
|
this.alignState();
|
|
17006
|
+
}
|
|
17007
|
+
render() {
|
|
16983
17008
|
let m;
|
|
16984
17009
|
let cr;
|
|
16985
17010
|
let fomr;
|
|
@@ -17098,8 +17123,8 @@
|
|
|
17098
17123
|
<sdt-example-interactive>
|
|
17099
17124
|
*/
|
|
17100
17125
|
class SDTExampleDoubleInteractive extends SDTExample {
|
|
17101
|
-
|
|
17102
|
-
|
|
17126
|
+
connectedCallback() {
|
|
17127
|
+
super.connectedCallback();
|
|
17103
17128
|
this.one = {};
|
|
17104
17129
|
this.one.h = 95;
|
|
17105
17130
|
this.one.m = 5;
|
|
@@ -17232,8 +17257,8 @@
|
|
|
17232
17257
|
<sdt-example-human>
|
|
17233
17258
|
*/
|
|
17234
17259
|
class SDTExampleHuman extends SDTExample {
|
|
17235
|
-
|
|
17236
|
-
|
|
17260
|
+
connectedCallback() {
|
|
17261
|
+
super.connectedCallback();
|
|
17237
17262
|
this.count = 1;
|
|
17238
17263
|
this.detectableControl = this.querySelector('detectable-control');
|
|
17239
17264
|
this.rdkTask = this.querySelector('rdk-task');
|
|
@@ -17395,8 +17420,8 @@
|
|
|
17395
17420
|
<sdt-example-interactive>
|
|
17396
17421
|
*/
|
|
17397
17422
|
class SDTExampleInteractive extends SDTExample {
|
|
17398
|
-
|
|
17399
|
-
|
|
17423
|
+
connectedCallback() {
|
|
17424
|
+
super.connectedCallback();
|
|
17400
17425
|
this.detectableControl = this.querySelector('detectable-control');
|
|
17401
17426
|
this.detectableTable = this.querySelector('detectable-table');
|
|
17402
17427
|
this.rocSpace = this.querySelector('roc-space');
|
|
@@ -17493,8 +17518,8 @@
|
|
|
17493
17518
|
<sdt-example-model>
|
|
17494
17519
|
*/
|
|
17495
17520
|
class SDTExampleModel extends SDTExample {
|
|
17496
|
-
|
|
17497
|
-
|
|
17521
|
+
connectedCallback() {
|
|
17522
|
+
super.connectedCallback();
|
|
17498
17523
|
this.count = 1;
|
|
17499
17524
|
this.detectableControl = this.querySelector('detectable-control');
|
|
17500
17525
|
this.rdkTask = this.querySelector('rdk-task');
|
|
@@ -17688,8 +17713,8 @@
|
|
|
17688
17713
|
this.variable = 'd';
|
|
17689
17714
|
this.values = [0, 1];
|
|
17690
17715
|
}
|
|
17691
|
-
|
|
17692
|
-
|
|
17716
|
+
connectedCallback() {
|
|
17717
|
+
super.connectedCallback();
|
|
17693
17718
|
this.detectableControl = this.querySelector('detectable-control');
|
|
17694
17719
|
this.rocSpace = this.querySelector('roc-space');
|
|
17695
17720
|
this.sdtModel = this.querySelector('sdt-model');
|
|
@@ -17735,8 +17760,8 @@
|
|
|
17735
17760
|
<sdt-example-unequal>
|
|
17736
17761
|
*/
|
|
17737
17762
|
class SDTExampleUnequal extends SDTExample {
|
|
17738
|
-
|
|
17739
|
-
|
|
17763
|
+
connectedCallback() {
|
|
17764
|
+
super.connectedCallback();
|
|
17740
17765
|
this.detectableControl = this.querySelector('detectable-control');
|
|
17741
17766
|
this.rocSpace = this.querySelector('roc-space');
|
|
17742
17767
|
this.sdtModel = this.querySelector('sdt-model');
|