GCBGutenberg
Control Blocks
Buy

Field type

point

Where something sits on the image round it — a hotspot pin, a label on a photo. Stores {x, y} in 0..1, like an image focal point, and is dragged on the picture in the sidebar. The rendering block prints it as left:X%;top:Y% on an absolutely positioned element.

Type: point · Stored attribute type: object

Stored value

object — { x, y } in 0..1

Supports

  • Drag-to-place picker over the nearest image field (the block's own, or an ancestor block's)
  • A plain grey canvas when no image is near, so the point can still be set

Config options

OptionTypeDefaultDescription
defaultobject{ x: 0.5, y: 0.5 }Where a new pin starts.

Gotchas

  • The value is a fraction of the image's box, not pixels — it keeps its place at every size.
  • The element it positions must be position:absolute inside the image's box; the control does not add that.

Example

JSON
{ "id": "ctrl_pin",
  "type": "point",
  "label": "Pin position",
  "attributeKey": "pin_position",
  "default": { "x": 0.5, "y": 0.5 } }

Every field also takes the keys common to all fields.

Built from GCB Lite 0.4.0 (ce232d4). Source: schemas/controls/point.md.

Copyright © 2026 Runchain. WordPress is a trademark of the WordPress Foundation.