@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.4.0](https://github.com/decidables/decidables/compare/@decidables/detectable-elements@0.3.1...@decidables/detectable-elements@0.4.0) (2025-10-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **all:** put color themes in YAML files ([af954df](https://github.com/decidables/decidables/commit/af954df0809b09806976cb18953b75d5e3c1ca08))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.3.1](https://github.com/decidables/decidables/compare/@decidables/detectable-elements@0.3.0...@decidables/detectable-elements@0.3.1) (2025-09-09)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @decidables/detectable-elements
|
|
@@ -5799,16 +5799,6 @@ function linear() {
|
|
|
5799
5799
|
return linearish(scale);
|
|
5800
5800
|
}
|
|
5801
5801
|
|
|
5802
|
-
function colors (specifier) {
|
|
5803
|
-
var n = specifier.length / 6 | 0,
|
|
5804
|
-
colors = new Array(n),
|
|
5805
|
-
i = 0;
|
|
5806
|
-
while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
|
5807
|
-
return colors;
|
|
5808
|
-
}
|
|
5809
|
-
|
|
5810
|
-
var Set1 = colors("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");
|
|
5811
|
-
|
|
5812
5802
|
function constant (x) {
|
|
5813
5803
|
return function constant() {
|
|
5814
5804
|
return x;
|
|
@@ -7361,6 +7351,23 @@ function DecidablesMixinResizeable(superClass) {
|
|
|
7361
7351
|
};
|
|
7362
7352
|
}
|
|
7363
7353
|
|
|
7354
|
+
var data = { colors:{ h:"#4daf4a",
|
|
7355
|
+
m:"#ff7f00",
|
|
7356
|
+
fa:"#377eb8",
|
|
7357
|
+
cr:"#e41a1c",
|
|
7358
|
+
hr:"#ffff33",
|
|
7359
|
+
far:"#984ea3",
|
|
7360
|
+
acc:"#999999",
|
|
7361
|
+
d:"#f781bf",
|
|
7362
|
+
c:"#a65628",
|
|
7363
|
+
s:"#4545d0",
|
|
7364
|
+
present:"#f032e6",
|
|
7365
|
+
absent:"#10dbc9",
|
|
7366
|
+
correct:"#ffffff",
|
|
7367
|
+
error:"#000000",
|
|
7368
|
+
nr:"#cccccc" } };
|
|
7369
|
+
var colors = data.colors;
|
|
7370
|
+
|
|
7364
7371
|
/*
|
|
7365
7372
|
DetectableElement Base Class - Not intended for instantiation!
|
|
7366
7373
|
<detectable-element>
|
|
@@ -7380,23 +7387,7 @@ class DetectableElement extends DecidablesElement {
|
|
|
7380
7387
|
this.interactive = false;
|
|
7381
7388
|
}
|
|
7382
7389
|
static get colors() {
|
|
7383
|
-
return
|
|
7384
|
-
h: Set1[2],
|
|
7385
|
-
m: Set1[4],
|
|
7386
|
-
fa: Set1[1],
|
|
7387
|
-
cr: Set1[0],
|
|
7388
|
-
hr: Set1[5],
|
|
7389
|
-
far: Set1[3],
|
|
7390
|
-
acc: Set1[8],
|
|
7391
|
-
d: Set1[7],
|
|
7392
|
-
c: Set1[6],
|
|
7393
|
-
s: '#4545d0',
|
|
7394
|
-
present: '#f032e6',
|
|
7395
|
-
absent: '#10dbc9',
|
|
7396
|
-
correct: '#ffffff',
|
|
7397
|
-
error: '#000000',
|
|
7398
|
-
nr: '#cccccc'
|
|
7399
|
-
};
|
|
7390
|
+
return colors;
|
|
7400
7391
|
}
|
|
7401
7392
|
static get lights() {
|
|
7402
7393
|
return Object.keys(DetectableElement.colors).reduce((acc, cur) => {
|