thematic-earth
Version:
HTML-based, whole-Earth thematic maps using locally hosted data layers
2 lines • 517 B
JavaScript
/* Copyright (c) 2023 Read Write Tools. Legal use subject to the Thematic Earth Software License Agreement. */
import expect from'../../softlib/expect.js';export default class StringBuilder extends Array{constructor(){super()}push(e){expect(e,'String'),super.push(e)}get itemCount(){return super.length}get utf8Length(){var e=0;for(let t of this)e+=t.length;return e}get byteSize(){var e=new TextEncoder,t=0;for(let r of this)t+=e.encode(r).length;return t}build(){return super.join('')}putline(e){this.push(e+'\n')}}