这是绘制线条和刻度线的代码
const l = board.create('line', [
p1, p2
], {
straightFirst: false,
straightLast: false,
strokeColor:'#000',
withLabel: "true",
drawZero:false,
firstArrow: true,
lastArrow: true,
strokeWidth: '1',
});
这用于在行上打勾
const l2 = board.create('ticks', [l], {
ticksDistance: diff,
minorTicks:false,
// insertTicks: true,
drawZero: true,
equidistant: true,
}
);
//我能够找出使用中点绘制的刻度线