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:
commit
1eb51d1405
84 changed files with 928 additions and 654 deletions
6
dist/workers/graph.js
vendored
6
dist/workers/graph.js
vendored
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue