Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdewolff/canvas
/ functions
Functions
1,447 in github.com/tdewolff/canvas
⨍
Functions
1,447
◇
Types & classes
214
Method
Run
()
cmd/pdftext/main.go:117
Method
Sane
Sane returns true if the path is sane, ie. it does not have NaN or infinity values.
path.go:186
Method
ScaleAbout
ScaleAbout scales the view around (x,y).
canvas.go:383
Method
Scan
Scan scans a new path segment and should be called before the other methods.
path_scanner.go:107
Method
Segments
Segments returns the path segments as a slice of segment structures.
path.go:1999
Method
Set
(x, y int, c color.Color)
image/image.go:336
Method
Set
(x, y int, c color.Color)
image/image.go:431
Method
Set
(x, y int, c color.Color)
image/image.go:534
Method
SetClass
SetClass sets the classes to be assigned to drawn objects.
renderers/svg/svg.go:133
Method
SetClassName
SetClassName sets the current class name.
renderers/gochart.go:72
Method
SetColorSpace
(colorSpace ColorSpace)
colors.go:144
Method
SetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
colors.go:190
Method
SetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
colors.go:236
Method
SetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
patterns.go:86
Method
SetCoordRect
SetCoordRect sets the current affine transformation matrix for coordinates. Coordinate transformation are applied before View transformations. It will
canvas.go:318
Method
SetCustomStyle
SetCustomStyle defines a custom CSS code to add in the SVG
renderers/svg/svg.go:166
Method
SetDPI
SetDPI sets the DPI for the renderer.
renderers/gochart.go:67
Method
SetFaceSpan
SetFaceSpan sets the font face between start and end measured in bytes.
text.go:505
Method
SetFeatures
SetFeatures sets the font features (not yet supported).
font.go:392
Method
SetFillPattern
SetFillPattern sets the pattern to be used for filling operations. The default fill color is black.
canvas.go:423
Method
SetFillRule
SetFillRule sets the fill rule to be used for filling paths. The default fill rule is NonZero. Note that support is limited.
canvas.go:479
Method
SetFilters
(filters []pdfName)
cmd/pdftext/types.go:34
Method
SetFontColor
SetFontColor sets a font's color.
renderers/gochart.go:177
Method
SetFontSize
SetFontSize sets the font size for a text field.
renderers/gochart.go:182
Method
SetGrayA
(x, y int, c ccolor.GrayA)
image/image.go:442
Method
SetGrayA32
(x, y int, c ccolor.GrayA32)
image/image.go:547
Method
SetImageEncoding
SetImageEncoding sets the image encoding to Loss or Lossless.
renderers/pdf/pdf.go:51
Method
SetImageEncoding
SetImageEncoding sets the image encoding to Loss or Lossless.
renderers/svg/svg.go:161
Method
SetLang
SetLang sets the document's language. It must adhere the RFC 3066 specification on Language-Tag, eg. es-CL.
renderers/pdf/pdf.go:65
Method
SetLang
SetLang sets the document's language.
renderers/pdf/writer.go:127
Method
SetLineDash
SetLineDash sets the dash pattern for lines. The pattern slice specifies the lengths of alternating dashes and gaps, and the offset specifies the dist
renderers/gonumplot.go:53
Method
SetLineWidth
SetLineWidth sets the width of stroked paths. If the width is not positive then stroked lines are not drawn. The initial line width is 1 point.
renderers/gonumplot.go:42
Method
SetOp
SetOp sets the drawing operation. Either draw.Src or draw.Over.
renderers/rasterizer/rasterizer.go:77
Method
SetRGB
(x, y int, c ccolor.RGB)
image/image.go:243
Method
SetRGB48
(x, y int, c ccolor.RGB48)
image/image.go:351
Method
SetStrokeDashArray
SetStrokeDashArray sets the stroke dash array.
renderers/gochart.go:92
Method
SetStrokeGradient
SetStrokeGradient sets the gradients to be used for stroking operations. The default stroke color is transparent.
canvas.go:448
Method
SetStrokePattern
SetStrokePattern sets the pattern to be used for stroking operations. The default stroke color is transparent.
canvas.go:453
Method
SetTextCharSpace
SetTextCharSpace sets the text character spacing.
renderers/pdf/writer.go:1162
Method
SetTextRotation
SetTextRotation sets a rotation for drawing elements.
renderers/gochart.go:211
Method
SetVariations
SetVariations sets the font variations (not yet supported).
font.go:385
Method
SetZIndex
SetZIndex sets the z-index. This will call the renderer's `SetZIndex` function only if it exists (in this case only for `Canvas`).
canvas.go:489
Method
Settle
Settle is the same as Path.Settle, but faster if paths are already split. Each resulting path is a single filling path followed by its holes as subpat
path_intersection.go:136
Method
Shape
Shape shapes the string for a given direction, script, and language.
text/harfbuzz_cgo.go:66
Method
Shear
Shear shear stretches the view.
canvas.go:388
Method
ShearAbout
ShearAbout shear stretches the view around (x,y).
canvas.go:393
Method
Size
Size returns the width and height of a text box. Either can be zero when unspecified.
text.go:1081
Method
Size
Size returns the width and height of the canvas in millimeters.
canvas.go:271
Method
Size
Size returns the size of the canvas in millimeters.
canvas.go:740
Method
Size
Size returns the width and height of the canvas.
renderers/gonumplot.go:32
Method
Size
Size returns the size of the canvas in millimeters.
renderers/pdf/pdf.go:99
Method
Size
Size returns the size of the canvas in millimeters.
renderers/ps/ps.go:164
Method
Size
Size returns the size of the canvas in millimeters.
renderers/htmlcanvas/htmlcanvas.go:42
Method
Size
Size returns the size of the canvas in millimeters.
renderers/gio/gio.go:80
Method
Size
Size returns the size of the canvas in millimeters.
renderers/rasterizer/rasterizer.go:82
Method
Size
Size returns the size of the canvas in millimeters.
renderers/tex/tex.go:45
Method
Size
Size returns the size of the canvas in millimeters.
renderers/svg/svg.go:171
Method
Size
Size return file size
examples/html-canvas/files.go:58
Function
SolveCubicFormula
(a, b, c, d float64)
util.go:1003
Function
SolveQuadraticFormula
(a, b, c float64)
util.go:955
Method
String
()
path_intersection.go:338
Method
String
()
path_intersection.go:522
Method
String
()
path_intersection.go:794
Method
String
()
path_intersection.go:2432
Method
String
()
path_simplify.go:56
Method
String
()
path.go:50
Method
String
()
text.go:33
Method
String
()
text.go:64
Method
String
()
text.go:88
Method
String
()
text.go:109
Method
String
()
text.go:622
Method
String
()
text.go:637
Method
String
()
svg.go:1244
Method
String
()
svg.go:1277
Method
String
()
svg.go:1334
Method
String
()
svg.go:1349
Method
String
()
font.go:89
Method
String
()
font.go:130
Method
String
()
font.go:661
Method
String
()
font.go:843
Method
String
()
font.go:918
Method
String
()
font.go:958
Method
String
()
font.go:1008
Method
String
()
font.go:1053
Method
String
()
font.go:1110
Method
String
()
font.go:1166
Method
String
()
font.go:1221
Method
String
()
font.go:1261
Method
String
()
util.go:134
Method
String
()
util.go:161
Method
String
()
util.go:175
Method
String
()
path_intersection_util.go:109
Method
String
()
path_stroke.go:33
Method
String
()
path_stroke.go:49
Method
String
()
path_stroke.go:70
Method
String
()
path_stroke.go:95
Method
String
()
path_stroke.go:119
Method
String
()
path_stroke.go:185
Method
String
()
path_stroke.go:383
Method
String
()
cmd/pdftext/types.go:231
← previous
next →
1,101–1,200 of 1,447, ranked by callers