1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-10 01:51:10 +09:00

Merge branch 'main' of github.com:anyproto/anytype-ts into feature/JS-3184-local-graph

This commit is contained in:
Andrew Simachev 2023-11-10 12:31:07 +01:00
commit 1eb51d1405
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
84 changed files with 928 additions and 654 deletions

View file

@ -481,7 +481,7 @@ drawNode = (d) => {
x = d.x - radius;
y = d.y - radius;
if (isIconCircle(d)) {
if (isLayoutHuman(d)) {
util.circle(d.x, d.y, radius);
} else {
util.roundedRect(d.x - radius, d.y - radius, diameter, diameter, getBorderRadius());
@ -753,10 +753,6 @@ const isLayoutBookmark = (d) => {
return d.layout == ObjectLayout.Bookmark;
};
const isIconCircle = (d) => {
return isLayoutHuman(d);
};
const getNodeById = (id) => {
return nodes.find(d => d.id == id);
};