MCPcopy Create free account

hub / github.com/asciitosvg/asciitosvg / functions

Functions101 in github.com/asciitosvg/asciitosvg

↓ 20 callersMethodat
(p Point)
canvas.go:486
↓ 9 callersMethodPoints
Points returns all the points occupied by this Object. Every object has at least one point, and all points are both in-order and contiguous.
object.go:13
↓ 8 callersMethodisVisited
(p Point)
canvas.go:490
↓ 7 callersMethodCorners
Corners returns all the corners (change of direction) along the path.
object.go:17
↓ 6 callersMethodIsText
IsText returns true if the object is textual and does not represent a path.
object.go:23
↓ 6 callersMethodObjects
Objects returns all the objects found in the underlying grid.
canvas.go:23
↓ 6 callersFunctionscale
(p Point, scaleX, scaleY int)
svg.go:265
↓ 5 callersMethodString
String implements fmt.Stringer on Point.
point.go:38
↓ 5 callersMethodTag
Tag returns the tag of this object, if any.
object.go:29
↓ 5 callersMethodcanRight
(p Point)
canvas.go:512
↓ 5 callersMethodisCorner
()
char.go:40
↓ 5 callersMethodisDiagonal
()
char.go:96
↓ 4 callersFunctionNewCanvas
NewCanvas returns a new Canvas, initialized from the provided data. If tabWidth is set to a non-negative value, that value will be used to convert tab
canvas.go:37
↓ 4 callersMethodcanLeft
(p Point)
canvas.go:508
↓ 4 callersMethodisArrowVertical
()
char.go:80
↓ 4 callersMethodisDot
()
char.go:104
↓ 4 callersMethodisHorizontal
()
char.go:52
↓ 4 callersMethodisTick
()
char.go:100
↓ 4 callersMethodisVertical
()
char.go:60
↓ 4 callersMethodvisit
(p Point)
canvas.go:494
↓ 3 callersMethodIsClosed
IsClosed is true if the object is composed of a closed path.
object.go:19
↓ 3 callersMethodcanDown
(p Point)
canvas.go:520
↓ 3 callersMethodcanUp
(p Point)
canvas.go:516
↓ 3 callersFunctionisDiagonalNE
(p1, p2 Point)
point.go:64
↓ 3 callersFunctionisHorizontal
isHorizontal returns true if p1 and p2 are horizontally aligned.
point.go:43
↓ 3 callersFunctionisVertical
isVertical returns true if p1 and p2 are vertically aligned.
point.go:49
↓ 3 callersMethodseal
seal finalizes the object, setting its text, its corners, and its various rendering hints.
object.go:103
↓ 2 callersMethodIsDashed
IsDashed is true if this object is a path object, and lines should be drawn dashed.
object.go:21
↓ 2 callersMethodIsText
()
object.go:56
↓ 2 callersMethodSetTag
SetTag sets an options tag on this Object so the renderer may look up options.
object.go:27
↓ 2 callersMethodSetTag
(s string)
object.go:68
↓ 2 callersMethodSize
Size returns the visual dimensions of the Canvas.
canvas.go:25
↓ 2 callersMethodText
Text returns the text associated with this Object if textual, and nil otherwise.
object.go:25
↓ 2 callersMethodcanHorizontal
()
char.go:121
↓ 2 callersMethodcanVertical
()
char.go:125
↓ 2 callersFunctioncolorToRGB
colorToRGB matches a color string and returns its RGB components.
color.go:60
↓ 2 callersFunctionescape
(s string)
svg.go:251
↓ 2 callersFunctionflatten
(points []Point, scaleX, scaleY int)
svg.go:273
↓ 2 callersFunctiongetCorners
(objs []Object)
canvas_test.go:652
↓ 2 callersFunctiongetStrings
(objs []Object)
canvas_test.go:644
↓ 2 callersFunctiongetTexts
(objs []Object)
canvas_test.go:629
↓ 2 callersMethodisArrow
()
char.go:84
↓ 2 callersMethodisArrowHorizontal
()
char.go:72
↓ 2 callersMethodisArrowHorizontalLeft
()
char.go:68
↓ 2 callersMethodisArrowVerticalUp
()
char.go:76
↓ 2 callersMethodisDashedHorizontal
()
char.go:48
↓ 2 callersMethodisDashedVertical
()
char.go:56
↓ 2 callersFunctionisDiagonalNW
(p1, p2 Point)
point.go:61
↓ 2 callersFunctionisDiagonalSE
The following functions return true when the diagonals are connected in various compass directions.
point.go:55
↓ 2 callersFunctionisDiagonalSW
(p1, p2 Point)
point.go:58
↓ 2 callersMethodisObjectEndTag
()
char.go:14
↓ 2 callersMethodisObjectStartTag
()
char.go:10
↓ 2 callersMethodisSpace
()
char.go:31
↓ 2 callersFunctionpointsToCorners
pointsToCorners returns all the corners (points at which there is a change of directionality) for a path. It additionally returns a truth value indica
object.go:175
↓ 1 callersFunctionCanvasToSVG
CanvasToSVG renders the supplied asciitosvg.Canvas to SVG, based on the supplied options.
svg.go:61
↓ 1 callersMethodEnclosingObjects
EnclosingObjects returns the set of objects that contain this point in order from most to least specific.
canvas.go:31
↓ 1 callersMethodEnclosingObjects
(p Point)
canvas.go:166
↓ 1 callersMethodHasPoint
HasPoint returns true if the object contains the supplied Point coordinates.
object.go:15
↓ 1 callersMethodOptions
Options returns a map of options to apply to Objects based on the object's tag. This maps tag name to a map of option names to options.
canvas.go:28
↓ 1 callersMethodcanDiagonal
(p Point)
canvas.go:524
↓ 1 callersMethodcanDiagonalFrom
Diagonal transitions are special: you can move lines diagonally, you can move diagonally from corners to edges or lines, but you cannot move diagonall
char.go:110
↓ 1 callersFunctionexpandTabs
The expandTabs function pads tab characters to the specified width of spaces for the provided line of input. We cannot simply pad based on byte-offset
canvas.go:100
↓ 1 callersMethodfindObjects
findObjects finds all objects (lines, polygons, and text) within the underlying grid.
canvas.go:187
↓ 1 callersFunctiongetPoints
Private details.
canvas_test.go:621
↓ 1 callersMethodisDashed
()
char.go:64
↓ 1 callersMethodisDiagonalNorthEast
()
char.go:88
↓ 1 callersMethodisDiagonalSouthEast
()
char.go:92
↓ 1 callersMethodisPathStart
isPathStart returns true on any form of ascii art that can start a graph.
char.go:36
↓ 1 callersMethodisRoundedCorner
()
char.go:44
↓ 1 callersMethodisTagDefinitionSeparator
()
char.go:18
↓ 1 callersMethodisTextCont
()
char.go:27
↓ 1 callersMethodisTextStart
()
char.go:22
↓ 1 callersFunctionmainImpl
()
cmd/a2s/a2s.go:31
↓ 1 callersMethodnext
The next returns the points that can be used to make progress, scanning (in order) horizontal progress to the left or right, vertical progress above o
canvas.go:295
↓ 1 callersFunctionparseHexColor
(c string)
color.go:11
↓ 1 callersMethodscanPath
scanPath tries to complete a total path (for lines or polygons) starting with some partial path. It recurses when it finds multiple unvisited outgoing
canvas.go:245
↓ 1 callersMethodscanText
scanText extracts a line of text.
canvas.go:381
↓ 1 callersFunctiontextColor
textColor returns an accessible text color to use on top of a supplied background color. The formula used for calculating whether the contrast is acce
color.go:74
↓ 1 callersMethodunvisit
(p Point)
canvas.go:500
FunctionBenchmarkT
(b *testing.B)
canvas_test.go:576
MethodCorners
()
object.go:48
MethodHasPoint
HasPoint determines whether the supplied point lives inside the object. Since we support complex convex and concave polygons, we need to do a full poi
object.go:86
MethodIsClosed
()
object.go:52
MethodIsDashed
()
object.go:60
MethodLen
()
object.go:140
MethodLess
Less returns in order top most, then left most.
object.go:144
MethodObjects
()
canvas.go:154
MethodOptions
()
canvas.go:162
MethodPoints
()
object.go:44
MethodSize
()
canvas.go:158
MethodString
()
object.go:76
MethodString
()
canvas.go:150
MethodSwap
(i, j int)
object.go:141
MethodTag
()
object.go:72
FunctionTestCanvasToSVG
(t *testing.T)
svg_test.go:13
FunctionTestNewCanvas
(t *testing.T)
canvas_test.go:13
FunctionTestNewCanvasBroken
(t *testing.T)
canvas_test.go:457
FunctionTestParseHexColor
(t *testing.T)
color_test.go:12
FunctionTestPointsToCorners
(t *testing.T)
canvas_test.go:532
MethodText
()
object.go:64
next →1–100 of 101, ranked by callers