cornfield 0.42.0 → 0.44.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/core/color.js +38 -8
- package/core/contrast.js +70 -5
- package/core/delta-e.js +66 -0
- package/core/layers.js +8 -0
- package/core/map-tokens.js +83 -0
- package/core/schema.js +29 -7
- package/core/strings.js +2 -0
- package/core/validate.js +4 -2
- package/explorer/capped.js +6 -5
- package/explorer/cloud-model.js +10 -7
- package/explorer/css-color.js +99 -0
- package/explorer/diff-marks.js +3 -1
- package/explorer/edge-key.js +59 -0
- package/explorer/explorer.css +116 -64
- package/explorer/flows.js +0 -2
- package/explorer/forge-panel.js +2 -3
- package/explorer/glyphs.js +130 -0
- package/explorer/house-model.js +2 -2
- package/explorer/index.html +3 -17
- package/explorer/keyboard-model.js +4 -1
- package/explorer/keyboard.js +14 -2
- package/explorer/kind-letters.js +9 -5
- package/explorer/labels.js +33 -34
- package/explorer/layers.js +93 -34
- package/explorer/main.js +3 -2
- package/explorer/map-style.js +13 -71
- package/explorer/panels.js +92 -7
- package/explorer/render.js +2 -2
- package/explorer/renderer-canvas2d.js +169 -26
- package/explorer/renderer-webgl.js +51 -17
- package/explorer/scene.js +67 -48
- package/explorer/selection-model.js +150 -0
- package/explorer/selection-view.js +36 -0
- package/explorer/shaders.js +76 -13
- package/explorer/spatial.js +7 -4
- package/explorer/state.js +4 -0
- package/explorer/tokens.css +13 -0
- package/package.json +1 -1
package/explorer/tokens.css
CHANGED
|
@@ -115,6 +115,13 @@
|
|
|
115
115
|
--corn-space-5: 16px;
|
|
116
116
|
--corn-space-6: 24px;
|
|
117
117
|
|
|
118
|
+
/* Density (issue #200). The one height of a control in a bar (the header, the proposal bar, the decision foot, the player, the Work panel's top row):
|
|
119
|
+
32px at a desk, 44px on a phone (the media query after the light blocks). The padding of a panel's body, which the Work panel and the node panel share,
|
|
120
|
+
and the least height of a panel's head: a control and a step of padding */
|
|
121
|
+
--corn-control-height: 32px;
|
|
122
|
+
--corn-panel-pad: calc(var(--corn-space-5) + var(--corn-space-1));
|
|
123
|
+
--corn-panel-head-height: calc(var(--corn-control-height) + var(--corn-space-3));
|
|
124
|
+
|
|
118
125
|
/* The House view's plan: the house's outline and each room's */
|
|
119
126
|
--corn-house-line: color-mix(in srgb, var(--corn-hue-lime) 18%, transparent);
|
|
120
127
|
--corn-house-room: color-mix(in srgb, var(--corn-hue-lime) 45%, transparent);
|
|
@@ -139,6 +146,7 @@
|
|
|
139
146
|
--corn-map-glow: auto;
|
|
140
147
|
/* The smallest a map label is drawn on screen (spec 0008): auto is 11px; a theme may raise it, not lower it. A hub's title is 2px more */
|
|
141
148
|
--corn-map-label-min: auto;
|
|
149
|
+
--corn-map-glyph: auto;
|
|
142
150
|
/* Diff, selection and focus */
|
|
143
151
|
--corn-map-added: auto;
|
|
144
152
|
--corn-map-changed: auto;
|
|
@@ -301,6 +309,11 @@
|
|
|
301
309
|
color-scheme: light;
|
|
302
310
|
}
|
|
303
311
|
|
|
312
|
+
/* A phone's density: controls are 44px tall (the target), and a panel pads by 16px under 640px. explorer.css floors a phone's control at 44px whatever
|
|
313
|
+
a brand sets (max(44px, …)); a brand that sets --corn-panel-pad on :root sets a phone's too, unless it sets it again under the same query */
|
|
314
|
+
@media (max-width: 767px) { :root { --corn-control-height: 44px; } }
|
|
315
|
+
@media (max-width: 639px) { :root { --corn-panel-pad: var(--corn-space-5); } }
|
|
316
|
+
|
|
304
317
|
/* ==========================================================================
|
|
305
318
|
The old --hx-* names, as aliases of the tokens above, for one release (scene.js, proposal.js and plugin
|
|
306
319
|
CSS still read them). They go in the next minor: write --corn-* in new CSS. proposal.js writes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cornfield",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "popcorn245 (https://github.com/popcorn245)",
|