@decidables/detectable-elements 0.3.1 → 0.4.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.
- package/CHANGELOG.md +9 -0
- package/lib/detectableElements.esm.js +18 -27
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +19 -19
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +18 -27
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +19 -19
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/colors.yml +23 -0
- package/src/detectable-element.js +3 -17
|
@@ -5805,16 +5805,6 @@
|
|
|
5805
5805
|
return linearish(scale);
|
|
5806
5806
|
}
|
|
5807
5807
|
|
|
5808
|
-
function colors (specifier) {
|
|
5809
|
-
var n = specifier.length / 6 | 0,
|
|
5810
|
-
colors = new Array(n),
|
|
5811
|
-
i = 0;
|
|
5812
|
-
while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
|
5813
|
-
return colors;
|
|
5814
|
-
}
|
|
5815
|
-
|
|
5816
|
-
var Set1 = colors("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");
|
|
5817
|
-
|
|
5818
5808
|
function constant (x) {
|
|
5819
5809
|
return function constant() {
|
|
5820
5810
|
return x;
|
|
@@ -7367,6 +7357,23 @@
|
|
|
7367
7357
|
};
|
|
7368
7358
|
}
|
|
7369
7359
|
|
|
7360
|
+
var data = { colors:{ h:"#4daf4a",
|
|
7361
|
+
m:"#ff7f00",
|
|
7362
|
+
fa:"#377eb8",
|
|
7363
|
+
cr:"#e41a1c",
|
|
7364
|
+
hr:"#ffff33",
|
|
7365
|
+
far:"#984ea3",
|
|
7366
|
+
acc:"#999999",
|
|
7367
|
+
d:"#f781bf",
|
|
7368
|
+
c:"#a65628",
|
|
7369
|
+
s:"#4545d0",
|
|
7370
|
+
present:"#f032e6",
|
|
7371
|
+
absent:"#10dbc9",
|
|
7372
|
+
correct:"#ffffff",
|
|
7373
|
+
error:"#000000",
|
|
7374
|
+
nr:"#cccccc" } };
|
|
7375
|
+
var colors = data.colors;
|
|
7376
|
+
|
|
7370
7377
|
/*
|
|
7371
7378
|
DetectableElement Base Class - Not intended for instantiation!
|
|
7372
7379
|
<detectable-element>
|
|
@@ -7386,23 +7393,7 @@
|
|
|
7386
7393
|
this.interactive = false;
|
|
7387
7394
|
}
|
|
7388
7395
|
static get colors() {
|
|
7389
|
-
return
|
|
7390
|
-
h: Set1[2],
|
|
7391
|
-
m: Set1[4],
|
|
7392
|
-
fa: Set1[1],
|
|
7393
|
-
cr: Set1[0],
|
|
7394
|
-
hr: Set1[5],
|
|
7395
|
-
far: Set1[3],
|
|
7396
|
-
acc: Set1[8],
|
|
7397
|
-
d: Set1[7],
|
|
7398
|
-
c: Set1[6],
|
|
7399
|
-
s: '#4545d0',
|
|
7400
|
-
present: '#f032e6',
|
|
7401
|
-
absent: '#10dbc9',
|
|
7402
|
-
correct: '#ffffff',
|
|
7403
|
-
error: '#000000',
|
|
7404
|
-
nr: '#cccccc'
|
|
7405
|
-
};
|
|
7396
|
+
return colors;
|
|
7406
7397
|
}
|
|
7407
7398
|
static get lights() {
|
|
7408
7399
|
return Object.keys(DetectableElement.colors).reduce((acc, cur) => {
|