@selimssevgi/cube-design-angular 0.7.0 → 0.8.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 +15 -0
- package/README.md +15 -2
- package/fesm2022/selimssevgi-cube-design-angular.mjs +1369 -10
- package/fesm2022/selimssevgi-cube-design-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/dark.css +22 -0
- package/tokens/light.css +22 -0
- package/types/selimssevgi-cube-design-angular.d.ts +564 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
nothing yet.
|
|
6
6
|
|
|
7
|
+
## 0.8.0 (7 november 2026: the screen's ground, so every cube app stops copying it)
|
|
8
|
+
|
|
9
|
+
the first library round of the flow (cube-screens `uat/use-cases/flow.md`, selim 7 november 12:59; his yes to the list the same day). what every app copied, and what the every-level model page built because the package lacked it (`prototypes/every-level-4/gaps.md` › the library check), moved in. nothing that was here changes: an app that takes 0.8.0 and sets nothing new sees no change.
|
|
10
|
+
|
|
11
|
+
- **the zoom and its trail** (`CubeZoomService`, `CubeZoomPinch` (`[cubeZoomPinch]`, `(cubeZoomOut)`), `CubeEntrance`, `cubeTrailHolds`, `cubeMovesThePage`, `provideCubeZoom`, `CUBE_ZOOM_OPTIONS`, `CubeZoomOptions`): mosaic's `shared/cube/zoom.ts`, the newest copy (the trail kept on a step out, RC-3; the scroll put back, RC-2, `keepScroll` on by default). new: **"i left this level"**, `left` (`CubeLeft`: `{ from, to, via }`), said by `stepBack(to?)` and `leaveAll` before the navigation, so an app reads a level when the person leaves it.
|
|
12
|
+
- **the head**, `<cube-head>` (`CubeHead`, `CUBE_HEAD_SWIPE`): ‹ and where it goes back to (a drop place for a carry with `backDrop`), the level's cube in its circle (held, `held`; with `turns`, a swipe turns it), its name (an `h1`) and line, one line each on a phone, and what is said once as its content. no words: every one is the app's. from mosaic's two heads, todarch's and the model page's.
|
|
13
|
+
- **the tile**, `<cube-tile>` (`CubeTile`, `CubeTileLook`, `cubeTilePicture`): a piece inside `<cube-square>`, its small cube, name and line, ticked, in four looks (`piece`, `own`, `dashed`, `pale`) and `marked`; the host is the tile, so the app's attributes and gestures go on it. the table and way looks of the physics are not here: they come with the physics.
|
|
14
|
+
- **one tile size on every screen**: `[cell]` on `<cube-square>` and `<cube-context>`, `squareCell`, `squareSideAt`, and `CubeRoom` with `[cubeRoom]` (`CubeRoomMeasure`, `CUBE_ROOM_NARROW`): the screen decides one cell (three across on a phone, four from 640 px) and every square on it, the context cube's too, draws its tiles at that size, whatever its count (selim, 6 november: "a problem also in current prod apps"). `cell` is null by default: the old sizing.
|
|
15
|
+
- **the quiet line**, `CubeQuietLine` (headless: said once on its level, kept across a step in and out, cleared by the app's next move) and `<cube-quiet>` (`CubeQuiet`, `CubeQuietNote`): what the app read, with one tap to undo, in the app's words.
|
|
16
|
+
- both token files set the new variables (`--cube-head-*`, `--cube-tile-*`, `--cube-quiet-*`).
|
|
17
|
+
|
|
18
|
+
## 0.7.1 (7 november 2026: a trackpad pinch that starts still or the other way)
|
|
19
|
+
|
|
20
|
+
- **the first real step decides a wheel stream**, where its first event did. a mac's trackpad often begins a pinch with a still event (`deltaY` 0), which took the stream as begun and so ignored the whole pinch, or with the fingers settling the other way (`deltaY` -1), which read a pinch out as a pinch in (selim, 6 november 2026: "zoom out not working sometimes"; cube-screens' `uat/use-cases/gestures.cjs` plays both streams). now a step under `CUBE_WHEEL_STEP` (2) only moves the stream's end and keeps the page zoom away; the first step of at least 2 decides by its own sign, and a slow pinch of small steps decides once they add up to three times that. the rule alone is the pure `wheelWay(deltaY, sum, least)`. still one step a stream. an app changes nothing; the first release from cube-screens.
|
|
21
|
+
|
|
7
22
|
## 0.7.0 (7 november 2026: the cube's art, offered as options)
|
|
8
23
|
|
|
9
24
|
- **the cube's art** (`CubeArt`, `CUBE_ARTS`, `isArt`, `DrawnArt`, `drawArt`, `ArtShape`, `ArtDrawing`, `ArtOptions`): five ways to draw the same look, stickers (the first one), blocks, glass, ribbons and dots, from mosaic's todarch head (lang-app-fe #231). `<cube-picture [art]>` draws them, `stickers` by default, so an app that sets nothing is unchanged. cube design's decision of 7 november 2026 (`applications/screens/decisions.md`): every art draws the same look, and the person chooses.
|
package/README.md
CHANGED
|
@@ -119,8 +119,9 @@ export class Level {
|
|
|
119
119
|
|
|
120
120
|
- two fingers that end 1.25 times further apart (`CUBE_PINCH_APART`) are `in`, 0.8 times or closer
|
|
121
121
|
(`CUBE_PINCH_TOGETHER`) are `out`, decided when the first lifts.
|
|
122
|
-
- a trackpad's pinch reaches chrome, edge and firefox as a stream of ctrl + wheel events:
|
|
123
|
-
decides (`deltaY` below
|
|
122
|
+
- a trackpad's pinch reaches chrome, edge and firefox as a stream of ctrl + wheel events: its first
|
|
123
|
+
real step decides (`deltaY` -2 or below is `in`, 2 or above `out`; `CUBE_WHEEL_STEP`, `wheelWay`;
|
|
124
|
+
a still start or fingers settling the other way decide nothing, since 0.7.1), and the stream is one pinch until the wheel has been quiet
|
|
124
125
|
250 ms (`CUBE_WHEEL_QUIET_MS`). the stream is kept for the whole page, so the level a pinch steps
|
|
125
126
|
to never takes the rest of it as a second step (two levels out for one pinch on a mac, found in
|
|
126
127
|
mosaic). `startsWheelGesture(lastAt, now)` is the rule alone. safari's gesture events count too.
|
|
@@ -517,6 +518,18 @@ screen as wide as `turnBelow` (640 px) shows the whole square.
|
|
|
517
518
|
tap that ends a turn is swallowed.
|
|
518
519
|
- the edge's colour is `--cube-square-edge`, a focused row's outline `--cube-square-focus`.
|
|
519
520
|
|
|
521
|
+
## the screen's ground (since 0.8.0)
|
|
522
|
+
|
|
523
|
+
what every cube app copied, moved in (the first library round of cube-screens' flow, 7 november 2026). each has its page at https://cube-screens.selimssevgi.com/angular/.
|
|
524
|
+
|
|
525
|
+
- **the zoom and its trail** (`CubeZoomService`, `[cubeZoomPinch]`): back the way i came, the next level grown out of the tile, the scroll kept on a step out, and `left`, "i left this level". page: `cube-zoom`.
|
|
526
|
+
- **the head** (`<cube-head>`): ‹ and where it goes, the level's cube in its circle, its name and line, and what is said once as its content. page: `cube-head`.
|
|
527
|
+
- **the tile** (`<cube-tile>`): a piece inside `<cube-square>`, in four looks. page: `cube-tile`.
|
|
528
|
+
- **one tile size on every screen**: `[cell]` on `<cube-square>` and `<cube-context>`, `CubeRoom` and `[cubeRoom]`. page: `cube-square`.
|
|
529
|
+
- **the quiet line** (`CubeQuietLine`, `<cube-quiet>`): said once, one tap to undo. page: `cube-quiet`.
|
|
530
|
+
|
|
531
|
+
none of them says a word: every word is the app's.
|
|
532
|
+
|
|
520
533
|
## the drawing alone
|
|
521
534
|
|
|
522
535
|
`drawCube(count, colours, width, { hint, whole, rot })` returns the polygons as svg points, and
|