use of com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent in project lienzo-core by ahome-it.
the class WiresShapeControlHandleList method resizeMove.
protected void resizeMove(final AbstractNodeDragEvent<?> dragEvent) {
if (m_wires_shape.isResizable()) {
final double[] r = resizeWhileDrag(dragEvent);
m_wires_shape.getHandlerManager().fireEvent(new WiresResizeStepEvent(m_wires_shape, dragEvent, (int) r[0], (int) r[1], r[2], r[3]));
}
}
use of com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent in project kie-wb-common by kiegroup.
the class DecisionServiceSVGShapeViewTest method testResize.
@Test
public void testResize() {
view.getHandlerManager().fireEvent(new WiresResizeStepEvent(view, nodeDragMoveEvent, 0, 0, WIDTH, HEIGHT));
assertThat(getMoveDividerControlHandle().getControl().getX()).isEqualTo(WIDTH / 2);
}
Aggregations