Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图阻止用户停留在 JSXGraph 的 (1000, 1000) 和 (-1000, -1000) 区域内。
甚至可能吗?
这是一个非常有用的功能。我刚刚添加了一个新的板属性maxBoundingBox,它将在今天的夜间构建中可用。像这样使用它:
maxBoundingBox
var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5,5,5,-5], maxboundingbox: [-8,8,8,-8], pan: {enabled: true}, axis:true });