/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/libs/editor/src/components/TextHighlight/Range.js
15 строк
455 B
Julio Sgarbi
feat: LEAP-452: FE Repo Modernization / Monorepo (#5154)
04 янв 2024, 15:59
Не верифицирован
04 янв 2024, 15:59
ca09b8f
Код
Авторство
О чём код?
/** * Class for text data with 4 params: * start -> int: the index of the character where the range start. * end -> int: the index of the character where the range stop. * text -> string: the highlighted text. * data -> object: extra data (the props of the highlight component) */ export default class Range { constructor(start, end, text, data = {}) { this.start = start; this.end = end; this.text = text; this.data = data; } }