get_navigation
The navigation settings of the slot.
Usage
surface.query('get_navigation', { viewport? })Parameters
viewportstringthe slot (viewport id); the first by default
Returns
object with leftDrag, rightDrag, middleDrag, panModifier, orbitModifier, zoomModifier, wheel, zoomToCursor, orbitPivot, showPivot, orbitSpeed, zoomSpeed, pinchSpeed, panSpeed, invertOrbitX, invertOrbitY, invertZoom, damping, inertia, touch, mode, flySpeed, limits, reducedMotion, in the ok: true envelope.
{
"type": "object",
"properties": {
"leftDrag": {
"type": "string",
"enum": [
"orbit",
"pan",
"none"
]
},
"rightDrag": {
"type": "string",
"enum": [
"orbit",
"pan",
"none"
]
},
"middleDrag": {
"type": "string",
"enum": [
"orbit",
"pan",
"none"
]
},
"panModifier": {
"type": "string",
"enum": [
"shift",
"ctrl",
"alt",
"mod",
"none"
]
},
"orbitModifier": {
"type": "string",
"enum": [
"shift",
"ctrl",
"alt",
"mod",
"none"
]
},
"zoomModifier": {
"type": "string",
"enum": [
"shift",
"ctrl",
"alt",
"mod",
"none"
]
},
"wheel": {
"type": "string",
"enum": [
"zoom",
"pan"
]
},
"zoomToCursor": {
"type": "boolean"
},
"orbitPivot": {
"type": "string",
"enum": [
"cursor",
"target",
"selection"
]
},
"showPivot": {
"type": "boolean"
},
"orbitSpeed": {
"type": "number",
"minimum": 0
},
"zoomSpeed": {
"type": "number",
"minimum": 0
},
"pinchSpeed": {
"type": "number",
"minimum": 0
},
"panSpeed": {
"type": "number",
"minimum": 0
},
"invertOrbitX": {
"type": "boolean"
},
"invertOrbitY": {
"type": "boolean"
},
"invertZoom": {
"type": "boolean"
},
"damping": {
"type": "number",
"minimum": 0,
"maximum": 60
},
"inertia": {
"type": "string",
"enum": [
"off",
"touch",
"all"
]
},
"touch": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": [
"orbit",
"fly"
]
},
"flySpeed": {
"type": "number",
"minimum": 0
},
"limits": {
"type": "object",
"properties": {
"minVisibleHeight": {
"type": "number",
"minimum": 0
},
"maxVisibleHeight": {
"type": "number",
"minimum": 0
}
}
},
"reducedMotion": {
"type": "boolean"
}
}
}