@liquidcars/atlas-layout 0.1.15 → 0.1.16

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/spec.js +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liquidcars/atlas-layout",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Declarative layout compiler for LiquidCars Atlas models",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/spec.js CHANGED
@@ -184,7 +184,14 @@ export const ATLAS_LAYOUT_SPEC_V1 = freeze({
184
184
  offset: field("Masonry row offset; defaults to half-cell.", ["half-cell"], { type: "string" })
185
185
  })
186
186
  }),
187
- label: freeze({ label: "Label appearance", properties: freeze({ color: field("Label colour.", null, { valueSource: "palette" }), opacity: field("Label opacity.", null, { type: "number" }) }) }),
187
+ label: freeze({
188
+ label: "Label appearance",
189
+ properties: freeze({
190
+ color: field("Label colour.", null, { valueSource: "palette" }),
191
+ opacity: field("Label opacity.", null, { type: "number" }),
192
+ anchor: field("Label placement relative to the geometry.", ["auto", "top", "bottom", "left", "right"])
193
+ })
194
+ }),
188
195
  edges: freeze({ label: "Edge appearance", properties: freeze({ color: field("Edge colour.", null, { valueSource: "palette" }), opacity: field("Edge opacity.", null, { type: "number" }) }) }),
189
196
  background: freeze({ label: "Background", properties: freeze({ color: field("Background colour.", null, { type: "color" }), glow: field("Background glow colour.", null, { type: "color" }) }) }),
190
197
  lighting: freeze({ label: "Lighting", properties: freeze({ ambient: field("Ambient intensity.", null, { type: "number" }), directional: field("Directional intensity.", null, { type: "number" }) }) }),