limit maxZoom (to a value where elements start disappearing anyway)
This commit is contained in:
parent
48e813471f
commit
24dc9c9f18
1 changed files with 3 additions and 2 deletions
|
@ -56,6 +56,7 @@ export default defineComponent({
|
||||||
// PanZoom
|
// PanZoom
|
||||||
const pz = createPanZoom(element, {
|
const pz = createPanZoom(element, {
|
||||||
smoothScroll: false,
|
smoothScroll: false,
|
||||||
|
maxZoom: 3637937,
|
||||||
zoomSpeed: 0.05,
|
zoomSpeed: 0.05,
|
||||||
zoomDoubleClickSpeed: 1,
|
zoomDoubleClickSpeed: 1,
|
||||||
onDoubleClick: function (e) {
|
onDoubleClick: function (e) {
|
||||||
|
@ -253,8 +254,8 @@ function processAudio(svg: XMLDocument): AudioAreaDef[] {
|
||||||
|
|
||||||
function processStart(svg: XMLDocument): SVGRectElement | null {
|
function processStart(svg: XMLDocument): SVGRectElement | null {
|
||||||
const start = svg.getElementById("start");
|
const start = svg.getElementById("start");
|
||||||
if (start){
|
if (start) {
|
||||||
start.classList.add("hidden")
|
start.classList.add("hidden");
|
||||||
}
|
}
|
||||||
return start as (SVGRectElement | null);
|
return start as (SVGRectElement | null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue