MCPcopy Create free account

hub / github.com/tdewolff/canvas / functions

Functions1,447 in github.com/tdewolff/canvas

MethodRun
()
cmd/pdftext/main.go:117
MethodSane
Sane returns true if the path is sane, ie. it does not have NaN or infinity values.
path.go:186
MethodScaleAbout
ScaleAbout scales the view around (x,y).
canvas.go:383
MethodScan
Scan scans a new path segment and should be called before the other methods.
path_scanner.go:107
MethodSegments
Segments returns the path segments as a slice of segment structures.
path.go:1999
MethodSet
(x, y int, c color.Color)
image/image.go:336
MethodSet
(x, y int, c color.Color)
image/image.go:431
MethodSet
(x, y int, c color.Color)
image/image.go:534
MethodSetClass
SetClass sets the classes to be assigned to drawn objects.
renderers/svg/svg.go:133
MethodSetClassName
SetClassName sets the current class name.
renderers/gochart.go:72
MethodSetColorSpace
(colorSpace ColorSpace)
colors.go:144
MethodSetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
colors.go:190
MethodSetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
colors.go:236
MethodSetColorSpace
SetColorSpace sets the color space. Automatically called by the rasterizer.
patterns.go:86
MethodSetCoordRect
SetCoordRect sets the current affine transformation matrix for coordinates. Coordinate transformation are applied before View transformations. It will
canvas.go:318
MethodSetCustomStyle
SetCustomStyle defines a custom CSS code to add in the SVG
renderers/svg/svg.go:166
MethodSetDPI
SetDPI sets the DPI for the renderer.
renderers/gochart.go:67
MethodSetFaceSpan
SetFaceSpan sets the font face between start and end measured in bytes.
text.go:505
MethodSetFeatures
SetFeatures sets the font features (not yet supported).
font.go:392
MethodSetFillPattern
SetFillPattern sets the pattern to be used for filling operations. The default fill color is black.
canvas.go:423
MethodSetFillRule
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
MethodSetFilters
(filters []pdfName)
cmd/pdftext/types.go:34
MethodSetFontColor
SetFontColor sets a font's color.
renderers/gochart.go:177
MethodSetFontSize
SetFontSize sets the font size for a text field.
renderers/gochart.go:182
MethodSetGrayA
(x, y int, c ccolor.GrayA)
image/image.go:442
MethodSetGrayA32
(x, y int, c ccolor.GrayA32)
image/image.go:547
MethodSetImageEncoding
SetImageEncoding sets the image encoding to Loss or Lossless.
renderers/pdf/pdf.go:51
MethodSetImageEncoding
SetImageEncoding sets the image encoding to Loss or Lossless.
renderers/svg/svg.go:161
MethodSetLang
SetLang sets the document's language. It must adhere the RFC 3066 specification on Language-Tag, eg. es-CL.
renderers/pdf/pdf.go:65
MethodSetLang
SetLang sets the document's language.
renderers/pdf/writer.go:127
MethodSetLineDash
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
MethodSetLineWidth
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
MethodSetOp
SetOp sets the drawing operation. Either draw.Src or draw.Over.
renderers/rasterizer/rasterizer.go:77
MethodSetRGB
(x, y int, c ccolor.RGB)
image/image.go:243
MethodSetRGB48
(x, y int, c ccolor.RGB48)
image/image.go:351
MethodSetStrokeDashArray
SetStrokeDashArray sets the stroke dash array.
renderers/gochart.go:92
MethodSetStrokeGradient
SetStrokeGradient sets the gradients to be used for stroking operations. The default stroke color is transparent.
canvas.go:448
MethodSetStrokePattern
SetStrokePattern sets the pattern to be used for stroking operations. The default stroke color is transparent.
canvas.go:453
MethodSetTextCharSpace
SetTextCharSpace sets the text character spacing.
renderers/pdf/writer.go:1162
MethodSetTextRotation
SetTextRotation sets a rotation for drawing elements.
renderers/gochart.go:211
MethodSetVariations
SetVariations sets the font variations (not yet supported).
font.go:385
MethodSetZIndex
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
MethodSettle
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
MethodShape
Shape shapes the string for a given direction, script, and language.
text/harfbuzz_cgo.go:66
MethodShear
Shear shear stretches the view.
canvas.go:388
MethodShearAbout
ShearAbout shear stretches the view around (x,y).
canvas.go:393
MethodSize
Size returns the width and height of a text box. Either can be zero when unspecified.
text.go:1081
MethodSize
Size returns the width and height of the canvas in millimeters.
canvas.go:271
MethodSize
Size returns the size of the canvas in millimeters.
canvas.go:740
MethodSize
Size returns the width and height of the canvas.
renderers/gonumplot.go:32
MethodSize
Size returns the size of the canvas in millimeters.
renderers/pdf/pdf.go:99
MethodSize
Size returns the size of the canvas in millimeters.
renderers/ps/ps.go:164
MethodSize
Size returns the size of the canvas in millimeters.
renderers/htmlcanvas/htmlcanvas.go:42
MethodSize
Size returns the size of the canvas in millimeters.
renderers/gio/gio.go:80
MethodSize
Size returns the size of the canvas in millimeters.
renderers/rasterizer/rasterizer.go:82
MethodSize
Size returns the size of the canvas in millimeters.
renderers/tex/tex.go:45
MethodSize
Size returns the size of the canvas in millimeters.
renderers/svg/svg.go:171
MethodSize
Size return file size
examples/html-canvas/files.go:58
FunctionSolveCubicFormula
(a, b, c, d float64)
util.go:1003
FunctionSolveQuadraticFormula
(a, b, c float64)
util.go:955
MethodString
()
path_intersection.go:338
MethodString
()
path_intersection.go:522
MethodString
()
path_intersection.go:794
MethodString
()
path_intersection.go:2432
MethodString
()
path_simplify.go:56
MethodString
()
path.go:50
MethodString
()
text.go:33
MethodString
()
text.go:64
MethodString
()
text.go:88
MethodString
()
text.go:109
MethodString
()
text.go:622
MethodString
()
text.go:637
MethodString
()
svg.go:1244
MethodString
()
svg.go:1277
MethodString
()
svg.go:1334
MethodString
()
svg.go:1349
MethodString
()
font.go:89
MethodString
()
font.go:130
MethodString
()
font.go:661
MethodString
()
font.go:843
MethodString
()
font.go:918
MethodString
()
font.go:958
MethodString
()
font.go:1008
MethodString
()
font.go:1053
MethodString
()
font.go:1110
MethodString
()
font.go:1166
MethodString
()
font.go:1221
MethodString
()
font.go:1261
MethodString
()
util.go:134
MethodString
()
util.go:161
MethodString
()
util.go:175
MethodString
()
path_intersection_util.go:109
MethodString
()
path_stroke.go:33
MethodString
()
path_stroke.go:49
MethodString
()
path_stroke.go:70
MethodString
()
path_stroke.go:95
MethodString
()
path_stroke.go:119
MethodString
()
path_stroke.go:185
MethodString
()
path_stroke.go:383
MethodString
()
cmd/pdftext/types.go:231
← previousnext →1,101–1,200 of 1,447, ranked by callers