toggle menu
maps-kt
0.3.1-dev
common
switch theme
search in API
maps-kt-scheme
/
space.kscience.maps.scheme
/
XYCanvasState
XYCanvas
State
class
XYCanvasState
(
config
:
ViewConfig
<
XY
>
)
:
CanvasState
<
XY
>
Members
Constructors
XYCanvas
State
Link copied to clipboard
constructor
(
config
:
ViewConfig
<
XY
>
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
canvas
Size
Link copied to clipboard
var
canvasSize
:
DpSize
select
Rect
Link copied to clipboard
var
selectRect
:
DpRect
?
space
Link copied to clipboard
open
override
val
space
:
CoordinateSpace
<
XY
>
view
Config
Link copied to clipboard
val
viewConfig
:
ViewConfig
<
XY
>
view
Point
Link copied to clipboard
var
viewPoint
:
ViewPoint
<
XY
>
zoom
Link copied to clipboard
val
zoom
:
Float
Functions
compute
View
Point
Link copied to clipboard
open
override
fun
computeViewPoint
(
rectangle
:
Rectangle
<
XY
>
)
:
ViewPoint
<
XY
>
move
By
Link copied to clipboard
open
override
fun
ViewPoint
<
XY
>
.
moveBy
(
x
:
Dp
,
y
:
Dp
)
:
ViewPoint
<
XY
>
to
Coordinates
Link copied to clipboard
fun
toCoordinates
(
offset
:
Offset
,
density
:
Density
)
:
XY
open
override
fun
DpOffset
.
toCoordinates
(
)
:
XY
to
Dp
Offset
Link copied to clipboard
open
override
fun
XY
.
toDpOffset
(
)
:
DpOffset
to
Dp
Rect
Link copied to clipboard
open
override
fun
Rectangle
<
XY
>
.
toDpRect
(
)
:
DpRect
to
Offset
Link copied to clipboard
fun
toOffset
(
coordinates
:
XY
,
density
:
Density
)
:
Offset