Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ajstarks/decksh
/ functions
Functions
228 in github.com/ajstarks/decksh
⨍
Functions
228
◇
Types & classes
14
↓ 1 callers
Function
dbracket
dbracket makes a down-facing bracket
generate.go:1216
↓ 1 callers
Function
dchart
dchart formats a dchart line
cmd/dshfmt/main.go:173
↓ 1 callers
Function
deck
deck produces the "deck" element
generate.go:131
↓ 1 callers
Function
deckchart
chart uses the dchart API to make charts dchart [args]
generate.go:2503
↓ 1 callers
Function
deckconnectline
deckpolyline makes deck markup for a ployline given x, y coordinate slices
kmlgeo.go:148
↓ 1 callers
Function
deckgeoimg
deckgeoimg places images at geometric coordinates
geo.go:180
↓ 1 callers
Function
deckpolyline
Deckpolyline makes deck markup for a ployline given x, y coordinate slices, cycling back to the beginning
kmlgeo.go:135
↓ 1 callers
Function
deckshTOC
deckshTOC makes a table of contents from decksh source
cmd/dshtoc/main.go:232
↓ 1 callers
Function
delim
delim returns the index of sep in slice s. if not found return -1
assign.go:235
↓ 1 callers
Function
diag
diag shows specified diagnostics
cmd/dshfmt/main.go:405
↓ 1 callers
Function
directfunc
directfunc calls a previously imported function function args...
parse.go:360
↓ 1 callers
Function
dline
dline makes dotted lines dline x1 y1 x2 y2 [n] [size] [color] [opacity]
generate.go:972
↓ 1 callers
Function
endslide
endslide writes ending slide markup to w
cmd/dshtoc/main.go:112
↓ 1 callers
Function
endtag
elist ends a deck, slide, or list
generate.go:57
↓ 1 callers
Function
evalif
evalif evaluates an if statement
parse.go:370
↓ 1 callers
Function
fanchart
fanchart makes fan and bowtie charts fan|fanchart|bow|bowtie filename [size]
generate.go:2308
↓ 1 callers
Function
forbody
forbody collects items within a for loop body
loop.go:108
↓ 1 callers
Function
forfile
forfile reads and returns the contents of the file in for x = "file"
loop.go:66
↓ 1 callers
Function
format
format formats a series of decksh lines (each one is a parsed string slice)
cmd/dshfmt/main.go:251
↓ 1 callers
Function
fornum
fornum returns the arguments for for x=begin end [incr]
loop.go:81
↓ 1 callers
Function
fortype
fortype returns the type of for loop; either: for v = begin end incr for v = ["abc" "123"] for v = ( n1 n2 ... n) for v = "file"
loop.go:27
↓ 1 callers
Function
genarrow
wpolar converts polar to Cartesian coordinates func wpolar(cx, cy, r, t float64) (float64, float64) { return ((r * math.Cos(t)) + (cx)), ((r * math.S
generate.go:1375
↓ 1 callers
Function
geoarc
geoarc makes a arc between two points using specified coordinates
generate.go:1968
↓ 1 callers
Function
geocoord
getcoord assigns canvas coordinates given a geo: URL or lat/long pair v = getcoord "loc" v = getcoord lat long
assign.go:304
↓ 1 callers
Function
geoimage
geoimage places an image at a geographic coordinate
generate.go:1751
↓ 1 callers
Function
geolabel
geolabel makes labels from geometric data (lat/long pairs)
generate.go:1854
↓ 1 callers
Function
geoline
geoline makes lines from geometric data
generate.go:1717
↓ 1 callers
Function
geoloc
geoloc makes dot and label with alighnment
generate.go:1810
↓ 1 callers
Function
geopath
geopath draws a straight line between two points using specified coordinates
generate.go:2002
↓ 1 callers
Function
geopathfile
geopathfile makes a series of straight line paths using data in a file
generate.go:1921
↓ 1 callers
Function
geopoint
geopoint makes points from geometric data (lat/long pairs)
generate.go:1886
↓ 1 callers
Function
geopoly
geopoly makes polygons from geometric data
generate.go:1688
↓ 1 callers
Function
georuler
georuler makes a geographic ruler
generate.go:199
↓ 1 callers
Function
grid
grid places objects read from a file in a grid grid "file" x y xint yint xlimit
parse.go:181
↓ 1 callers
Function
hline
hline makes a horizontal line hline x y length [size] [color] [opacity]
generate.go:857
↓ 1 callers
Function
ifelse
ifelse returns if and (possibly empty) else blocks
parse.go:406
↓ 1 callers
Function
image
image generates markup for images (plain and captioned) image "file" x y w h [scale] [link]
generate.go:419
↓ 1 callers
Function
imagecheck
imagecheck checks if images can be opened
cmd/dshlint/main.go:283
↓ 1 callers
Function
importfunc
import loads the definition of a function from a file import "file"
parse.go:254
↓ 1 callers
Function
include
include inserts the contents of a file include "file"
parse.go:62
↓ 1 callers
Function
include
include reads the contents of included decksh source, counting pages
cmd/dshtoc/main.go:51
↓ 1 callers
Function
intcheck
check checks the structural integrity by analyzing keywords
cmd/dshfmt/main.go:115
↓ 1 callers
Function
isaop
isaop tests for assignment operators
parse.go:25
↓ 1 callers
Function
kmlshape
geoshape produces deck markup from KML data
kmlgeo.go:169
↓ 1 callers
Function
kwcheck
kwcheck checks for matching keywords
cmd/dshlint/main.go:187
↓ 1 callers
Function
kwcheck
kwcheck checks for matching keywords
cmd/dshfmt/main.go:72
↓ 1 callers
Function
kwcounter
kwcouter count keywords
cmd/dshlint/main.go:177
↓ 1 callers
Function
kwcounter
kwcouter count keywords occurances
cmd/dshfmt/main.go:47
↓ 1 callers
Function
lbrace
lbrace makes a left-facing brace
generate.go:1293
↓ 1 callers
Function
lbracket
lbracket makes a left-facing bracket
generate.go:1178
↓ 1 callers
Function
legend
legend makes the markup for the legend keyword legend "text" x y size font color
generate.go:1088
↓ 1 callers
Function
line
line generates markup for lines line x1 y1 x2 y2 [size] [color] [opacity]
generate.go:830
↓ 1 callers
Function
lint
lint tests for proper keyword arguments
cmd/dshlint/main.go:303
↓ 1 callers
Function
list
list generates markup for lists list x y size [font] [color] [opacity] [lp] [link]
generate.go:471
↓ 1 callers
Function
listerr
listerr displays unmatched list errors
cmd/dshfmt/main.go:107
↓ 1 callers
Function
listitem
listitem generates list items
generate.go:497
↓ 1 callers
Function
listitem
listitem formats a list item
cmd/dshfmt/main.go:228
↓ 1 callers
Function
loadata
loadata creates a file using the data keyword data "file"...edata
parse.go:81
↓ 1 callers
Function
matcherr
matcherr displays unmatched keyword errors
cmd/dshfmt/main.go:93
↓ 1 callers
Function
mathfunc
mathfunc returns the {sine|cosine|tangent|sqrt} of a number or binary operation
assign.go:512
↓ 1 callers
Function
maxvar
maxvar returns the maximum length element within an assignment line
cmd/dshfmt/main.go:325
↓ 1 callers
Function
nameitem
nameitem writes a list item (name) to w
cmd/dshtoc/main.go:92
↓ 1 callers
Function
pageitem
pageitem writes a page number item to w
cmd/dshtoc/main.go:97
↓ 1 callers
Function
parse
parse takes a line of input and returns a string slice containing the parsed tokens
cmd/dshlint/main.go:260
↓ 1 callers
Function
parse
parse takes a line of input and returns a string slice containing the parsed tokens
cmd/dshfmt/main.go:355
↓ 1 callers
Function
parseJSON
parseJSONData parses raw JSON data
jsongeo.go:45
↓ 1 callers
Function
parsePolyLine
parsePolyLine returns the poly[gon|line] struct from the shape record
shpgeo.go:126
↓ 1 callers
Function
parseShape
ParseShape retrieves coordinate data from shape records, producing deck markup
shpgeo.go:92
↓ 1 callers
Function
parsepar
parsepar parses paragraph commands para x y width fontsize [font] [color] [opacity] [link] ... epara
parse.go:119
↓ 1 callers
Function
pchart
pchart makes porpotional charts (pmaps, donut, pie, pgrid, lego/waffle) <chartype> filename [width] [size]
generate.go:2235
↓ 1 callers
Function
pill
pill makes a horizontal pill shape pill x y w h [color]
generate.go:626
↓ 1 callers
Function
polarfunc
polarfunc assigns polar coordinates
assign.go:190
↓ 1 callers
Function
polygon
polygon generates markup for polygons polygon "xcoord" "ycoord" [color] [opacity]
generate.go:738
↓ 1 callers
Function
polyline
polyline makes a series of lines given a set of coordinantes polyline "xcoord" "ycoord" [lw] [color] [opacity]
generate.go:785
↓ 1 callers
Function
process
process the input, make output
cmd/dshfmt/main.go:465
↓ 1 callers
Function
random
random returns a bounded random number
assign.go:549
↓ 1 callers
Function
rbrace
rbrace makes a right-facing brace
generate.go:1307
↓ 1 callers
Function
rbracket
rbracket makes a right-facing bracket
generate.go:1191
↓ 1 callers
Function
readDecksh
readDecks reads decksh lines from a io.Reader, parsing them into lines blank lines are preserved.
cmd/dshlint/main.go:248
↓ 1 callers
Function
readDecksh
readDecks reads decksh lines from a io.Reader, parsing them into lines blank lines are preserved.
cmd/dshfmt/main.go:343
↓ 1 callers
Function
regshapes
regshapes generates markup for square and circle
generate.go:537
↓ 1 callers
Function
roundrect
roundrect makes a rounded rectangle centered at (x,y) with dimensions (w, h), r is the corner radius rrect x y w h r [color]
generate.go:575
↓ 1 callers
Function
rt
rt returns the distance and angle of a line, compensating for aspect ratio
generate.go:1351
↓ 1 callers
Function
rtext
rtext generates markup for rotated text rtext x y angle size [font] [color] [opacity] [link]
generate.go:348
↓ 1 callers
Function
ruler
ruler makes x, y rulers rule xincr [color]
generate.go:166
↓ 1 callers
Function
setGeoCanvas
setGeoCanvas set the geo canvas variables
generate.go:1661
↓ 1 callers
Function
setIO
setIO sets up the input and output
cmd/dshfmt/main.go:433
↓ 1 callers
Function
setLatLong
setLatLong sets the geo lat/long variables
generate.go:1609
↓ 1 callers
Function
setoptions
setoptions sets command line options and input files
cmd/dshtoc/main.go:208
↓ 1 callers
Function
shapes
shapes generates markup for rectangle and ellipse
generate.go:513
↓ 1 callers
Function
shpdeckpoly
shpdeckpoly makes deck markup from poly data
shpgeo.go:143
↓ 1 callers
Function
shpdeckpolyline
shpdeckpolyline makes a series of lines in deck markup from a set of (x,y) coordinates
shpgeo.go:167
↓ 1 callers
Function
simpleassign
simpleassign creates an simple assignment id=number
assign.go:80
↓ 1 callers
Function
slide
slide produces the "slide" element slide [bg] [fg]
generate.go:240
↓ 1 callers
Function
sortkw
sort keywords by name
cmd/dshfmt/main.go:390
↓ 1 callers
Function
sortkwfreq
sort keywords by occurance
cmd/dshfmt/main.go:368
↓ 1 callers
Function
sprint
sprint makes a string assignment using formatted text
assign.go:336
↓ 1 callers
Function
star
star makes a n-sided star star x y nsides inner outer [color] [op]
generate.go:663
↓ 1 callers
Function
stdchart
stdchart makes bar charts, horizontal or word bar charts, line charts, scatter charts, dot charts, area charts, slope charts <chartType> filename [col
generate.go:2352
↓ 1 callers
Function
stringarg
stringarg formats a line with keyword followed by a string
cmd/dshfmt/main.go:200
← previous
next →
101–200 of 228, ranked by callers