@ai-matrx/canvas 0.7.2 → 0.7.3
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 +10 -0
- package/README.md +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +5 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +5 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.3
|
|
4
|
+
|
|
5
|
+
Census on 0.7.2 (40 web routes, 1440px window, chat open, canvas 360/640/900): with a 900px canvas the page beside it was 56px and route headers were 29-67px wide.
|
|
6
|
+
|
|
7
|
+
- **The canvas shrinks first, to a usable page.** `CANVAS_WEB_LAYOUT_RULES.centreMinWidth` 420 -> 600: a remembered or dragged width gives way (down to `minWidth`) so the content beside the canvas keeps 600px.
|
|
8
|
+
|
|
9
|
+
### Consumer action
|
|
10
|
+
|
|
11
|
+
- A host whose canvas shares the window with a sidebar or a docked panel passes `regionWidth` (the width right of the page's left edge) to `CanvasProvider`; without it the 600px is measured against the whole window and the page beside the canvas can still be crushed.
|
|
12
|
+
|
|
3
13
|
## 0.7.2
|
|
4
14
|
|
|
5
15
|
Measured live on 0.7.1 (phone 375px; a 363px canvas after a reload):
|
package/README.md
CHANGED
|
@@ -149,7 +149,7 @@ toggleKind(controller, { kind: "terminal" }); // absent → open · behind → f
|
|
|
149
149
|
|---|---|---|
|
|
150
150
|
| `defaultWidth` | 640 | `{ fraction: 0.36 }` |
|
|
151
151
|
| `minWidth` | 360 | 360 |
|
|
152
|
-
| `centreMinWidth` (the canvas shrinks first) |
|
|
152
|
+
| `centreMinWidth` (the canvas shrinks first) | 600 | 520 |
|
|
153
153
|
| `stackSplit` (split down: first pane's share) | 0.5 | 0.7 |
|
|
154
154
|
| `sideSplit` | 0.5 | 0.5 |
|
|
155
155
|
| `paneMinWidth` (narrower side-by-side panes stack) | 0 (never) | 360 |
|
package/dist/index.cjs
CHANGED
|
@@ -1119,7 +1119,11 @@ var CANVAS_PANE_MIN_WIDTH = 280;
|
|
|
1119
1119
|
var CANVAS_WEB_LAYOUT_RULES = {
|
|
1120
1120
|
defaultWidth: CANVAS_DEFAULT_WIDTH,
|
|
1121
1121
|
minWidth: CANVAS_MIN_WIDTH,
|
|
1122
|
-
|
|
1122
|
+
// The page beside the canvas keeps room for its route header (title, mode switch,
|
|
1123
|
+
// the shell's own controls): a 2026-10-03 census of 40 routes found headers 29-67px
|
|
1124
|
+
// wide at 420 with a 900px canvas. Hosts pass `regionWidth` so this is the PAGE's
|
|
1125
|
+
// width, not the window's.
|
|
1126
|
+
centreMinWidth: 600,
|
|
1123
1127
|
// Split down 70/30 like the desktop: what opens below (notifications, a feed) is the smaller pane.
|
|
1124
1128
|
stackSplit: 0.7,
|
|
1125
1129
|
sideSplit: 0.5,
|