shape

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Rect Rectangular area defined by coordinates. Requires coords with left, top, right, bottom
	// values to define the clickable rectangular region.
	Rect = Shape("rect")

	// Circle Circular area defined by center point and radius. Requires coords with center x, y
	// coordinates and radius value to define the clickable circular region.
	Circle = Shape("circle")

	// Poly Polygonal area defined by multiple coordinate points. Requires coords with pairs of
	// x,y coordinates defining the vertices of the clickable polygon.
	Poly = Shape("poly")

	// Default Default area covering entire image not covered by other areas. Acts as fallback
	// for any part of the image not defined by other shape areas.
	Default = Shape("default")
)

Variables for Shape values

Functions

This section is empty.

Types

type Shape

type Shape []byte

Shape Geometric shape for image map areas. Defines clickable regions within images for interactive navigation and hotspot functionality in image maps.

func Custom

func Custom(value string) Shape

Custom allows setting a custom Shape value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL