draw2dTouchでこのようなものを試しました:
this.setSelectable(true);
this.setDraggable(false);
this.setResizeable(true);
しかし、本来あるべき動作は期待されていません。したがって、これが新しいリリースによるライブラリのバグであるかどうかを確認してください。以前のバージョンではそうではないと思うので。
よろしくお願いします。私はそれに立ち往生しているので私を助けてください。
draw2dTouchでこのようなものを試しました:
this.setSelectable(true);
this.setDraggable(false);
this.setResizeable(true);
しかし、本来あるべき動作は期待されていません。したがって、これが新しいリリースによるライブラリのバグであるかどうかを確認してください。以前のバージョンではそうではないと思うので。
よろしくお願いします。私はそれに立ち往生しているので私を助けてください。
私にも問題がありました。
バグのようです。「this.mouseDownElement = figure;」という行を追加しました。問題を修正するには、以下のように SingleSelectionPolicy.js に追加します。
if (figure !== canvas.getSelection().getPrimary() && figure !== null && figure.isSelectable() === true) {
this.select(canvas,figure);
// its a line
if (figure instanceof draw2d.shape.basic.Line) {
if (!(figure instanceof draw2d.Connection)) {
canvas.draggingLineCommand = figure.createCommand(new draw2d.command.CommandType(draw2d.command.CommandType.MOVE));
if (canvas.draggingLineCommand !== null) {
canvas.draggingLine = figure;
}
}
//added to fix Draw2D draggable = false bug
this.mouseDownElement = figure;
}
else if (canDragStart === false) {
figure.unselect();
}
}