@nodaro/shared 3.6.0 → 3.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodaro/shared",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Shared types, model catalog, wire contracts, and structural vocabularies for the Nodaro platform and SDK.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -16,6 +16,16 @@
16
16
  */
17
17
  import { z } from "zod"
18
18
 
19
+ /** The nine points a layer attaches to on the base image. THE definition —
20
+ * the route's Zod, the compositor, the canvas, the SDK and the CLI all read
21
+ * this one (it used to be spelled out separately in each). */
22
+ export const OVERLAY_ANCHORS = [
23
+ "top-left", "top", "top-right",
24
+ "left", "center", "right",
25
+ "bottom-left", "bottom", "bottom-right",
26
+ ] as const
27
+ export type OverlayAnchor = (typeof OVERLAY_ANCHORS)[number]
28
+
19
29
  export const OVERLAY_LAYER_KINDS = ["image", "text", "qr", "shape"] as const
20
30
  export type OverlayLayerKind = (typeof OVERLAY_LAYER_KINDS)[number]
21
31