MCPcopy Index your code

hub / github.com/tdewolff/canvas / functions

Functions1,447 in github.com/tdewolff/canvas

↓ 2 callersMethodsumBreakGlues
(b int)
text/linebreak.go:337
↓ 2 callersMethodup
from container/heap
path_simplify.go:265
↓ 2 callersFunctionwalkStrings
(pdf *pdfReader, obj any, cb func(int, []textOperator, textState) (int, error))
cmd/pdftext/main.go:354
↓ 2 callersFunctionwindings
windings counts intersections of ray with path. Paths that cross downwards are negative and upwards are positive. It returns the windings excluding th
path.go:861
↓ 2 callersMethodwriteFonts
(fontMap map[*canvas.Font]pdfRef, vertical bool)
renderers/pdf/writer.go:593
↓ 2 callersMethodwritePage
(parent pdfRef)
renderers/pdf/writer.go:891
↓ 2 callersMethodwritePath
(path *canvas.Path)
renderers/htmlcanvas/htmlcanvas.go:46
↓ 2 callersMethodwritePath
(path *canvas.Path)
renderers/tex/tex.go:64
↓ 2 callersFunctionxmonotoneQuadraticBezier
(p0, p1, p2 Point)
path_util.go:705
↓ 1 callersFunctionAVIF
(opts ...interface{})
renderers/renderers_formats.go:41
↓ 1 callersMethodAnd
And returns the boolean path operation of path p AND q, i.e. the intersection of both. It removes all self-intersections and overlapping areas, orient
path_intersection.go:147
↓ 1 callersMethodArc
Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
path_scanner.go:68
↓ 1 callersMethodArc
Arc returns the arguments for arcs (rx,ry,rot,large,sweep).
path_scanner.go:150
↓ 1 callersMethodArea
Area returns the polygon's signed area.
polyline.go:106
↓ 1 callersMethodArea
Area returns the area of the rectangle.
util.go:414
↓ 1 callersFunctionAssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
examples/html-canvas/files.go:235
↓ 1 callersFunctionAssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
examples/html-canvas/files.go:191
↓ 1 callersFunctionBMP
BMP returns a BMP writer and accepts the following options: canvas.Resolution, canvas.Colorspace
renderers/renderers.go:161
↓ 1 callersMethodBounds
()
image/image.go:202
↓ 1 callersMethodClose
()
renderers/rasterizer/rasterizer.go:69
↓ 1 callersMethodCmd
Cmd returns the current path segment command.
path_scanner.go:116
↓ 1 callersMethodCompile
()
renderers/opengl/opengl.go:34
↓ 1 callersMethodCompress
()
cmd/pdftext/types.go:187
↓ 1 callersMethodContent
()
renderers/fyne/fyne.go:23
↓ 1 callersMethodCoordView
CoordView returns the current affine transformation matrix for coordinates.
canvas.go:308
↓ 1 callersMethodCrossingsAt
Crossings returns the number of crossings with the path from the given point outwards, i.e. the number of times a ray from (x,y) towards (∞,y) interse
path.go:922
↓ 1 callersFunctionDPI
DPI (dots-per-inch) for the resolution of rasterization.
canvas.go:28
↓ 1 callersFunctionDVI2Path
DVI2Path parses a DVI file (output from TeX) and returns a path.
latex_dvi.go:44
↓ 1 callersMethodDecompress
()
cmd/pdftext/types.go:38
↓ 1 callersMethodDestroy
Destroy should be called when using HarfBuzz to free the C resources.
font.go:308
↓ 1 callersMethodDimensions
Dimensions returns the dimensions for Gio.
renderers/gio/gio.go:75
↓ 1 callersMethodDirection
Direction returns the direction of the path at the given segment and t in [0.0,1.0] along that path. The direction is a vector of unit length.
path.go:725
↓ 1 callersFunctionEPS
EPS returns a Encapsulated PostScript writer and accepts the following options: canvas/renderers/ps.*Options
renderers/renderers.go:280
↓ 1 callersFunctionEllipticalArc
EllipticalArc returns an elliptical arc with radii rx and ry, with rot the counter clockwise rotation in degrees, and theta0 and theta1 the angles in
shapes.go:24
↓ 1 callersMethodEmpty
Empty returns true if the polyline is empty.
polyline.go:21
↓ 1 callersMethodEndTextObject
EndTextObject ends a text object.
renderers/pdf/writer.go:1183
↓ 1 callersMethodFastClip
FastClip removes all segments that are completely outside the given clipping rectangle. To ensure that the removal doesn't cause a segment to cross th
path_simplify.go:298
↓ 1 callersMethodFill
Fill fills the path, but does not stroke.
renderers/gochart.go:144
↓ 1 callersMethodFillCount
FillCount returns the number of times the test point is enclosed by the polyline. Counter clockwise enclosures are counted positively and clockwise en
polyline.go:77
↓ 1 callersMethodFilling
Filling returns whether each subpath gets filled or not. Whether a path is filled depends on the FillRule and whether it negates another path. If a su
path.go:1025
↓ 1 callersFunctionFontStroke
FontStroke is a font decoration that draws a stroke around the text.
font.go:1226
↓ 1 callersMethodFromUnicode
(string)
cmd/pdftext/encoding.go:110
↓ 1 callersFunctionGIF
GIF returns a GIF writer and accepts the following options: canvas.Resolution, canvas.Colorspace, image/gif.*Options
renderers/renderers.go:115
↓ 1 callersMethodGetFont
(dict pdfDict, name pdfName)
cmd/pdftext/encoding.go:236
↓ 1 callersMethodGetInfo
()
cmd/pdftext/reader.go:391
↓ 1 callersMethodGetPage
(index int)
cmd/pdftext/reader.go:428
↓ 1 callersMethodGrayA32At
(x, y int)
image/image.go:516
↓ 1 callersMethodGrayAAt
(x, y int)
image/image.go:416
↓ 1 callersFunctionGreedyLinebreak
GreedyLinebreak breaks a list of items using a greedy line breaking algorithm. This is much faster than Knuth's algorithm. TODO: instead of width acce
text/linebreak.go:596
↓ 1 callersMethodGridsnap
Gridsnap snaps point to a grid with the given spacing.
util.go:364
↓ 1 callersMethodHasRotation
HasRotation is true if the matrix has a rotation or skewing component.
util.go:828
↓ 1 callersMethodHeights
Heights returns the ascender and descender values of the span object.
text.go:215
↓ 1 callersMethodInsertBefore
InsertBefore inserts break point b before at.
text/linebreak.go:258
↓ 1 callersFunctionIsParagraphSeparator
TODO: implement Liang's (soft) hyphenation algorithm? Add \u00AD at opportunities, unless \u2060 or \uFEFF is present IsParagraphSeparator returns tru
text/text.go:124
↓ 1 callersFunctionJPEG
JPEG returns a JPEG writer and accepts the following options: canvas.Resolution, canvas.Colorspace, image/jpeg.*Options
renderers/renderers.go:92
↓ 1 callersFunctionLabGradient
LabGradient creates a gradient from (t,L,a,b) values with t∈[0,1] the position, L∈[0,1] the lightness, a∈[-1,1], and b∈[-1,1].
palettes.go:138
↓ 1 callersMethodLen
()
cmd/pdftext/writer.go:35
↓ 1 callersMethodLines
Lines returns the number of text lines of the text box.
text.go:1076
↓ 1 callersFunctionLoadFontCollection
LoadFontCollection loads a font from a collection file and uses the font at the specified index.
font.go:263
↓ 1 callersMethodLoadFontCollection
LoadFontCollection loads a font from a collection file and uses the font at the specified index.
font.go:447
↓ 1 callersFunctionLookupScript
(r rune)
text/harfbuzz.go:119
↓ 1 callersMethodMostCommonFontFace
MostCommonFontFace returns the most common FontFace of the text.
text.go:1145
↓ 1 callersMethodMustLoadSystemFont
MustLoadSystemFont loads a font from the system's fonts and panics on error.
font.go:422
↓ 1 callersFunctionNew
New returns an open graphics library (OpenGL) renderer.
renderers/opengl/opengl.go:26
↓ 1 callersFunctionNew
New returns an HTMLCanvas renderer.
renderers/htmlcanvas/htmlcanvas.go:22
↓ 1 callersFunctionNew
New returns a renderer that draws to a rasterized image. The final width and height of the image is the width and height (mm) multiplied by the resolu
renderers/rasterizer/rasterizer.go:39
↓ 1 callersFunctionNewContain
NewContain returns a Gio renderer that fills the constraints either horizontally or vertically, whichever is met first.
renderers/gio/gio.go:38
↓ 1 callersFunctionNewGonumPlot
NewGonumPlot returns a new github.com/gonum/plot/vg renderer.
renderers/gonumplot.go:23
↓ 1 callersFunctionNewJPEGMaskedImage
NewJPEGMaskedImage parses a JPEG image and a separate mask. This allows for a brightness-only JPEG to act as mask.
image/image.go:153
↓ 1 callersFunctionNewLinearGradient
NewLinearGradient returns a new linear gradient pattern.
colors.go:179
↓ 1 callersFunctionNewPDFWriter
(w io.Writer, r *pdfReader)
cmd/pdftext/writer.go:57
↓ 1 callersFunctionNewShaper
NewShaper returns a new text shaper.
text/harfbuzz.go:26
↓ 1 callersFunctionNewShaper
NewShaper returns a new text shaper.
text/harfbuzz_cgo.go:38
↓ 1 callersFunctionNewShaperSFNT
NewShaperSFNT returns a new text shaper using a SFNT structure.
text/harfbuzz.go:41
↓ 1 callersFunctionOKLabGradient
OKLabGradient creates a gradient from (t,L,a,b) values with t∈[0,1] the position, L∈[0,1] the lightness, a∈[-1,1], and b∈[-1,1].
palettes.go:161
↓ 1 callersFunctionPolarPoint
PolarPoint returns a point from polar coordinates, with angle in radians CCW and radius the distance from (0,0).
util.go:237
↓ 1 callersMethodPop
()
path_simplify.go:239
↓ 1 callersMethodPrint
(w io.Writer)
path_intersection.go:504
↓ 1 callersMethodPrint
(w io.Writer)
path_intersection.go:707
↓ 1 callersMethodRGB48At
(x, y int)
image/image.go:303
↓ 1 callersMethodRGBAt
(x, y int)
image/image.go:208
↓ 1 callersFunctionRandomPath
(n int, closed bool)
helpers_test.go:5
↓ 1 callersMethodReflectX
ReflectX adds a horizontal reflection transformation, i.e. Scale(-1,1).
util.go:699
↓ 1 callersMethodReflectX
ReflectX inverts the X axis of the view.
canvas.go:348
↓ 1 callersMethodReflectXAbout
ReflectXAbout adds a horizontal reflection transformation about x.
util.go:704
↓ 1 callersMethodReflectY
ReflectY inverts the Y axis of the view.
canvas.go:358
↓ 1 callersFunctionRegularStarPolygon
RegularStarPolygon returns a regular star polygon with radius r. It uses n vertices of density d. This will result in a self-intersection star in coun
shapes.go:128
↓ 1 callersMethodRemove
Remove removes break point b.
text/linebreak.go:274
↓ 1 callersMethodReset
(capacity int)
path_simplify.go:214
↓ 1 callersFunctionResourcesLennaPngBytes
()
examples/html-canvas/files.go:144
↓ 1 callersFunctionRestoreAsset
RestoreAsset restores an asset under the given directory
examples/html-canvas/files.go:286
↓ 1 callersMethodRotate
Rotate adds a rotation transformation with rot in degree counter clockwise.
util.go:656
↓ 1 callersMethodRotate
Rotate rotates the view counter clockwise with rot in degrees.
canvas.go:368
↓ 1 callersMethodRotation
()
text/text.go:110
↓ 1 callersFunctionSVGZ
SVGZ returns a GZIP compressed SVG writer and accepts the following options: canvas/renderers/svgsvg.*Options
renderers/renderers.go:202
↓ 1 callersMethodSame
Same returns true if p and q are equal shapes within tolerance Epsilon. Path q may start at an offset into path p or may be in the reverse direction.
path.go:212
↓ 1 callersMethodScaleAbout
ScaleAbout adds a scaling transformation about (x,y) in sx and sy. When scale is negative it will flip those axes.
util.go:680
↓ 1 callersMethodSetAuthor
SetAuthor sets the document's author.
renderers/pdf/writer.go:117
↓ 1 callersMethodSetColorSpace
(ColorSpace)
patterns.go:10
↓ 1 callersMethodSetCompression
SetCompression enable the compression of the streams.
renderers/pdf/writer.go:92
← previousnext →601–700 of 1,447, ranked by callers