@selimssevgi/cube-design-angular 0.6.0 → 0.6.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@selimssevgi/cube-design-angular",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "cube design in angular: the pieces anlat, mosaic and cubes share, starting with the isometric cube picture.",
5
5
  "keywords": [
6
6
  "angular",
@@ -943,9 +943,27 @@ export declare function squareGap(n: number): number;
943
943
  /** the room a square may take: the width it is given, and the window's height for the square. */
944
944
  export interface SquareRoom {
945
945
  width: number;
946
- /** the window's height less a head (48 px); only the square view is held to it, so it is seen whole. */
946
+ /**
947
+ * the window's height below where the square starts (`squareTall`: the app's top bar and head
948
+ * counted), never less than 320 px; only the square view is held to it, so it is seen whole.
949
+ */
947
950
  tall: number;
948
951
  }
952
+ /** what a square leaves below itself in the window, in px (a page's own margin). */
953
+ export declare const SQUARE_ROOM_BELOW = 16;
954
+ /** the least height a square is held to, however far down the window it starts, in px. */
955
+ export declare const SQUARE_LEAST_TALL = 320;
956
+ /**
957
+ * how tall a square may be to be seen whole: the window's height less what stands above the square
958
+ * on the page (`top`, from the page's start: the app's top bar, the head, anything before it) and a
959
+ * small margin below, never less than 320 px. before 0.6.1 a fixed 48 px stood for everything above,
960
+ * so on a short desktop window an empty 5 × 5 ran below the screen (found on mosaic's home grouped my
961
+ * way, 4 november 2026).
962
+ */
963
+ export declare function squareTall(windowHeight: number, top: number, opts?: {
964
+ below?: number;
965
+ least?: number;
966
+ }): number;
949
967
  /** one square laid out: its columns and rows, its size, and how much each tile says. */
950
968
  export interface SquareLayout {
951
969
  cols: number;
@@ -1049,6 +1067,12 @@ export declare class CubeSquare<T> {
1049
1067
  readonly view: import("@angular/core").InputSignal<ViewKey>;
1050
1068
  /** the largest side the square takes on a wide screen, in px. */
1051
1069
  readonly maxSide: import("@angular/core").InputSignal<number>;
1070
+ /**
1071
+ * where a square narrower than its place stands (0.6.2): `'center'` (the default) in the middle,
1072
+ * its spare width shared on both sides, `'start'` at the start, as before 0.6.2. a square is
1073
+ * narrower than its place when it is held to the window's height (seen whole) or to `maxSide`.
1074
+ */
1075
+ readonly align: import("@angular/core").InputSignal<"center" | "start">;
1052
1076
  /** a row's height in one across, in px. */
1053
1077
  readonly listRow: import("@angular/core").InputSignal<number>;
1054
1078
  /** open places dashed, where something could come (a cube of mine, a level with a plus). */
@@ -1142,6 +1166,11 @@ export declare class CubeSquare<T> {
1142
1166
  "required": false;
1143
1167
  "isSignal": true;
1144
1168
  };
1169
+ "align": {
1170
+ "alias": "align";
1171
+ "required": false;
1172
+ "isSignal": true;
1173
+ };
1145
1174
  "listRow": {
1146
1175
  "alias": "listRow";
1147
1176
  "required": false;