@pioneer-code/pioneer-charts 22.2.28 → 22.2.30
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/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@pioneer-code/pioneer-charts",
|
|
3
2
|
"description": "Pioneer Charts, a library of data visualization charts built on top of Angular and D3.",
|
|
4
3
|
"homepage": "https://pioneercharts.com",
|
|
5
4
|
"bugs": {
|
|
@@ -30,7 +29,6 @@
|
|
|
30
29
|
"type": "git",
|
|
31
30
|
"url": "git+https://github.com/PioneerCode/pioneer-charts.git"
|
|
32
31
|
},
|
|
33
|
-
"version": "22.2.28",
|
|
34
32
|
"license": "MIT",
|
|
35
33
|
"peerDependencies": {
|
|
36
34
|
"@angular/core": "^22.1.0",
|
|
@@ -46,25 +44,28 @@
|
|
|
46
44
|
"d3-selection": "^3.0.0",
|
|
47
45
|
"d3-shape": "^3.0.0",
|
|
48
46
|
"d3-transition": "^3.0.0",
|
|
49
|
-
"d3-zoom": "^3.0.0"
|
|
50
|
-
"tslib": "^2.3.0"
|
|
47
|
+
"d3-zoom": "^3.0.0"
|
|
51
48
|
},
|
|
52
49
|
"sideEffects": [
|
|
53
50
|
"*.css",
|
|
54
51
|
"*.scss"
|
|
55
52
|
],
|
|
56
|
-
"
|
|
57
|
-
"
|
|
53
|
+
"name": "@pioneer-code/pioneer-charts",
|
|
54
|
+
"type": "module",
|
|
55
|
+
"main": "./fesm2022/pioneer-code-pioneer-charts.mjs",
|
|
56
|
+
"module": "./fesm2022/pioneer-code-pioneer-charts.mjs",
|
|
57
|
+
"typings": "./types/pioneer-code-pioneer-charts.d.ts",
|
|
58
|
+
"types": "./types/pioneer-code-pioneer-charts.d.ts",
|
|
58
59
|
"exports": {
|
|
59
|
-
"./package.json": {
|
|
60
|
-
"default": "./package.json"
|
|
61
|
-
},
|
|
62
60
|
".": {
|
|
63
61
|
"types": "./types/pioneer-code-pioneer-charts.d.ts",
|
|
64
62
|
"default": "./fesm2022/pioneer-code-pioneer-charts.mjs"
|
|
65
63
|
},
|
|
64
|
+
"./package.json": {
|
|
65
|
+
"default": "./package.json"
|
|
66
|
+
},
|
|
66
67
|
"./themes/*": "./themes/*",
|
|
67
68
|
"./scss/*": "./scss/*"
|
|
68
69
|
},
|
|
69
|
-
"
|
|
70
|
+
"version": "22.2.30"
|
|
70
71
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use "../core/theme/imports";
|
|
2
|
+
|
|
3
|
+
.pcac-state-timeline {
|
|
4
|
+
svg {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pcac-state-period {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// A period in the worst state it was in, deeper the more of what's known of it that state took
|
|
14
|
+
// (`--pcac-state-share`, set by the builder): from 75% of the state's color mixed into the
|
|
15
|
+
// background to all of it, so a period with a little Error is still plainly red. A state's color
|
|
16
|
+
// is its config `color` (`--pcac-state-color`, set on the period) or, without one, the theme's for
|
|
17
|
+
// its place among the states: the first is OK, the last Error, any between Warning. Each is a
|
|
18
|
+
// custom property, so a stylesheet can restyle them; a dark page sets its own (the docs site's
|
|
19
|
+
// dark theme has a set).
|
|
20
|
+
//
|
|
21
|
+
// OK is pale and Warning and Error strong, so they differ in lightness as well as hue: a red-green
|
|
22
|
+
// color-blind reader tells them apart by that (checked with the dataviz palette validator, every
|
|
23
|
+
// pair, at full strength and at 75%, against a white page). Most periods are OK, and stay quiet.
|
|
24
|
+
.pcac-state-ok {
|
|
25
|
+
--pcac-state-theme-color: var(--pcac-state-timeline-ok-color, #98c9b2);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pcac-state-warning {
|
|
29
|
+
--pcac-state-theme-color: var(--pcac-state-timeline-warning-color, #d97706);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.pcac-state-error {
|
|
33
|
+
--pcac-state-theme-color: var(--pcac-state-timeline-error-color, #bb2d3b);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pcac-state-fill {
|
|
37
|
+
fill: color-mix(
|
|
38
|
+
in srgb,
|
|
39
|
+
var(--pcac-state-color, var(--pcac-state-theme-color))
|
|
40
|
+
calc(75% + var(--pcac-state-share, 1) * 25%),
|
|
41
|
+
var(--pcac-state-timeline-background-color, #{imports.$white})
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Nothing known of it: gray, lighter than OK's green. Part of it unknown: the same gray striped over
|
|
46
|
+
// its color.
|
|
47
|
+
.pcac-state-unknown .pcac-state-fill {
|
|
48
|
+
fill: var(--pcac-state-timeline-unknown-color, #{imports.$gray-200});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pcac-state-stripe {
|
|
52
|
+
fill: var(--pcac-state-timeline-unknown-color, #{imports.$gray-200});
|
|
53
|
+
fill-opacity: 0.85;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// A hovered or focused period is outlined in the text color.
|
|
57
|
+
.pcac-state-period.is-active .pcac-state-fill {
|
|
58
|
+
stroke: currentColor;
|
|
59
|
+
stroke-width: 1.5px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pcac-state-row-label {
|
|
63
|
+
font-size: 11px;
|
|
64
|
+
fill: var(--pcac-state-timeline-row-label-color, #{imports.$gray-700});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// `heightFull` support (see PcacChartConfig.heightFull), as on the other charts.
|
|
69
|
+
pcac-state-timeline.pcac-height-full {
|
|
70
|
+
display: block;
|
|
71
|
+
height: 100%;
|
|
72
|
+
|
|
73
|
+
.pcac-state-timeline {
|
|
74
|
+
height: 100%;
|
|
75
|
+
}
|
|
76
|
+
}
|