MCPcopy Index your code

hub / github.com/tdewolff/canvas / functions

Functions1,447 in github.com/tdewolff/canvas

↓ 1 callersMethodSetCoordSystem
SetCoordSystem sets the Cartesian coordinate system.
canvas.go:303
↓ 1 callersMethodSetCreator
SetCreator sets the document's creator.
renderers/pdf/writer.go:122
↓ 1 callersMethodSetFeatures
SetFeatures sets the font features (not yet supported).
font.go:329
↓ 1 callersMethodSetFillGradient
SetFillGradient sets the gradient to be used for filling operations. The default fill color is black.
canvas.go:418
↓ 1 callersMethodSetFont
SetFont sets a font for a text field.
renderers/gochart.go:159
↓ 1 callersMethodSetFont
SetFont sets the font.
renderers/pdf/writer.go:1104
↓ 1 callersMethodSetFontSubsetting
SeFontSubsetting enables the subsetting of embedded fonts.
renderers/pdf/writer.go:97
↓ 1 callersMethodSetInfo
SetInfo sets the document's title, subject, keywords, author and creator.
renderers/pdf/pdf.go:56
↓ 1 callersMethodSetKeywords
SetKeywords sets the document's keywords.
renderers/pdf/writer.go:112
↓ 1 callersMethodSetObject
(ref pdfRef, val any)
cmd/pdftext/writer.go:87
↓ 1 callersMethodSetObjectData
(ref pdfRef, data []byte)
cmd/pdftext/writer.go:83
↓ 1 callersMethodSetSubject
SetSubject sets the document's subject.
renderers/pdf/writer.go:107
↓ 1 callersMethodSetTextOrientation
SetTextOrientation sets the text orientation of non-CJK between CJK.
text.go:486
↓ 1 callersMethodSetTitle
SetTitle sets the document's title.
renderers/pdf/writer.go:102
↓ 1 callersMethodSetVariations
SetVariations sets the font variations (not yet supported).
font.go:323
↓ 1 callersMethodSetWritingMode
SetWritingMode sets the writing mode.
text.go:481
↓ 1 callersMethodShearAbout
ShearAbout adds a shear transformation about (x,y) with sx the horizontal shear and sy the vertical shear.
util.go:694
↓ 1 callersMethodSimplifyVisvalingamWhyatt
(tolerance float64)
path_simplify.go:45
↓ 1 callersMethodSlope
Slope returns the slope between OP, i.e. y/x.
util.go:322
↓ 1 callersFunctionSquareCell
SquareCell is a square cell with sides of length a used for tiling.
path_tiling.go:18
↓ 1 callersMethodStartTextObject
StartTextObject starts a text object.
renderers/pdf/writer.go:1173
↓ 1 callersMethodString
()
font.go:881
↓ 1 callersMethodString
String returns the string representation of a point, such as "(x,y)".
util.go:369
↓ 1 callersMethodString
String returns a string representation of r such as "(xmin,ymin)-(xmax,ymax)".
util.go:611
↓ 1 callersMethodString
String returns a string representation of the affine transformation matrix as six values, where [a b c; d e f; g h i] will be written as "a b d e c f"
util.go:855
↓ 1 callersMethodString
()
cmd/pdftext/types.go:25
↓ 1 callersMethodString
()
text/text.go:106
↓ 1 callersMethodSubImage
SubImage returns an image representing the portion of the image p visible through r. The returned value shares pixels with the original image.
image/image.go:254
↓ 1 callersFunctionTIFF
TIFF returns a TIFF writer and accepts the following options: canvas.Resolution, canvas.Colorspace, golang.org/x/image/tiff.*Options
renderers/renderers.go:138
↓ 1 callersFunctionTeX
TeX returns a TeX writer.
renderers/renderers.go:245
↓ 1 callersMethodTile
Tile tiles the hatch pattern within the clipping path.
patterns.go:100
↓ 1 callersFunctionTileRectangle
TileRectangle tiles the given cell (determines the axes along which cells are repeated) onto the rectangle dst (bounds of clipping path), where cells
path_tiling.go:38
↓ 1 callersMethodToRadial
(c0 Point, r0 float64, c1 Point, r1 float64)
colors.go:138
↓ 1 callersMethodTransform
Transform transforms the canvas.
canvas.go:785
↓ 1 callersMethodView
View returns the object's view to be placed within the text line.:
text.go:231
↓ 1 callersFunctionWebP
(opts ...interface{})
renderers/renderers_formats.go:15
↓ 1 callersMethodWriteText
WriteText writes text using a writing mode and a list of strings and inter-character distance modifiers (ints or float64s).
renderers/pdf/writer.go:1192
↓ 1 callersMethodXMonotone
XMonotone replaces all Bézier and arc segments to be x-monotone and returns a new path, that is each path segment is either increasing or decreasing w
path.go:1467
↓ 1 callersMethodaddKids
(pages pdfDict)
cmd/pdftext/reader.go:286
↓ 1 callersFunctionarcToQuad
(start Point, rx, ry, phi float64, large, sweep bool, end Point)
path_util.go:164
↓ 1 callersMethodauthenticateOwner
(password []byte)
cmd/pdftext/encrypt.go:168
↓ 1 callersFunctionbisectionMethod
func lookupMin(f func(float64) float64, xmin, xmax float64) float64 { const MaxIterations = 1000 min := math.Inf(1) for i := 0; i <= MaxIterations;
util.go:1158
↓ 1 callersMethodbreakupCrossingSegments
(n int, x float64)
path_intersection.go:1493
↓ 1 callersFunctioncairoTiling
(ctx *canvas.Context, clip *canvas.Path)
resources/docs/tiling/main.go:123
↓ 1 callersMethodcheckDash
(offset float64, d []float64)
path.go:1836
↓ 1 callersFunctioncolorLerp
(c0, c1 color.RGBA, t float64)
colors.go:154
↓ 1 callersMethodcomputeAdjustmentRatio
(b int, active *Breakpoint)
text/linebreak.go:312
↓ 1 callersFunctioncorrectIntersection
(z, aMin, aMax, bMin, bMax Point)
path_intersection_util.go:162
↓ 1 callersFunctioncubicBezierDeriv3
(p0, p1, p2, p3 Point, t float64)
path_util.go:573
↓ 1 callersFunctiondraw
(c *canvas.Context)
resources/title/main.go:24
↓ 1 callersFunctiondraw
(c *canvas.Context)
resources/docs/paths/main.go:59
↓ 1 callersFunctiondraw
(c *canvas.Context)
resources/docs/stroke/main.go:49
↓ 1 callersFunctiondraw
(c *canvas.Context)
examples/amsterdam-centre/main.go:50
↓ 1 callersFunctiondraw
(c *canvas.Context)
examples/co2-mauna-loa/main.go:32
↓ 1 callersFunctiondrawDocument
(c *canvas.Context)
examples/text-document/main.go:75
↓ 1 callersFunctionellipseToCubicBeziers
func ellipseToCubicBezierError(a, b, n1, n2 float64) float64 { if a < b { a, b = b, a } ba := b / a c0, c1 := 0.0, 0.0 if ba < 0.25 { c0 += (
path_util.go:287
↓ 1 callersFunctionellipseToQuadraticBeziers
func ellipseToQuadraticBezierError(a, b, n1, n2 float64) float64 { if a < b { a, b = b, a } ba := b / a c0, c1 := 0.0, 0.0 if ba < 0.25 { c0
path_util.go:211
↓ 1 callersMethodembedImage
(img image.Image, enc cimage.ImageEncoding)
renderers/pdf/writer.go:1363
↓ 1 callersMethodencodableImage
return a WriterTo, a refMask and a mimetype
renderers/svg/svg.go:473
↓ 1 callersMethodfind
(item *SweepPoint)
path_intersection.go:734
↓ 1 callersMethodfind
(x, y float64)
path_intersection.go:1385
↓ 1 callersFunctionfloat64sEqual
(a, b []float64)
renderers/pdf/util.go:17
↓ 1 callersFunctionfloat64sEqual
(a, b []float64)
renderers/ps/util.go:5
↓ 1 callersFunctionfloat64sEqual
(a, b []float64)
renderers/tex/util.go:12
↓ 1 callersFunctionfloretTiling
(ctx *canvas.Context, clip *canvas.Path)
resources/docs/tiling/main.go:50
↓ 1 callersFunctionfromI26_6
(f fixed.Int26_6)
util.go:222
↓ 1 callersFunctionfromP26_6
(f fixed.Point26_6)
util.go:214
↓ 1 callersFunctiongaussLegendre3
Gauss-Legendre quadrature integration from a to b with n=3, see https://pomax.github.io/bezierinfo/legendre-gauss.html for more values
util.go:1095
↓ 1 callersMethodgetFont
(font *canvas.Font, vertical bool)
renderers/pdf/writer.go:333
↓ 1 callersMethodgetFontFace
()
svg.go:1030
↓ 1 callersMethodgetFontProgram
(fontDescriptor pdfDict)
cmd/pdftext/encoding.go:499
↓ 1 callersMethodgetOpacityGS
(a float64)
renderers/pdf/writer.go:1543
↓ 1 callersFunctionhelperParseLaTeX
(s string)
latex_bin_test.go:32
↓ 1 callersFunctionintersectionLineCircle
https://www.geometrictools.com/GTE/Mathematics/IntrLine2Circle2.h
path_intersection_util.go:533
↓ 1 callersFunctionintersectionSegment
see https://github.com/signavio/svg-intersections see https://github.com/w8r/bezier-intersect see https://cs.nyu.edu/exact/doc/subdiv1.pdf intersect f
path_intersection_util.go:14
↓ 1 callersFunctionitemizeString
(log string)
text.go:238
↓ 1 callersFunctionjsAwait
(v js.Value)
renderers/htmlcanvas/htmlcanvas.go:198
↓ 1 callersFunctionlab2rgb
(L, a, b float64)
palettes.go:44
↓ 1 callersMethodmergeOverlapping
(op pathOp, fillRule FillRule)
path_intersection.go:1735
↓ 1 callersFunctionnewFonts
()
latex.go:110
↓ 1 callersFunctionnewLineReader
(b []byte, offset int)
cmd/pdftext/util.go:91
↓ 1 callersFunctionnewLineReaderReverse
(b []byte, offset int)
cmd/pdftext/util.go:124
↓ 1 callersFunctionnewLinebreaker
(items []Item, width float64)
text/linebreak.go:301
↓ 1 callersFunctionoklab2rgb
(L, a, b float64)
palettes.go:59
↓ 1 callersMethodparseDefs
(l *xml.Lexer)
svg.go:450
↓ 1 callersFunctionparseFeatures
(input string)
text/harfbuzz.go:96
↓ 1 callersMethodparseStyleAttribute
(style string)
svg.go:837
↓ 1 callersMethodparseTag
(l *xml.Lexer)
svg.go:388
↓ 1 callersFunctionpatternStopFunction
(s0, s1 canvas.Stop)
renderers/pdf/writer.go:1624
↓ 1 callersFunctionpdfReadStreamLike
(b []byte, endDict, endStream []byte)
cmd/pdftext/reader.go:552
↓ 1 callersFunctionpdfWriteContentVal
(w io.Writer, i any)
cmd/pdftext/writer.go:187
↓ 1 callersMethodprint
(w io.Writer, prefix string, cmp int)
path_intersection.go:673
↓ 1 callersFunctionpythagoreanTiling
(ctx *canvas.Context, clip *canvas.Path)
resources/docs/tiling/main.go:155
↓ 1 callersFunctionquadraticBezierCurvatureRadius
negative when curve bends CW while following t
path_util.go:455
↓ 1 callersFunctionquadraticBezierDistance
(p0, p1, p2, q Point)
path_util.go:521
↓ 1 callersMethodreadCrossReferenceStream
()
cmd/pdftext/reader.go:144
↓ 1 callersMethodreadCrossReferenceTable
()
cmd/pdftext/reader.go:76
↓ 1 callersMethodreadEncrypt
(password []byte)
cmd/pdftext/encrypt.go:24
↓ 1 callersMethodreadKids
()
cmd/pdftext/reader.go:271
↓ 1 callersMethodrenderBlock
(src []byte, n ast.Node, marginTop float64)
markdown.go:54
← previousnext →701–800 of 1,447, ranked by callers