[fix] SVG export for arrows with labels but no arrowheads (#1229)

This PR fixes a bug where arrow shapes without arrowheads would not mask
their labels when exporting images.
pull/1195/head
Steve Ruiz 2023-05-05 15:17:01 +01:00 zatwierdzone przez GitHub
rodzic dc16ae1b12
commit f315ea2250
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -918,7 +918,7 @@ export class TLArrowUtil extends TLShapeUtil<TLArrowShape> {
const maskId = (shape.id + '_clip').replace(':', '_')
// If we have any arrowheads, then mask the arrowheads
if (as || ae) {
if (as || ae || labelSize) {
// Create mask for arrowheads
// Create defs