Spaces:
Configuration error
Configuration error
Download web/libs/editor/src/components/TextHighlight/Range.js from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TextHighlight/Range.js
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/libs/editor/src/components/TextHighlight/Range.js
-
curl -L -o Range.js https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TextHighlight/Range.js
455 Bytes
| /** | |
| * 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; | |
| } | |
| } | |