()
| 685 | _cachedHTML: null, |
| 686 | _isFetching: false, |
| 687 | toHTML() { |
| 688 | if (this._cachedHTML) { |
| 689 | return this._cachedHTML |
| 690 | } |
| 691 | fetch('color-names.json').then(r => r.json()).then(names => { |
| 692 | if (!this._cachedHTML) { |
| 693 | let namestr = names.join('\n') |
| 694 | let r = document.createElement('div') |
| 695 | r.innerText = namestr |
| 696 | this._cachedHTML = r.innerHTML |
| 697 | } |
| 698 | if (sampleVar) { |
| 699 | sampleVar.refreshValue(null) |
| 700 | } |
| 701 | }) |
| 702 | |
| 703 | return 'fetching color names...' |
| 704 | }, |
| 705 | }) |
| 706 | |
| 707 | samples.set('────── language/script ──────', null) |
nothing calls this directly
no test coverage detected
searching dependent graphs…