Documentation
¶
Overview ¶
Package shape defines the Shape type and its predefined values.
Geometric shape for image map areas. Defines clickable regions within images for interactive navigation and hotspot functionality in image maps.
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 ¶
Click to show internal directories.
Click to hide internal directories.