MCPcopy Index your code

hub / github.com/tdewolff/canvas / functions

Functions1,447 in github.com/tdewolff/canvas

↓ 4 callersMethodAdd
Add adds a new color stop to a gradient.
colors.go:98
↓ 4 callersMethodAddPathEndpoints
AddPathEndpoints adds all line segments of p to the queue q. The first command is converted to a MoveToCmd and any CloseCmd that is not at the end is
path_intersection.go:363
↓ 4 callersMethodAddPoint
AddPoint returns a rect that encompasses both the current rect and the given point.
util.go:460
↓ 4 callersMethodAppliesTo
(elems []svgElem)
svg.go:1358
↓ 4 callersMethodCP1
CP1 returns the first control point for quadratic and cubic Béziers.
path_scanner.go:50
↓ 4 callersMethodCP1
CP1 returns the first control point for quadratic and cubic Béziers.
path_scanner.go:134
↓ 4 callersMethodCP2
CP2 returns the second control point for cubic Béziers.
path.go:1988
↓ 4 callersMethodClip
Clip sets the canvas to the given rectangle.
canvas.go:794
↓ 4 callersMethodClose
Close finished and closes the PDF.
renderers/pdf/pdf.go:94
↓ 4 callersMethodClosed
Closed returns true if the last point coincides with the first.
polyline.go:48
↓ 4 callersMethodCmd
Cmd returns the current path segment command.
path_scanner.go:31
↓ 4 callersMethodEncrypt
(ref pdfRef, data []byte)
cmd/pdftext/encrypt.go:196
↓ 4 callersMethodFauxWeight
FauxWeight returns the path offset for fake boldness relative to regular style. The offset is multiplied by the font size (in millimeters) for an offs
font.go:67
↓ 4 callersMethodHas
Has return true if it contains break point b.
text/linebreak.go:239
↓ 4 callersMethodInterior
Interior is true when the point (x,y) is in the interior of the path, i.e. gets filled. This depends on the FillRule.
polyline.go:97
↓ 4 callersMethodMoveTo
MoveTo moves the cursor to a given point.
renderers/gochart.go:101
↓ 4 callersMethodMul
Mul multiplies the current matrix by the given matrix, i.e. combining transformations.
util.go:627
↓ 4 callersFunctionMustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
examples/html-canvas/files.go:179
↓ 4 callersFunctionNewGoChart
NewGoChart returns a new github.com/wcharczuk/go-chart renderer.
renderers/gochart.go:30
↓ 4 callersFunctionNewLineHatch
NewLineHatch returns a new line hatch pattern with lines at an angle with a spacing of distance. Thickness is the stroke thickness applied to the shap
patterns.go:136
↓ 4 callersMethodOpaque
Opaque scans the entire image and reports whether it is fully opaque.
image/image.go:271
↓ 4 callersMethodPixOffset
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
image/image.go:427
↓ 4 callersMethodPixOffset
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
image/image.go:530
↓ 4 callersMethodPop
()
path_intersection.go:456
↓ 4 callersMethodPush
Push saves the current draw state so that it can be popped later on.
canvas.go:276
↓ 4 callersMethodPush
Push adds break point b to the end of the list.
text/linebreak.go:244
↓ 4 callersMethodReflectXAbout
ReflectXAbout inverts the X axis of the view about the given X coordinate.
canvas.go:353
↓ 4 callersMethodReflectYAbout
ReflectYAbout inverts the Y axis of the view about the given Y coordinate.
canvas.go:363
↓ 4 callersMethodRenderText
(text *Text, m Matrix)
canvas.go:209
↓ 4 callersMethodResetView
ResetView resets the current affine transformation matrix to the Identity matrix, ie. no transformations.
canvas.go:333
↓ 4 callersMethodScanner
Scanner returns a path scanner.
path_scanner.go:6
↓ 4 callersMethodSetAlpha
SetAlpha sets the transparency value.
renderers/pdf/writer.go:965
↓ 4 callersMethodSetLineCap
SetLineCap sets the stroke cap type.
renderers/pdf/writer.go:1025
↓ 4 callersMethodSetLineJoin
SetLineJoin sets the stroke join type.
renderers/pdf/writer.go:1043
↓ 4 callersMethodSetLineWidth
SetLineWidth sets the stroke width.
renderers/pdf/writer.go:1017
↓ 4 callersMethodShape
Shape shapes the string for a given direction, script, and language.
text/harfbuzz.go:53
↓ 4 callersMethodSplitAt
(z Point)
path_intersection.go:318
↓ 4 callersMethodSwap
(i, j int)
path_intersection.go:357
↓ 4 callersMethodToLinear
(color.Color)
colors.go:279
↓ 4 callersMethodToleranceEdgeY
ToleranceEdgeY returns the y-value of the SweepPoint at the tolerance edges given by xLeft and xRight, or at the endpoints of the SweepPoint, whicheve
path_intersection.go:302
↓ 4 callersMethodView
View returns the current affine transformation matrix through which all operations will be transformed.
canvas.go:323
↓ 4 callersMethodWriteCanvas
WriteCanvas writes an inline canvas object.
text.go:539
↓ 4 callersFunctionbindataRead
(data []byte, name string)
examples/html-canvas/files.go:20
↓ 4 callersFunctionclosestArcIntersection
(c Point, cw bool, pivot, i0, i1 Point)
path_stroke.go:202
↓ 4 callersMethodcompareOverlapsV
(b *SweepPoint)
path_intersection.go:1031
↓ 4 callersMethodcompareTangentsV
(b *SweepPoint)
path_intersection.go:1053
↓ 4 callersFunctioncubicBezierCurvatureRadius
negative when curve bends CW while following t
path_util.go:582
↓ 4 callersFunctioncubicBezierDeriv2
(p0, p1, p2, p3 Point, t float64)
path_util.go:565
↓ 4 callersFunctioncubicBezierLength
cubicBezierLength calculates the length of the Bézier, taking care of inflection points. It uses Gauss-Legendre (n=5) and has an error of ~1% or less
path_util.go:624
↓ 4 callersFunctionellipseRadiiCorrection
scale ellipse if rx and ry are too small, see https://www.w3.org/TR/SVG/implnote.html#ArcCorrectionOutOfRangeRadii
path_util.go:140
↓ 4 callersFunctioneventRelation
(rel Relation, zs []Point, event *SweepPoint, rights []*SweepPoint, self bool)
path_intersection.go:2499
↓ 4 callersFunctionfindInflectionPointsCubicBezier
(p0, p1, p2, p3 Point)
path_util.go:817
↓ 4 callersFunctionfixedPoint26_6
(x, y float64)
path.go:2517
↓ 4 callersFunctionflattenEllipticArc
(start Point, rx, ry, phi float64, large, sweep bool, end Point, tolerance float64)
path_util.go:345
↓ 4 callersFunctionflattenQuadraticBezier
(p0, p1, p2 Point, tolerance float64)
path_util.go:719
↓ 4 callersFunctionfromArcFlags
fromArcFlags converts the largeArc and sweep boolean flags to a value stored in the path.
path.go:93
↓ 4 callersFunctionhue
(col color.RGBA)
resources/docs/colors/main.go:12
↓ 4 callersMethodindex
(loc int)
text.go:422
↓ 4 callersFunctionintersectionLineCube
https://www.particleincell.com/2013/cubic-line-intersection/
path_intersection_util.go:423
↓ 4 callersFunctionintersectionLineEllipse
(zs Intersections, l0, l1, center, radius Point, phi, theta0, theta1 float64)
path_intersection_util.go:596
↓ 4 callersFunctionintersectionLineQuad
https://www.particleincell.com/2013/cubic-line-intersection/
path_intersection_util.go:368
↓ 4 callersFunctionlerp
(a, b, t uint32)
colors.go:166
↓ 4 callersMethodnewNode
(item *SweepPoint)
path_intersection.go:717
↓ 4 callersMethodoptimizeInnerBend
(i int)
path_stroke.go:390
↓ 4 callersMethodreadBytes
(n int)
latex_dvi.go:350
↓ 4 callersMethodreadInt32
()
latex_dvi.go:316
↓ 4 callersMethodreplace
replace replaces path segments by their respective functions, each returning the path that will replace the segment or nil if no replacement is to be
path.go:1481
↓ 4 callersFunctionsetEpsilon
(epsilon float64)
canvas_test.go:10
↓ 4 callersMethodsetPaint
(paint canvas.Paint)
renderers/ps/ps.go:87
↓ 4 callersFunctionskipCommaWhitespace
(path []byte)
path.go:2066
↓ 4 callersFunctionsolveCubicFormula
see https://www.geometrictools.com/Documentation/LowDegreePolynomialRoots.pdf see https://github.com/thelonious/kld-polynomial/blob/development/lib/Po
util.go:1009
↓ 4 callersFunctionwrite
(fd, buf, offset, length, position, callback)
examples/html-canvas/wasm_exec.js:27
↓ 4 callersMethodwritePaint
(paint canvas.Paint, m canvas.Matrix)
renderers/svg/svg.go:557
↓ 3 callersMethodAdd
(x float64, event *SweepPoint, refNode *SweepNode)
path_intersection.go:1398
↓ 3 callersMethodAdvance
()
text/text.go:98
↓ 3 callersFunctionBeveledRectangle
BeveledRectangle returns a rectangle of width w and height h with beveled corners at distance r from the corner.
shapes.go:74
↓ 3 callersMethodCCW
CCW returns true when the path is counter clockwise oriented at its right-most coordinate (bottom-most of all right-most coordinates). It is most usef
path.go:961
↓ 3 callersMethodComposeView
ComposeView post-multiplies the current affine transformation matrix by the given matrix. This means that any draw action will first be transformed by
canvas.go:338
↓ 3 callersMethodCovers
Covers returns true if at least one point of the second shape lies in the first, and no points of the second lie in the exterior of the first, includi
path_intersection.go:2482
↓ 3 callersMethodDecompose
Decompose extracts the translation, rotation, scaling and rotation components (applied in the reverse order) as (tx, ty, theta, sx, sy, phi) with rota
util.go:778
↓ 3 callersMethodDecorate
(Renderer, Matrix, *FontFace, *Path, float64)
font.go:803
↓ 3 callersMethodDecrypt
(ref pdfRef, data []byte)
cmd/pdftext/encrypt.go:219
↓ 3 callersMethodDisjoint
Disjoint is the inverse of Intersects.
path_intersection.go:2446
↓ 3 callersMethodDrawImage
DrawImage draws an image at position (x,y) using the current draw state and the given resolution in pixels-per-millimeter. A higher resolution will dr
canvas.go:682
↓ 3 callersFunctionEllipse
Ellipse returns an ellipse of radii rx and ry.
shapes.go:104
↓ 3 callersFunctionEmbeddingLevels
EmbeddingLevels returns the embedding levels for each rune of a mixed LTR/RTL string. A change in level means a change in direction.
text/fribidi.go:10
↓ 3 callersMethodEquals
Equals returns true if P and Q are equal with tolerance Epsilon.
util.go:250
↓ 3 callersFunctionFindSystemFont
FindSystemFont finds the path to a font from the system's fonts.
font.go:218
↓ 3 callersFunctionFromImage
FromImage returns a renderer that draws to an existing image. Resolution is in pixels per unit of canvas coordinates (millimeters). A higher resolutio
renderers/rasterizer/rasterizer.go:45
↓ 3 callersMethodGlyphs
(s string)
font.go:699
↓ 3 callersFunctionGlyphsToItems
GlyphsToItems converts a slice of glyphs into the box/glue/penalty items model as used by Knuth's line breaking algorithm. The SFNT and Size of each g
text/linebreak.go:757
↓ 3 callersMethodHeight
Height returns the height of the canvas in millimeters.
canvas.go:265
↓ 3 callersMethodInit
()
path_simplify.go:222
↓ 3 callersMethodInto
Into returns true if first path goes into the left-hand side of the second path, i.e. the second path goes to the right-hand side of the first path.
path_intersection_util.go:101
↓ 3 callersFunctionIsPunctuation
(s string)
text/linebreak.go:713
↓ 3 callersFunctionIsSpace
(s string)
text/linebreak.go:670
↓ 3 callersMethodLength
Length returns the length of OP.
util.go:317
↓ 3 callersMethodLess
(i, j int)
path_intersection.go:353
↓ 3 callersMethodLessH
func (s *SweepStatus) Clear() { n := s.First() for n != nil { cur := n n = n.Next() s.returnNode(cur) } s.root = nil }
path_intersection.go:997
↓ 3 callersMethodLinebreak
([]Item, float64)
text/linebreak.go:864
← previousnext →301–400 of 1,447, ranked by callers