@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/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/image-overlay-layers.ts +10 -0
package/package.json
CHANGED
|
@@ -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
|
|