Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c5d8874c

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

Detecting selection that is not a range

Zobrazit rozdíly:

webapp/utils/selectionUtils.ts
14 14
    if (!selection) {
15 15
        return null;
16 16
    }
17
    if (selection.type.toLowerCase() != 'range') {
18
        return null; // nothing is selected
19
    }
20

  
21
    console.log(selection.type);
17 22

  
18 23
    if (!annotation?.tagStartPositions || !annotation.tagLengths) {
19 24
        // invalid data provided from API

Také k dispozici: Unified diff