Add link to the public libraries (#2469)

This commit is contained in:
Lipis 2020-12-07 19:24:55 +02:00 committed by GitHub
parent dd993adc5c
commit 5e57f408c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 47 deletions

View file

@ -18,6 +18,7 @@ import {
import { AppState } from "../types";
import { fixBindingsAfterDuplication } from "../element/binding";
import { ActionResult } from "./types";
import { GRID_SIZE } from "../constants";
export const actionDuplicateSelection = register({
name: "duplicateSelection",
@ -93,8 +94,8 @@ const duplicateElements = (
groupIdMap,
element,
{
x: element.x + 10,
y: element.y + 10,
x: element.x + GRID_SIZE / 2,
y: element.y + GRID_SIZE / 2,
},
);
oldIdToDuplicatedId.set(element.id, newElement.id);