crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
ed738319
ROOT
/
widgets
/
linechart
/
internal
/
zoom
/
zoom.go
Search
History
566 lines
|
ISO-8859-1
|
15 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Option
set
(*options)
options
scrollStepPerc
:
int
newOptions
(opts ...Option)
:
*options
option
set
(opts *options)
DefaultScrollStep
ScrollStep
(perc int)
:
Option
Tracker
baseX
:
*axes.XDetails
zoomX
:
*axes.XDetails
cvsAr
:
image.Rectangle
graphAr
:
image.Rectangle
fsm
:
*button.FSM
highlight
:
*Range
opts
:
*options
New
(baseX *axes.XDetails, cvsAr, graphAr image.Rectangle, opts ...Option)
:
(*Tracker, error)
Range
Start
:
int
End
:
int
last
:
int
normalizeOptions
oldBaseMin
:
*axes.Value
oldBaseMax
:
*axes.Value
normalize
(baseMin, baseMax *axes.Value, min, max int, opts *normalizeOptions)
:
(int, int)
newZoomedFromBase
(min, max int, base *axes.XDetails, cvsAr image.Rectangle)
:
(*axes.XDetails, error)
findValuePair
(min, max int, baseMin, baseMax *axes.Value)
:
(int, int)
findCellPair
(base *axes.XDetails, minCell, maxCell int)
:
(*axes.Value, *axes.Value, error)
zoomToHighlight
(base *axes.XDetails, hr *Range, cvsAr image.Rectangle)
:
(*axes.XDetails, error)
hasMinMax
(min, max int, base *axes.XDetails)
:
bool
zoomToScroll
(m *terminalapi.Mouse, cvsAr, graphAr image.Rectangle, curr, base *axes.XDetails, opts *options)
:
(*axes.XDetails, error)
*options
validate
()
:
error
*Tracker
Update
(baseX *axes.XDetails, cvsAr, graphAr image.Rectangle)
:
error
sizeChanged
(cvsAr, graphAr image.Rectangle)
:
bool
axisChanged
(baseX *axes.XDetails)
:
bool
baseForZoom
()
:
*axes.XDetails
Mouse
(m *terminalapi.Mouse)
:
error
Highlight
()
:
(bool, *Range)
Zoom
()
:
*axes.XDetails
*Range
length
()
:
int
empty
()
:
bool
reset
()
addX
(x int)
*normalizeOptions
rolledBy
(baseMin, baseMax *axes.Value)
:
int
All occurrences
Please wait...
Page is in error, reload to recover