2017-06-07 10 views

答えて

0

ズーム範囲のみを追加できます。この範囲はキャンバスの幅になります。

zoom: { 
     // Boolean to enable zooming 
     enabled: true, 

     // Enable drag-to-zoom behavior 
     drag: true, 

     // Zooming directions. Remove the appropriate direction to disable 
     // Eg. 'y' would only allow zooming in the y direction 
     mode: 'xy', 
     rangeMin: { 
      // Format of min zoom range depends on scale type 
      x: null, 
      y: null 
     }, 
     rangeMax: { 
      // Format of max zoom range depends on scale type 
      x: null, 
      y: null 
     } 
    } 
関連する問題