Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajstarks/svgo
/ functions
Functions
242 in github.com/ajstarks/svgo
⨍
Functions
242
◇
Types & classes
29
↓ 61 callers
Method
Gend
Gend ends a group (must be paired with Gsttyle, Gtransform, Gid).
svg.go:170
↓ 54 callers
Method
Rect
Rect draws a rectangle with upper left-hand corner at x,y, with width w, and height h, with optional style Standard Reference: http://www.w3.org/TR/SV
svg.go:243
↓ 42 callers
Method
Text
Text places the specified text, t at x,y according to the style specified in s Standard Reference: http://www.w3.org/TR/SVG11/text.html#TextElement
svg.go:332
↓ 32 callers
Method
End
End the SVG document
svg.go:89
↓ 32 callers
Method
Start
Structure, Metadata, Scripting, Transformation, and Links Start begins the SVG document with the width w and height h. Other attributes may be optiona
svg.go:75
↓ 29 callers
Method
Gstyle
Gstyle begins a group, with the specified style. Standard Reference: http://www.w3.org/TR/SVG11/struct.html#GElement
svg.go:115
↓ 28 callers
Method
Gid
Gid begins a group, with the specified id
svg.go:163
↓ 28 callers
Function
deflegend
deflegend makes object legends
svgdef/svgdef.go:49
↓ 26 callers
Method
Title
Title specified the text of the title tag. Standard Reference: http://www.w3.org/TR/SVG11/struct.html#TitleElement
svg.go:193
↓ 23 callers
Method
printf
(format string, a ...interface{})
svg.go:66
↓ 18 callers
Method
Circle
Shapes Circle centered at x,y, with radius r, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/shapes.html#CircleElement
svg.go:224
↓ 18 callers
Function
endstyle
endstyle modifies an SVG object, with either a series of name="value" pairs, or a single string containing a style
svg.go:448
↓ 18 callers
Method
println
(a ...interface{})
svg.go:62
↓ 16 callers
Method
Line
Lines Line draws a straight line between two points, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/shapes.html#LineElement
svg.go:313
↓ 14 callers
Method
RGB
Colors RGB specifies a fill color in terms of a (r)ed, (g)reen, (b)lue triple. Standard reference: http://www.w3.org/TR/css3-color/
svg.go:361
↓ 13 callers
Function
defcoordstr
defcoodstr defines coordinate strings: (x,y)
svgdef/svgdef.go:37
↓ 12 callers
Method
Image
Image places at x,y (upper left hand corner), the image with width w, and height h, referenced at link, with optional style. Standard Reference: http:
svg.go:326
↓ 12 callers
Function
defcoord
defcoord defines a coordinate
svgdef/svgdef.go:43
↓ 11 callers
Method
Gtransform
Gtransform begins a group, with the specified transform Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:119
↓ 10 callers
Method
Roundrect
Roundrect draws a rounded rectangle with upper the left-hand corner at x,y, with width w, and height h. The radii for the rounded portion are specifie
svg.go:257
↓ 9 callers
Method
Polygon
Polygon draws a series of line segments using an array of x, y coordinates, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/shapes
svg.go:237
↓ 8 callers
Method
Ellipse
Ellipse centered at x,y, centered at x,y with radii w, and h, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/shapes.html#EllipseE
svg.go:230
↓ 6 callers
Function
coord
coord returns a coordinate string
svg.go:521
↓ 5 callers
Method
RGBA
RGBA specifies a fill color in terms of a (r)ed, (g)reen, (b)lue triple and opacity.
svg.go:366
↓ 4 callers
Method
Arc
Arc draws an elliptical arc, with optional style, beginning coordinate at sx,sy, ending coordinate at ex, ey width and height of the arc are specified
svg.go:280
↓ 4 callers
Method
Link
Link begins a link named "name", with the specified title. Standard Reference: http://www.w3.org/TR/SVG11/linking.html#Links
svg.go:197
↓ 4 callers
Method
LinkEnd
LinkEnd ends a link.
svg.go:204
↓ 4 callers
Method
Qbez
Qbez draws a quadratic bezier curver, with optional style beginning at sx,sy, ending at ex, sy with control points at cx, cy Standard Reference: http:
svg.go:296
↓ 4 callers
Method
Translate
Translate begins coordinate translation, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:123
↓ 4 callers
Function
colx
colx computes the x position of a column
compx/compx.go:660
↓ 4 callers
Method
print
(a ...interface{})
svg.go:58
↓ 4 callers
Function
ptag
ptag returns the beginning of the path element
svg.go:524
↓ 4 callers
Function
rowy
rowy computes the y position of a row
compx/compx.go:657
↓ 4 callers
Function
shapestyle
(path string)
websvg/websvg.go:28
↓ 3 callers
Method
Def
Def begins a defintion block. Standard Reference: http://www.w3.org/TR/SVG11/struct.html#DefsElement
svg.go:182
↓ 3 callers
Method
DefEnd
DefEnd ends a defintion block.
svg.go:185
↓ 3 callers
Method
Desc
Desc specified the text of the description tag. Standard Reference: http://www.w3.org/TR/SVG11/struct.html#DescElement
svg.go:189
↓ 3 callers
Method
Grid
Grid draws a grid at the specified coordinate, dimensions, and spacing, with optional style.
svg.go:404
↓ 3 callers
Method
Path
Paths Path draws an arbitrary path, the caller is responsible for structuring the path data
svg.go:269
↓ 3 callers
Function
dim
dim returns the dimension string (x, y coordinates and width, height)
svg.go:533
↓ 3 callers
Function
gc
gc computes the components coordinates
compx/compx.go:341
↓ 3 callers
Function
href
href returns the href name and attribute
svg.go:530
↓ 3 callers
Function
pct
pct returns a percetage, capped at 100
svg.go:486
↓ 3 callers
Function
rotate
rotate returns the rotate string for the transform
svg.go:515
↓ 3 callers
Function
translate
translate returns the translate string for the transform
svg.go:518
↓ 2 callers
Method
Bezier
Bezier draws a cubic bezier curve, with optional style, beginning at sx,sy, ending at ex,ey with control points at cx,cy and px,py. Standard Reference
svg.go:288
↓ 2 callers
Method
LinearGradient
Gradients LinearGradient constructs a linear color gradient identified by id, along the vector defined by (x1,y1), and (x2,y2). The stop color sequenc
svg.go:375
↓ 2 callers
Method
RadialGradient
RadialGradient constructs a radial color gradient identified by id, centered at (cx,cy), with a radius of r. (fx, fy) define the location of the focal
svg.go:387
↓ 2 callers
Method
Scale
Scale scales the coordinate system by n, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:127
↓ 2 callers
Method
SkewY
SkewY skews the y coordinate system by angle a, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:139
↓ 2 callers
Method
Square
Square draws a square with upper left corner at x,y with sides of length l, with optional style.
svg.go:262
↓ 2 callers
Method
Use
Use places the object referenced at link at the location x, y, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/struct.html#UseElem
svg.go:208
↓ 2 callers
Function
group
group returns a group element
svg.go:500
↓ 2 callers
Function
loc
loc returns the x and y coordinate attributes
svg.go:527
↓ 2 callers
Method
poly
poly compiles the polygon element
svg.go:472
↓ 2 callers
Function
screen
screen object
compx/compx.go:583
↓ 2 callers
Function
skewX
skewx returns the skewX string for the transform
svg.go:509
↓ 2 callers
Function
skewY
skewx returns the skewX string for the transform
svg.go:512
↓ 2 callers
Method
stopcolor
stopcolor is a utility function used by the gradient functions to define a sequence of offsets (expressed as percentages) and colors
svg.go:396
↓ 2 callers
Method
tt
tt creates a xml element, tag containing s
svg.go:465
↓ 1 callers
Method
CenterRect
CenterRect draws a rectangle with its center at x,y, with width w, and height h, with optional style
svg.go:248
↓ 1 callers
Method
ClipEnd
ClipEnd ends a ClipPath
svg.go:176
↓ 1 callers
Method
ClipPath
ClipPath defines a clip path
svg.go:173
↓ 1 callers
Method
Group
Group begins a group with arbitrary attributes
svg.go:160
↓ 1 callers
Method
Polyline
Polylne draws connected lines between coordinates, with optional style. Standard Reference: http://www.w3.org/TR/SVG11/shapes.html#PolylineElement
svg.go:319
↓ 1 callers
Method
Rotate
Rotate rotates the coordinate system by r degrees, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:147
↓ 1 callers
Method
ScaleXY
ScaleXY scales the coordinate system by dx and dy, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:131
↓ 1 callers
Method
Script
Script defines a script with a specified type, (for example "application/javascript"). if the first variadic argument is a link, use only the link ref
svg.go:95
↓ 1 callers
Method
SkewX
SkewX skews the x coordinate system by angle a, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:135
↓ 1 callers
Method
SkewXY
SkewXY skews x and y coordinates by ax, ay respectively, end with Gend() Standard Reference: http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
svg.go:143
↓ 1 callers
Method
Startview
Startview begins the SVG document, with the specified width, height, and viewbox
svg.go:84
↓ 1 callers
Method
Textlines
Textlines places a series of lines of text starting at x,y, at the specified size, fill, and alignment. Each line is spaced according to the spacing a
svg.go:348
↓ 1 callers
Method
Textpath
Textpath places text optionally styled text along a previously defined path Standard Reference: http://www.w3.org/TR/SVG11/text.html#TextPathElement
svg.go:340
↓ 1 callers
Method
TranslateRotate
TranslateRotate translates the coordinate system to (x,y), then rotates to r degrees, end with Gend()
svg.go:150
↓ 1 callers
Function
android
(x, y int, fill string, opacity float64)
android/android.go:21
↓ 1 callers
Function
arrow
arrow constructs line-ending arrows according to connecting points
compx/compx.go:809
↓ 1 callers
Function
background
(v int)
bubtrail/bubtrail.go:30
↓ 1 callers
Function
background
(v int)
flower/flower.go:66
↓ 1 callers
Function
background
(v int)
android/android.go:19
↓ 1 callers
Function
background
(v int)
lewitt/lewitt.go:35
↓ 1 callers
Function
background
(v int)
svgopher/svgopher.go:15
↓ 1 callers
Function
background
(fc string)
compx/compx.go:131
↓ 1 callers
Method
barchart
barchart draws a chart from data read at location, on a SVG canvas if the location is the empty string, read from standard input. Data items are scale
stockproduct/stockproduct.go:51
↓ 1 callers
Function
cloud
cloud object
compx/compx.go:535
↓ 1 callers
Function
codepic
codepic makes a code+picture SVG file, given a go source file and conventionally named output -- given <name>.go, <name>.svg
codepic/codepic.go:62
↓ 1 callers
Function
colordot
colordot makes a colored dot, with opacity
svgdef/svgdef.go:479
↓ 1 callers
Function
compass
compass returns the coordinates of a compass point
compx/compx.go:663
↓ 1 callers
Function
component
component positions and draws a components and its attributes
compx/compx.go:365
↓ 1 callers
Function
connect
connect two components
compx/compx.go:704
↓ 1 callers
Function
cylinder
Object functions
compx/compx.go:506
↓ 1 callers
Function
defarc
defarc defines the arc object for arbitrary placement and size
svgdef/svgdef.go:136
↓ 1 callers
Function
defbez
defbez defines the cublic bezier object for arbitrary placement and size
svgdef/svgdef.go:146
↓ 1 callers
Function
defcircle
defcircle defines the circle object for arbitrary placement and size
svgdef/svgdef.go:54
↓ 1 callers
Function
defcrect
defcrect defines the centered rectangle object for arbitrary placement and size
svgdef/svgdef.go:93
↓ 1 callers
Function
defellipse
defellipse defines the ellipse object for arbitrary placement and size
svgdef/svgdef.go:67
↓ 1 callers
Function
defgrid
defgrid defines the grid object for arbitrary placement and size
svgdef/svgdef.go:263
↓ 1 callers
Function
defimage
defimage defines the image object for arbitrary placement and size
svgdef/svgdef.go:114
↓ 1 callers
Function
deflg
deflg defines the linear gradient object for arbitrary placement and size
svgdef/svgdef.go:229
↓ 1 callers
Function
defline
defline defines the line object for arbitrary placement and size
svgdef/svgdef.go:126
↓ 1 callers
Function
defmeta
defmeta defines the metadata objects
svgdef/svgdef.go:371
next →
1–100 of 242, ranked by callers