mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-10 18:10:54 +09:00
hide graph relation labels by zoom threshold
This commit is contained in:
parent
3f41db1ac6
commit
261a4730cb
2 changed files with 2 additions and 2 deletions
2
dist/workers/graph.js
vendored
2
dist/workers/graph.js
vendored
|
@ -377,7 +377,7 @@ drawEdge = (d, arrowWidth, arrowHeight, arrowStart, arrowEnd) => {
|
|||
let offset = arrowStart && arrowEnd ? -k : 0;
|
||||
|
||||
// Relation name
|
||||
if (showName) {
|
||||
if (showName && (transform.k >= transformThreshold)) {
|
||||
ctx.textAlign = 'center';
|
||||
ctx.textBaseline = 'middle';
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ const Card = observer(class Card extends React.Component<Props> {
|
|||
mediaCover (item: any) {
|
||||
const { layout, coverType, coverId, coverX, coverY, coverScale } = item;
|
||||
const cn = [ 'cover', `type${I.CoverType.Upload}` ];
|
||||
|
||||
|
||||
let mc = null;
|
||||
if (coverId && coverType) {
|
||||
mc = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue