From e446cee9bc9efe0dd3f931c43dca4777b8dca03c Mon Sep 17 00:00:00 2001 From: Ib Green Date: Fri, 10 Nov 2023 05:14:16 -0500 Subject: [PATCH] chore: Add license headers --- modules/terrain/src/index.ts | 3 +++ modules/terrain/src/lib/decode-quantized-mesh.ts | 3 +++ modules/terrain/src/lib/delatin/index.ts | 16 +++------------- modules/terrain/src/lib/helpers/skirt.ts | 3 +++ modules/terrain/src/lib/parse-quantized-mesh.ts | 3 +++ modules/terrain/src/lib/utils/version.ts | 3 +++ modules/terrain/src/quantized-mesh-loader.ts | 3 +++ modules/terrain/src/terrain-loader.ts | 3 +++ .../terrain/src/workers/quantized-mesh-worker.ts | 3 +++ modules/terrain/src/workers/terrain-worker.ts | 3 +++ modules/terrain/test/index.js | 3 +++ modules/terrain/test/lib/helpers/skirt.spec.js | 3 +++ .../terrain/test/quantized-mesh-loader.spec.js | 3 +++ modules/terrain/test/terrain-loader.spec.js | 3 +++ modules/textures/src/basis-loader.ts | 1 + .../textures/src/compressed-texture-loader.ts | 3 +++ .../textures/src/compressed-texture-writer.ts | 3 +++ modules/textures/src/crunch-loader.ts | 3 +++ modules/textures/src/index.ts | 3 +++ modules/textures/src/lib/encoders/encode-ktx.ts | 3 +++ .../lib/encoders/encode-ktx2-basis-texture.ts | 3 +++ .../textures/src/lib/encoders/encode-texture.ts | 3 +++ modules/textures/src/lib/gl-extensions.ts | 3 +++ .../src/lib/parsers/basis-module-loader.ts | 3 +++ .../src/lib/parsers/crunch-module-loader.ts | 3 +++ modules/textures/src/lib/parsers/parse-basis.ts | 3 +++ .../src/lib/parsers/parse-compressed-texture.ts | 3 +++ modules/textures/src/lib/parsers/parse-crunch.ts | 3 +++ modules/textures/src/lib/parsers/parse-dds.ts | 3 +++ modules/textures/src/lib/parsers/parse-ktx.ts | 3 +++ modules/textures/src/lib/parsers/parse-npy.ts | 3 +++ modules/textures/src/lib/parsers/parse-pvr.ts | 3 +++ .../src/lib/texture-api/async-deep-map.ts | 1 + .../textures/src/lib/texture-api/deep-load.ts | 1 + .../textures/src/lib/texture-api/generate-url.ts | 1 + .../src/lib/texture-api/load-image-array.ts | 1 + .../src/lib/texture-api/load-image-cube.ts | 1 + .../textures/src/lib/texture-api/load-image.ts | 3 +++ .../src/lib/utils/extract-mipmap-images.ts | 3 +++ .../textures/src/lib/utils/ktx-format-helper.ts | 3 +++ .../textures/src/lib/utils/texture-formats.ts | 3 +++ modules/textures/src/lib/utils/version.ts | 3 +++ modules/textures/src/npy-loader.ts | 3 +++ modules/textures/src/types.ts | 0 .../textures/src/workers/basis-worker-node.ts | 3 +++ modules/textures/src/workers/basis-worker.ts | 3 +++ .../src/workers/compressed-texture-worker.ts | 3 +++ modules/textures/src/workers/crunch-worker.ts | 3 +++ .../src/workers/ktx2-basis-writer-worker-node.ts | 3 +++ .../src/workers/ktx2-basis-writer-worker.ts | 3 +++ modules/textures/src/workers/npy-worker.ts | 3 +++ modules/textures/test/basis-loader.spec.ts | 3 +++ .../test/compressed-texture-loader.spec.ts | 3 +++ .../test/compressed-texture-writer.spec.ts | 3 +++ modules/textures/test/crunch-loader.spec.ts | 3 +++ modules/textures/test/index.ts | 3 +++ .../ktx2-basis-universal-texture-writer.spec.ts | 3 +++ .../textures/test/lib/parsers/parse-dds.spec.ts | 3 +++ .../textures/test/lib/parsers/parse-pvr.spec.ts | 3 +++ modules/textures/test/npy-loader.spec.ts | 3 +++ .../test/test-utils/check-compressed-texture.ts | 3 +++ .../test/texture-api/async-deep-map.spec.ts | 3 +++ .../textures/test/texture-api/load-image.spec.ts | 3 +++ modules/textures/test/utils/format-utils.spec.ts | 3 +++ modules/video/src/gif-builder.ts | 3 +++ modules/video/src/index.ts | 3 +++ modules/video/src/lib/gifshot/gifshot-loader.ts | 3 +++ modules/video/src/lib/gifshot/gifshot.ts | 3 +++ modules/video/src/lib/parsers/parse-video.ts | 3 +++ modules/video/src/lib/utils/assert.ts | 3 +++ modules/video/src/video-loader.ts | 3 +++ modules/wkt/src/lib/utils/base64-encoder.ts | 3 +++ modules/wkt/src/lib/utils/binary-reader.ts | 3 +++ modules/wkt/src/lib/utils/hex-transcoder.ts | 3 +++ modules/wkt/src/lib/utils/version.ts | 3 +++ modules/wkt/test/hex-wkb-loader.spec.ts | 3 +++ modules/wkt/test/twkb-loader.spec.ts | 3 +++ modules/wkt/test/twkb-writer.spec.ts | 3 +++ modules/wkt/test/utils/parse-test-cases.ts | 3 +++ modules/wkt/test/wkb-loader.spec.ts | 3 +++ modules/wkt/test/wkb-writer.spec.ts | 3 +++ modules/wkt/test/wkt-loader.spec.ts | 3 +++ modules/wkt/test/wkt-writer.spec.ts | 3 +++ modules/worker-utils/src/index.ts | 3 +++ .../src/lib/async-queue/async-queue.ts | 3 +++ modules/worker-utils/src/lib/env-utils/assert.ts | 3 +++ .../worker-utils/src/lib/env-utils/globals.ts | 3 +++ .../worker-utils/src/lib/env-utils/version.ts | 3 +++ .../src/lib/library-utils/library-utils.ts | 3 +++ .../src/lib/process-utils/child-process-proxy.ts | 3 +++ .../src/lib/process-utils/process-utils.ts | 3 +++ .../src/lib/worker-api/create-worker.ts | 3 +++ .../src/lib/worker-api/process-on-worker.ts | 3 +++ .../lib/worker-api/validate-worker-version.ts | 3 +++ .../src/lib/worker-farm/worker-farm.ts | 3 +++ .../src/lib/worker-farm/worker-job.ts | 3 +++ .../src/lib/worker-farm/worker-pool.ts | 3 +++ .../lib/worker-utils/get-loadable-worker-url.ts | 3 +++ .../src/lib/worker-utils/get-transfer-list.ts | 3 +++ .../remove-nontransferable-options.ts | 3 +++ modules/worker-utils/src/types.ts | 3 +++ modules/worker-utils/src/workers/null-worker.ts | 3 +++ modules/worker-utils/test/index.ts | 3 +++ .../test/lib/async-queue/async-queue.spec.ts | 3 +++ .../test/lib/library-utils/library-utils.spec.ts | 3 +++ .../test/lib/library-utils/require-utils.spec.ts | 3 +++ .../test/lib/worker-api/get-worker-url.spec.ts | 3 +++ .../lib/worker-api/process-on-worker.spec.ts | 3 +++ .../worker-api/validate-worker-version.spec.ts | 3 +++ .../test/lib/worker-farm/worker-pool.spec.ts | 3 +++ .../test/lib/worker-farm/worker-thread.spec.ts | 3 +++ .../worker-utils/get-loadable-worker-url.spec.ts | 3 +++ .../lib/worker-utils/get-transfer-list.spec.ts | 3 +++ .../xml/src/lib/parsers/streaming-xml-parser.ts | 3 +++ modules/xml/src/lib/xml-utils/xml-utils.ts | 3 +++ modules/xml/src/xml-loader.ts | 3 +++ modules/zarr/src/index.ts | 3 +++ modules/zarr/src/lib/load-zarr.ts | 3 +++ modules/zarr/src/lib/utils.ts | 3 +++ modules/zarr/src/lib/zarr-pixel-source.ts | 3 +++ modules/zarr/src/types.ts | 3 +++ modules/zip/src/filesystems/zip-filesystem.ts | 3 +++ modules/zip/src/hash-file-utility.ts | 3 +++ modules/zip/src/lib/tar/header.ts | 3 +++ modules/zip/src/lib/tar/tar.ts | 3 +++ modules/zip/src/lib/tar/types.ts | 3 +++ modules/zip/src/lib/tar/utils.ts | 3 +++ modules/zip/src/parse-zip/cd-file-header.ts | 3 +++ .../src/parse-zip/end-of-central-directory.ts | 3 +++ modules/zip/src/parse-zip/local-file-header.ts | 3 +++ modules/zip/src/parse-zip/search-from-the-end.ts | 3 +++ modules/zip/src/tar-builder.ts | 3 +++ .../zip/test/filesystems/zip-filesystem.spec.ts | 3 +++ modules/zip/test/index.ts | 3 +++ modules/zip/test/lib/test-cases.js | 3 +++ modules/zip/test/tar-builder.spec.ts | 3 +++ .../zip/test/zip-utils/cd-file-header.spec.ts | 3 +++ .../zip-utils/end-of-central-directory.spec.ts | 3 +++ .../zip/test/zip-utils/local-file-header.spec.ts | 3 +++ .../test/zip-utils/search-from-the-end.spec.ts | 3 +++ modules/zip/test/zip-writer-loader.spec.ts | 3 +++ 141 files changed, 408 insertions(+), 13 deletions(-) delete mode 100644 modules/textures/src/types.ts diff --git a/modules/terrain/src/index.ts b/modules/terrain/src/index.ts index b1d2cef76e..c2af058000 100644 --- a/modules/terrain/src/index.ts +++ b/modules/terrain/src/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {LoaderContext, LoaderWithParser} from '@loaders.gl/loader-utils'; import {parseFromContext} from '@loaders.gl/loader-utils'; import {parseQuantizedMesh} from './lib/parse-quantized-mesh'; diff --git a/modules/terrain/src/lib/decode-quantized-mesh.ts b/modules/terrain/src/lib/decode-quantized-mesh.ts index 7cdb68862a..7c90ead810 100644 --- a/modules/terrain/src/lib/decode-quantized-mesh.ts +++ b/modules/terrain/src/lib/decode-quantized-mesh.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Copyright (C) 2018-2019 HERE Europe B.V. // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/modules/terrain/src/lib/delatin/index.ts b/modules/terrain/src/lib/delatin/index.ts index 748dfc91b1..60469122c2 100644 --- a/modules/terrain/src/lib/delatin/index.ts +++ b/modules/terrain/src/lib/delatin/index.ts @@ -1,19 +1,9 @@ -// ISC License +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors +// ISC License // Copyright(c) 2019, Michael Fogleman, Vladimir Agafonkin -// Permission to use, copy, modify, and / or distribute this software for any purpose -// with or without fee is hereby granted, provided that the above copyright notice -// and this permission notice appear in all copies. - -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -// FITNESS.IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -// OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -// THIS SOFTWARE. - // @ts-nocheck /* eslint-disable complexity, max-params, max-statements, max-depth, no-constant-condition */ diff --git a/modules/terrain/src/lib/helpers/skirt.ts b/modules/terrain/src/lib/helpers/skirt.ts index cac83f458f..c6d58f5234 100644 --- a/modules/terrain/src/lib/helpers/skirt.ts +++ b/modules/terrain/src/lib/helpers/skirt.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {concatenateTypedArrays} from '@loaders.gl/loader-utils'; export type EdgeIndices = { diff --git a/modules/terrain/src/lib/parse-quantized-mesh.ts b/modules/terrain/src/lib/parse-quantized-mesh.ts index e53cd6a6f8..be907b8ac2 100644 --- a/modules/terrain/src/lib/parse-quantized-mesh.ts +++ b/modules/terrain/src/lib/parse-quantized-mesh.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {Mesh, getMeshBoundingBox} from '@loaders.gl/schema'; import decode, {DECODING_STEPS} from './decode-quantized-mesh'; import {addSkirt} from './helpers/skirt'; diff --git a/modules/terrain/src/lib/utils/version.ts b/modules/terrain/src/lib/utils/version.ts index 73152aef19..6cf0b89c0c 100644 --- a/modules/terrain/src/lib/utils/version.ts +++ b/modules/terrain/src/lib/utils/version.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Version constant cannot be imported, it needs to correspond to the build version of **this** module. // __VERSION__ is injected by babel-plugin-version-inline // @ts-ignore TS2304: Cannot find name '__VERSION__'. diff --git a/modules/terrain/src/quantized-mesh-loader.ts b/modules/terrain/src/quantized-mesh-loader.ts index 01a4fae37d..e56bc34f51 100644 --- a/modules/terrain/src/quantized-mesh-loader.ts +++ b/modules/terrain/src/quantized-mesh-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {Loader, LoaderOptions} from '@loaders.gl/loader-utils'; import {VERSION} from './lib/utils/version'; diff --git a/modules/terrain/src/terrain-loader.ts b/modules/terrain/src/terrain-loader.ts index a05b47d61e..75bfbbf29f 100644 --- a/modules/terrain/src/terrain-loader.ts +++ b/modules/terrain/src/terrain-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {Loader} from '@loaders.gl/loader-utils'; import type {ImageLoaderOptions} from '@loaders.gl/images'; import {VERSION} from './lib/utils/version'; diff --git a/modules/terrain/src/workers/quantized-mesh-worker.ts b/modules/terrain/src/workers/quantized-mesh-worker.ts index a5c8bbf5de..5362bb22d3 100644 --- a/modules/terrain/src/workers/quantized-mesh-worker.ts +++ b/modules/terrain/src/workers/quantized-mesh-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createLoaderWorker} from '@loaders.gl/loader-utils'; import {QuantizedMeshLoader} from '../index'; diff --git a/modules/terrain/src/workers/terrain-worker.ts b/modules/terrain/src/workers/terrain-worker.ts index 404aabe3c3..2465a91d4d 100644 --- a/modules/terrain/src/workers/terrain-worker.ts +++ b/modules/terrain/src/workers/terrain-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createLoaderWorker} from '@loaders.gl/loader-utils'; import {TerrainLoader} from '../index'; diff --git a/modules/terrain/test/index.js b/modules/terrain/test/index.js index 1fccfd1c2c..915345ebd2 100644 --- a/modules/terrain/test/index.js +++ b/modules/terrain/test/index.js @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import './quantized-mesh-loader.spec'; import './terrain-loader.spec'; diff --git a/modules/terrain/test/lib/helpers/skirt.spec.js b/modules/terrain/test/lib/helpers/skirt.spec.js index a8eb07490f..3ac97d1dc5 100644 --- a/modules/terrain/test/lib/helpers/skirt.spec.js +++ b/modules/terrain/test/lib/helpers/skirt.spec.js @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {addSkirt} from '../../../src/lib/helpers/skirt'; diff --git a/modules/terrain/test/quantized-mesh-loader.spec.js b/modules/terrain/test/quantized-mesh-loader.spec.js index 928c35eb64..068ef9ea99 100644 --- a/modules/terrain/test/quantized-mesh-loader.spec.js +++ b/modules/terrain/test/quantized-mesh-loader.spec.js @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable max-len */ import test from 'tape-promise/tape'; import {validateLoader, validateMeshCategoryData} from 'test/common/conformance'; diff --git a/modules/terrain/test/terrain-loader.spec.js b/modules/terrain/test/terrain-loader.spec.js index 1b64b9109b..23ab2c4945 100644 --- a/modules/terrain/test/terrain-loader.spec.js +++ b/modules/terrain/test/terrain-loader.spec.js @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable max-len */ import test from 'tape-promise/tape'; import {validateLoader, validateMeshCategoryData} from 'test/common/conformance'; diff --git a/modules/textures/src/basis-loader.ts b/modules/textures/src/basis-loader.ts index 1762087e82..cbfa67d3bb 100644 --- a/modules/textures/src/basis-loader.ts +++ b/modules/textures/src/basis-loader.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + import type {Loader, LoaderOptions, LoaderWithParser} from '@loaders.gl/loader-utils'; import type {TextureLevel} from '@loaders.gl/schema'; import {VERSION} from './lib/utils/version'; diff --git a/modules/textures/src/compressed-texture-loader.ts b/modules/textures/src/compressed-texture-loader.ts index 9189e51b9a..62ab215e6a 100644 --- a/modules/textures/src/compressed-texture-loader.ts +++ b/modules/textures/src/compressed-texture-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils'; import {VERSION} from './lib/utils/version'; import {parseCompressedTexture} from './lib/parsers/parse-compressed-texture'; diff --git a/modules/textures/src/compressed-texture-writer.ts b/modules/textures/src/compressed-texture-writer.ts index 0fe37a7f80..94f1de98f5 100644 --- a/modules/textures/src/compressed-texture-writer.ts +++ b/modules/textures/src/compressed-texture-writer.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {WriterWithEncoder, WriterOptions} from '@loaders.gl/loader-utils'; import {VERSION} from './lib/utils/version'; import {encodeImageURLToCompressedTextureURL} from './lib/encoders/encode-texture'; diff --git a/modules/textures/src/crunch-loader.ts b/modules/textures/src/crunch-loader.ts index f63a4d2002..01b6d19907 100644 --- a/modules/textures/src/crunch-loader.ts +++ b/modules/textures/src/crunch-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {Loader, LoaderOptions} from '@loaders.gl/loader-utils'; import type {TextureLevel} from '@loaders.gl/schema'; import {VERSION} from './lib/utils/version'; diff --git a/modules/textures/src/index.ts b/modules/textures/src/index.ts index 15f0e7b954..fc69b34ec8 100644 --- a/modules/textures/src/index.ts +++ b/modules/textures/src/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {VERSION} from './lib/utils/version'; // Types diff --git a/modules/textures/src/lib/encoders/encode-ktx.ts b/modules/textures/src/lib/encoders/encode-ktx.ts index 3d149c15a8..81250188e8 100644 --- a/modules/textures/src/lib/encoders/encode-ktx.ts +++ b/modules/textures/src/lib/encoders/encode-ktx.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {read} from 'ktx-parse'; export function encodeKTX(texture) { diff --git a/modules/textures/src/lib/encoders/encode-ktx2-basis-texture.ts b/modules/textures/src/lib/encoders/encode-ktx2-basis-texture.ts index ba6ad5d07b..de56aa8e92 100644 --- a/modules/textures/src/lib/encoders/encode-ktx2-basis-texture.ts +++ b/modules/textures/src/lib/encoders/encode-ktx2-basis-texture.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {ImageDataType} from '@loaders.gl/images'; import {loadBasisEncoderModule} from '../parsers/basis-module-loader'; diff --git a/modules/textures/src/lib/encoders/encode-texture.ts b/modules/textures/src/lib/encoders/encode-texture.ts index 8b3e012405..927d661489 100644 --- a/modules/textures/src/lib/encoders/encode-texture.ts +++ b/modules/textures/src/lib/encoders/encode-texture.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {ChildProcessProxy} from '@loaders.gl/worker-utils'; import {CompressedTextureWriterOptions} from '../../compressed-texture-writer'; diff --git a/modules/textures/src/lib/gl-extensions.ts b/modules/textures/src/lib/gl-extensions.ts index 07382e8e94..b256b0879c 100644 --- a/modules/textures/src/lib/gl-extensions.ts +++ b/modules/textures/src/lib/gl-extensions.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable camelcase */ export const GL_EXTENSIONS_CONSTANTS = { // WEBGL_compressed_texture_s3tc diff --git a/modules/textures/src/lib/parsers/basis-module-loader.ts b/modules/textures/src/lib/parsers/basis-module-loader.ts index a8b4bc028c..704b9da1b0 100644 --- a/modules/textures/src/lib/parsers/basis-module-loader.ts +++ b/modules/textures/src/lib/parsers/basis-module-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {loadLibrary} from '@loaders.gl/worker-utils'; export const BASIS_EXTERNAL_LIBRARIES = { diff --git a/modules/textures/src/lib/parsers/crunch-module-loader.ts b/modules/textures/src/lib/parsers/crunch-module-loader.ts index ef383a3c72..330346367a 100644 --- a/modules/textures/src/lib/parsers/crunch-module-loader.ts +++ b/modules/textures/src/lib/parsers/crunch-module-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // @ts-nocheck import {loadLibrary} from '@loaders.gl/worker-utils'; diff --git a/modules/textures/src/lib/parsers/parse-basis.ts b/modules/textures/src/lib/parsers/parse-basis.ts index 4bc8f3ff64..391a3fac4b 100644 --- a/modules/textures/src/lib/parsers/parse-basis.ts +++ b/modules/textures/src/lib/parsers/parse-basis.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable indent */ import type {TextureLevel} from '@loaders.gl/schema'; import {loadBasisEncoderModule, loadBasisTranscoderModule} from './basis-module-loader'; diff --git a/modules/textures/src/lib/parsers/parse-compressed-texture.ts b/modules/textures/src/lib/parsers/parse-compressed-texture.ts index 7ce7f8fc93..88822bf0ab 100644 --- a/modules/textures/src/lib/parsers/parse-compressed-texture.ts +++ b/modules/textures/src/lib/parsers/parse-compressed-texture.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {TextureLevel} from '@loaders.gl/schema'; import {isKTX, parseKTX} from './parse-ktx'; import {isDDS, parseDDS} from './parse-dds'; diff --git a/modules/textures/src/lib/parsers/parse-crunch.ts b/modules/textures/src/lib/parsers/parse-crunch.ts index 714f947721..7bca6c4df3 100644 --- a/modules/textures/src/lib/parsers/parse-crunch.ts +++ b/modules/textures/src/lib/parsers/parse-crunch.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {TextureLevel} from '@loaders.gl/schema'; import {loadCrunchModule} from './crunch-module-loader'; import {GL_EXTENSIONS_CONSTANTS} from '../gl-extensions'; diff --git a/modules/textures/src/lib/parsers/parse-dds.ts b/modules/textures/src/lib/parsers/parse-dds.ts index 2f6beac577..0fdeeac665 100644 --- a/modules/textures/src/lib/parsers/parse-dds.ts +++ b/modules/textures/src/lib/parsers/parse-dds.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {TextureLevel} from '@loaders.gl/schema'; import {assert} from '@loaders.gl/loader-utils'; import {GL_EXTENSIONS_CONSTANTS} from '../gl-extensions'; diff --git a/modules/textures/src/lib/parsers/parse-ktx.ts b/modules/textures/src/lib/parsers/parse-ktx.ts index 3a83b41c47..c47efd2df6 100644 --- a/modules/textures/src/lib/parsers/parse-ktx.ts +++ b/modules/textures/src/lib/parsers/parse-ktx.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {TextureLevel} from '@loaders.gl/schema'; import {read} from 'ktx-parse'; import {extractMipmapImages} from '../utils/extract-mipmap-images'; diff --git a/modules/textures/src/lib/parsers/parse-npy.ts b/modules/textures/src/lib/parsers/parse-npy.ts index 2a0a74974b..3ec947693f 100644 --- a/modules/textures/src/lib/parsers/parse-npy.ts +++ b/modules/textures/src/lib/parsers/parse-npy.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // import type {TextureLevel} from '@loaders.gl/schema'; import {TypedArray} from '@math.gl/types'; // import {TypedArrayConstructor} from "@math.gl/types"; diff --git a/modules/textures/src/lib/parsers/parse-pvr.ts b/modules/textures/src/lib/parsers/parse-pvr.ts index b3d379f5aa..f34f2b517d 100644 --- a/modules/textures/src/lib/parsers/parse-pvr.ts +++ b/modules/textures/src/lib/parsers/parse-pvr.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable camelcase */ // Forked from PicoGL: https://github.com/tsherif/picogl.js/blob/master/examples/utils/utils.js // Copyright (c) 2017 Tarek Sherif, The MIT License (MIT) diff --git a/modules/textures/src/lib/texture-api/async-deep-map.ts b/modules/textures/src/lib/texture-api/async-deep-map.ts index 9f8961489a..1b29e92966 100644 --- a/modules/textures/src/lib/texture-api/async-deep-map.ts +++ b/modules/textures/src/lib/texture-api/async-deep-map.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + /* Asynchronously maps a deep structure of values (e.g. objects and arrays of urls). diff --git a/modules/textures/src/lib/texture-api/deep-load.ts b/modules/textures/src/lib/texture-api/deep-load.ts index 81a351b659..c58cd0f833 100644 --- a/modules/textures/src/lib/texture-api/deep-load.ts +++ b/modules/textures/src/lib/texture-api/deep-load.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + import {asyncDeepMap} from './async-deep-map'; export type LoadOptions = Record; diff --git a/modules/textures/src/lib/texture-api/generate-url.ts b/modules/textures/src/lib/texture-api/generate-url.ts index cfb1b88ac7..445bf953b7 100644 --- a/modules/textures/src/lib/texture-api/generate-url.ts +++ b/modules/textures/src/lib/texture-api/generate-url.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + import {resolvePath} from '@loaders.gl/loader-utils'; import type {GetUrl, UrlOptions} from './texture-api-types'; diff --git a/modules/textures/src/lib/texture-api/load-image-array.ts b/modules/textures/src/lib/texture-api/load-image-array.ts index e2e681d33b..4d73b42815 100644 --- a/modules/textures/src/lib/texture-api/load-image-array.ts +++ b/modules/textures/src/lib/texture-api/load-image-array.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + import {ImageLoader} from '@loaders.gl/images'; import type {GetUrl} from './texture-api-types'; import {getImageUrls} from './load-image'; diff --git a/modules/textures/src/lib/texture-api/load-image-cube.ts b/modules/textures/src/lib/texture-api/load-image-cube.ts index 7d71e57154..4fc8694de0 100644 --- a/modules/textures/src/lib/texture-api/load-image-cube.ts +++ b/modules/textures/src/lib/texture-api/load-image-cube.ts @@ -1,5 +1,6 @@ // loaders.gl, MIT license // Copyright (c) vis.gl contributors + import {ImageLoader} from '@loaders.gl/images'; import type {GetUrl, UrlOptions} from './texture-api-types'; import {getImageUrls} from './load-image'; diff --git a/modules/textures/src/lib/texture-api/load-image.ts b/modules/textures/src/lib/texture-api/load-image.ts index 56c8e41cee..1f4649f032 100644 --- a/modules/textures/src/lib/texture-api/load-image.ts +++ b/modules/textures/src/lib/texture-api/load-image.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {assert} from '@loaders.gl/loader-utils'; import {ImageLoader, getImageSize} from '@loaders.gl/images'; import type {GetUrl, UrlOptions} from './texture-api-types'; diff --git a/modules/textures/src/lib/utils/extract-mipmap-images.ts b/modules/textures/src/lib/utils/extract-mipmap-images.ts index cb0ccb30f5..a06165a66b 100644 --- a/modules/textures/src/lib/utils/extract-mipmap-images.ts +++ b/modules/textures/src/lib/utils/extract-mipmap-images.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {TextureLevel} from '@loaders.gl/schema'; export type CompressedTextureExtractOptions = { diff --git a/modules/textures/src/lib/utils/ktx-format-helper.ts b/modules/textures/src/lib/utils/ktx-format-helper.ts index 1f56b0709f..02f665ae6d 100644 --- a/modules/textures/src/lib/utils/ktx-format-helper.ts +++ b/modules/textures/src/lib/utils/ktx-format-helper.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {GL_EXTENSIONS_CONSTANTS} from '../gl-extensions'; const VULKAN_TO_WEBGL_FORMAT_MAP: Record = { diff --git a/modules/textures/src/lib/utils/texture-formats.ts b/modules/textures/src/lib/utils/texture-formats.ts index e0e5973398..f121cd5123 100644 --- a/modules/textures/src/lib/utils/texture-formats.ts +++ b/modules/textures/src/lib/utils/texture-formats.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {GPUTextureFormat} from '@loaders.gl/schema'; const BROWSER_PREFIXES = ['', 'WEBKIT_', 'MOZ_']; diff --git a/modules/textures/src/lib/utils/version.ts b/modules/textures/src/lib/utils/version.ts index 73152aef19..6cf0b89c0c 100644 --- a/modules/textures/src/lib/utils/version.ts +++ b/modules/textures/src/lib/utils/version.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Version constant cannot be imported, it needs to correspond to the build version of **this** module. // __VERSION__ is injected by babel-plugin-version-inline // @ts-ignore TS2304: Cannot find name '__VERSION__'. diff --git a/modules/textures/src/npy-loader.ts b/modules/textures/src/npy-loader.ts index a3f6eb8eba..84456bc2cc 100644 --- a/modules/textures/src/npy-loader.ts +++ b/modules/textures/src/npy-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {Loader, LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils'; import {VERSION} from './lib/utils/version'; import {parseNPY, NPYTile} from './lib/parsers/parse-npy'; diff --git a/modules/textures/src/types.ts b/modules/textures/src/types.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/modules/textures/src/workers/basis-worker-node.ts b/modules/textures/src/workers/basis-worker-node.ts index 7840559a7e..82968293d9 100644 --- a/modules/textures/src/workers/basis-worker-node.ts +++ b/modules/textures/src/workers/basis-worker-node.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Polyfills increases the bundle size significantly. Use it for NodeJS worker only import '@loaders.gl/polyfills'; import {createLoaderWorker} from '@loaders.gl/loader-utils'; diff --git a/modules/textures/src/workers/basis-worker.ts b/modules/textures/src/workers/basis-worker.ts index f0f0ccb13d..f371bc1f5f 100644 --- a/modules/textures/src/workers/basis-worker.ts +++ b/modules/textures/src/workers/basis-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createLoaderWorker} from '@loaders.gl/loader-utils'; import {BasisLoader} from '../basis-loader'; diff --git a/modules/textures/src/workers/compressed-texture-worker.ts b/modules/textures/src/workers/compressed-texture-worker.ts index a4830f5385..492f185e55 100644 --- a/modules/textures/src/workers/compressed-texture-worker.ts +++ b/modules/textures/src/workers/compressed-texture-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createLoaderWorker} from '@loaders.gl/loader-utils'; import {CompressedTextureLoader} from '../compressed-texture-loader'; diff --git a/modules/textures/src/workers/crunch-worker.ts b/modules/textures/src/workers/crunch-worker.ts index 6d15b2a8c0..4316d7e2d0 100644 --- a/modules/textures/src/workers/crunch-worker.ts +++ b/modules/textures/src/workers/crunch-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createLoaderWorker} from '@loaders.gl/loader-utils'; import {CrunchLoader} from '../crunch-loader'; import {parseCrunch} from '../lib/parsers/parse-crunch'; diff --git a/modules/textures/src/workers/ktx2-basis-writer-worker-node.ts b/modules/textures/src/workers/ktx2-basis-writer-worker-node.ts index 783da122c4..bab2ba98f4 100644 --- a/modules/textures/src/workers/ktx2-basis-writer-worker-node.ts +++ b/modules/textures/src/workers/ktx2-basis-writer-worker-node.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Polyfills increases the bundle size significantly. Use it for NodeJS worker only import '@loaders.gl/polyfills'; import {WorkerBody, WorkerMessagePayload} from '@loaders.gl/worker-utils'; diff --git a/modules/textures/src/workers/ktx2-basis-writer-worker.ts b/modules/textures/src/workers/ktx2-basis-writer-worker.ts index c219f5d873..270043957a 100644 --- a/modules/textures/src/workers/ktx2-basis-writer-worker.ts +++ b/modules/textures/src/workers/ktx2-basis-writer-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {WorkerBody, WorkerMessagePayload} from '@loaders.gl/worker-utils'; import {KTX2BasisWriter, KTX2BasisWriterOptions} from '../ktx2-basis-writer'; diff --git a/modules/textures/src/workers/npy-worker.ts b/modules/textures/src/workers/npy-worker.ts index 8d522dc4f8..af4c1c6ed8 100644 --- a/modules/textures/src/workers/npy-worker.ts +++ b/modules/textures/src/workers/npy-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {NPYLoader} from '../npy-loader'; import {createLoaderWorker} from '@loaders.gl/loader-utils'; diff --git a/modules/textures/test/basis-loader.spec.ts b/modules/textures/test/basis-loader.spec.ts index 2fc89f2cb0..da2e60bcc4 100644 --- a/modules/textures/test/basis-loader.spec.ts +++ b/modules/textures/test/basis-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {BasisLoader} from '@loaders.gl/textures'; diff --git a/modules/textures/test/compressed-texture-loader.spec.ts b/modules/textures/test/compressed-texture-loader.spec.ts index 0f57c1b368..6eccefa5ee 100644 --- a/modules/textures/test/compressed-texture-loader.spec.ts +++ b/modules/textures/test/compressed-texture-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {CompressedTextureLoader} from '@loaders.gl/textures'; diff --git a/modules/textures/test/compressed-texture-writer.spec.ts b/modules/textures/test/compressed-texture-writer.spec.ts index 4bd77d56f7..35c44df32c 100644 --- a/modules/textures/test/compressed-texture-writer.spec.ts +++ b/modules/textures/test/compressed-texture-writer.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {encodeURLtoURL, isBrowser} from '@loaders.gl/core'; import {CompressedTextureWriter} from '@loaders.gl/textures'; diff --git a/modules/textures/test/crunch-loader.spec.ts b/modules/textures/test/crunch-loader.spec.ts index e09f22b1f8..f498f97f90 100644 --- a/modules/textures/test/crunch-loader.spec.ts +++ b/modules/textures/test/crunch-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {isBrowser} from '@loaders.gl/core'; diff --git a/modules/textures/test/index.ts b/modules/textures/test/index.ts index 184497b399..f64ecfcc94 100644 --- a/modules/textures/test/index.ts +++ b/modules/textures/test/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import './utils/format-utils.spec'; import './texture-api/async-deep-map.spec'; diff --git a/modules/textures/test/ktx2-basis-universal-texture-writer.spec.ts b/modules/textures/test/ktx2-basis-universal-texture-writer.spec.ts index fbb51cfb31..6b1bd0c05d 100644 --- a/modules/textures/test/ktx2-basis-universal-texture-writer.spec.ts +++ b/modules/textures/test/ktx2-basis-universal-texture-writer.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {load, encode} from '@loaders.gl/core'; import {ImageLoader} from '@loaders.gl/images'; diff --git a/modules/textures/test/lib/parsers/parse-dds.spec.ts b/modules/textures/test/lib/parsers/parse-dds.spec.ts index 2c5763ee5e..6c1885cd3e 100644 --- a/modules/textures/test/lib/parsers/parse-dds.spec.ts +++ b/modules/textures/test/lib/parsers/parse-dds.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile} from '@loaders.gl/core'; import {parseDDS} from '../../../src/lib/parsers/parse-dds'; diff --git a/modules/textures/test/lib/parsers/parse-pvr.spec.ts b/modules/textures/test/lib/parsers/parse-pvr.spec.ts index 05256291d0..01609d821d 100644 --- a/modules/textures/test/lib/parsers/parse-pvr.spec.ts +++ b/modules/textures/test/lib/parsers/parse-pvr.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile} from '@loaders.gl/core'; import {parsePVR} from '../../../src/lib/parsers/parse-pvr'; diff --git a/modules/textures/test/npy-loader.spec.ts b/modules/textures/test/npy-loader.spec.ts index 0ba0c9aa97..1309ecfa44 100644 --- a/modules/textures/test/npy-loader.spec.ts +++ b/modules/textures/test/npy-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {validateLoader} from 'test/common/conformance'; diff --git a/modules/textures/test/test-utils/check-compressed-texture.ts b/modules/textures/test/test-utils/check-compressed-texture.ts index c6a1ec9248..6acb0c900f 100644 --- a/modules/textures/test/test-utils/check-compressed-texture.ts +++ b/modules/textures/test/test-utils/check-compressed-texture.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + export function checkCompressedTexture(t, imageData, testCase) { t.ok(imageData instanceof Array); t.ok(imageData.length > 0); diff --git a/modules/textures/test/texture-api/async-deep-map.spec.ts b/modules/textures/test/texture-api/async-deep-map.spec.ts index 600b997be0..5b21dc074d 100644 --- a/modules/textures/test/texture-api/async-deep-map.spec.ts +++ b/modules/textures/test/texture-api/async-deep-map.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {asyncDeepMap} from '../../src/lib/texture-api/async-deep-map'; diff --git a/modules/textures/test/texture-api/load-image.spec.ts b/modules/textures/test/texture-api/load-image.spec.ts index 4842ae98aa..ba1129bb97 100644 --- a/modules/textures/test/texture-api/load-image.spec.ts +++ b/modules/textures/test/texture-api/load-image.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {loadImageTexture, loadImageTextureArray, loadImageTextureCube} from '@loaders.gl/textures'; import {isImage} from '@loaders.gl/images'; diff --git a/modules/textures/test/utils/format-utils.spec.ts b/modules/textures/test/utils/format-utils.spec.ts index 3718e7c50e..d571667d2f 100644 --- a/modules/textures/test/utils/format-utils.spec.ts +++ b/modules/textures/test/utils/format-utils.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {getSupportedGPUTextureFormats} from '@loaders.gl/textures'; diff --git a/modules/video/src/gif-builder.ts b/modules/video/src/gif-builder.ts index 593b88ec87..8f07a3bd4e 100644 --- a/modules/video/src/gif-builder.ts +++ b/modules/video/src/gif-builder.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // A GIFBuilder based on the gifshot module // @ts-nocheck import {assert} from './lib/utils/assert'; diff --git a/modules/video/src/index.ts b/modules/video/src/index.ts index 0ccce682ce..75edd2b095 100644 --- a/modules/video/src/index.ts +++ b/modules/video/src/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + export {VideoLoader} from './video-loader'; export {default as GIFBuilder} from './gif-builder'; diff --git a/modules/video/src/lib/gifshot/gifshot-loader.ts b/modules/video/src/lib/gifshot/gifshot-loader.ts index 9f272414c6..14086eb7f6 100644 --- a/modules/video/src/lib/gifshot/gifshot-loader.ts +++ b/modules/video/src/lib/gifshot/gifshot-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // @ts-nocheck import {loadLibrary} from '@loaders.gl/worker-utils'; diff --git a/modules/video/src/lib/gifshot/gifshot.ts b/modules/video/src/lib/gifshot/gifshot.ts index c4d02633a2..bf929c7d41 100644 --- a/modules/video/src/lib/gifshot/gifshot.ts +++ b/modules/video/src/lib/gifshot/gifshot.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // @ts-nocheck /* eslint-disable */ diff --git a/modules/video/src/lib/parsers/parse-video.ts b/modules/video/src/lib/parsers/parse-video.ts index 140263c893..b8ea9b2788 100644 --- a/modules/video/src/lib/parsers/parse-video.ts +++ b/modules/video/src/lib/parsers/parse-video.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Parse to platform defined video type (HTMLVideoElement in browser) export default async function parseVideo(arrayBuffer: ArrayBuffer): Promise { // TODO It is probably somewhat inefficent to convert a File/Blob to ArrayBuffer and back diff --git a/modules/video/src/lib/utils/assert.ts b/modules/video/src/lib/utils/assert.ts index 43d3807d34..20c841b074 100644 --- a/modules/video/src/lib/utils/assert.ts +++ b/modules/video/src/lib/utils/assert.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + export function assert(condition: unknown, message: string): void { if (!condition) { throw new Error(message); diff --git a/modules/video/src/video-loader.ts b/modules/video/src/video-loader.ts index ff4ca7df6b..1dc74d1b6f 100644 --- a/modules/video/src/video-loader.ts +++ b/modules/video/src/video-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils'; import parseVideo from './lib/parsers/parse-video'; diff --git a/modules/wkt/src/lib/utils/base64-encoder.ts b/modules/wkt/src/lib/utils/base64-encoder.ts index 18f859051e..42a0d7d738 100644 --- a/modules/wkt/src/lib/utils/base64-encoder.ts +++ b/modules/wkt/src/lib/utils/base64-encoder.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* const binary_to_b64_map = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', diff --git a/modules/wkt/src/lib/utils/binary-reader.ts b/modules/wkt/src/lib/utils/binary-reader.ts index 94d1a23582..b99acaacc3 100644 --- a/modules/wkt/src/lib/utils/binary-reader.ts +++ b/modules/wkt/src/lib/utils/binary-reader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /** A DataView that tracks byte offset when reading. */ export class BinaryReader { arrayBuffer: ArrayBuffer; diff --git a/modules/wkt/src/lib/utils/hex-transcoder.ts b/modules/wkt/src/lib/utils/hex-transcoder.ts index 5eeb82eca1..4d7aa27fe1 100644 --- a/modules/wkt/src/lib/utils/hex-transcoder.ts +++ b/modules/wkt/src/lib/utils/hex-transcoder.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Forked from https://github.com/jessetane/hex-transcoder under MIT license const alphabet = '0123456789abcdef'; diff --git a/modules/wkt/src/lib/utils/version.ts b/modules/wkt/src/lib/utils/version.ts index 73152aef19..6cf0b89c0c 100644 --- a/modules/wkt/src/lib/utils/version.ts +++ b/modules/wkt/src/lib/utils/version.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Version constant cannot be imported, it needs to correspond to the build version of **this** module. // __VERSION__ is injected by babel-plugin-version-inline // @ts-ignore TS2304: Cannot find name '__VERSION__'. diff --git a/modules/wkt/test/hex-wkb-loader.spec.ts b/modules/wkt/test/hex-wkb-loader.spec.ts index 079aff6a56..90a37ee66b 100644 --- a/modules/wkt/test/hex-wkb-loader.spec.ts +++ b/modules/wkt/test/hex-wkb-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile, parseSync} from '@loaders.gl/core'; import {HexWKBLoader} from '@loaders.gl/wkt'; diff --git a/modules/wkt/test/twkb-loader.spec.ts b/modules/wkt/test/twkb-loader.spec.ts index 22522d6ab6..974f252b2c 100644 --- a/modules/wkt/test/twkb-loader.spec.ts +++ b/modules/wkt/test/twkb-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile, parseSync} from '@loaders.gl/core'; import {TWKBLoader, isTWKB} from '@loaders.gl/wkt'; diff --git a/modules/wkt/test/twkb-writer.spec.ts b/modules/wkt/test/twkb-writer.spec.ts index 746dc17a50..1decd73d54 100644 --- a/modules/wkt/test/twkb-writer.spec.ts +++ b/modules/wkt/test/twkb-writer.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /** import test from 'tape-promise/tape'; import {fetchFile, encodeSync} from '@loaders.gl/core'; diff --git a/modules/wkt/test/utils/parse-test-cases.ts b/modules/wkt/test/utils/parse-test-cases.ts index 686ea46e84..8b5cb54a7f 100644 --- a/modules/wkt/test/utils/parse-test-cases.ts +++ b/modules/wkt/test/utils/parse-test-cases.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {Geometry, BinaryGeometry} from '@loaders.gl/schema'; export interface TestCase { diff --git a/modules/wkt/test/wkb-loader.spec.ts b/modules/wkt/test/wkb-loader.spec.ts index 65fa6b3a93..c34e89e40c 100644 --- a/modules/wkt/test/wkb-loader.spec.ts +++ b/modules/wkt/test/wkb-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile, parseSync} from '@loaders.gl/core'; import {WKBLoader, isWKB} from '@loaders.gl/wkt'; diff --git a/modules/wkt/test/wkb-writer.spec.ts b/modules/wkt/test/wkb-writer.spec.ts index 4db3abe6cc..d142a12737 100644 --- a/modules/wkt/test/wkb-writer.spec.ts +++ b/modules/wkt/test/wkb-writer.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile, encodeSync} from '@loaders.gl/core'; import {WKBWriter} from '@loaders.gl/wkt'; diff --git a/modules/wkt/test/wkt-loader.spec.ts b/modules/wkt/test/wkt-loader.spec.ts index 9bba289ddd..c6619d3dab 100644 --- a/modules/wkt/test/wkt-loader.spec.ts +++ b/modules/wkt/test/wkt-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Fork of https://github.com/mapbox/wellknown under ISC license (MIT/BSD-2-clause equivalent) import test from 'tape-promise/tape'; diff --git a/modules/wkt/test/wkt-writer.spec.ts b/modules/wkt/test/wkt-writer.spec.ts index 37218f2768..43c06cbfdc 100644 --- a/modules/wkt/test/wkt-writer.spec.ts +++ b/modules/wkt/test/wkt-writer.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {encodeSync} from '@loaders.gl/core'; diff --git a/modules/worker-utils/src/index.ts b/modules/worker-utils/src/index.ts index 6522f4d4b4..e1b01e68f8 100644 --- a/modules/worker-utils/src/index.ts +++ b/modules/worker-utils/src/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {WorkerObject} from './types'; import {VERSION} from './lib/env-utils/version'; diff --git a/modules/worker-utils/src/lib/async-queue/async-queue.ts b/modules/worker-utils/src/lib/async-queue/async-queue.ts index 579728d3b4..8a60bb7cfb 100644 --- a/modules/worker-utils/src/lib/async-queue/async-queue.ts +++ b/modules/worker-utils/src/lib/async-queue/async-queue.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // From https://github.com/rauschma/async-iter-demo/tree/master/src under MIT license // http://2ality.com/2016/10/asynchronous-iteration.html diff --git a/modules/worker-utils/src/lib/env-utils/assert.ts b/modules/worker-utils/src/lib/env-utils/assert.ts index 4238e03282..920b9bbcf3 100644 --- a/modules/worker-utils/src/lib/env-utils/assert.ts +++ b/modules/worker-utils/src/lib/env-utils/assert.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Replacement for the external assert method to reduce bundle size // Note: We don't use the second "message" argument in calling code, // so no need to support it here diff --git a/modules/worker-utils/src/lib/env-utils/globals.ts b/modules/worker-utils/src/lib/env-utils/globals.ts index 277b946485..d7edb8eef8 100644 --- a/modules/worker-utils/src/lib/env-utils/globals.ts +++ b/modules/worker-utils/src/lib/env-utils/globals.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Purpose: include this in your module to avoids adding dependencies on // micro modules like 'global' and 'is-browser'; diff --git a/modules/worker-utils/src/lib/env-utils/version.ts b/modules/worker-utils/src/lib/env-utils/version.ts index c9f5a40e7b..20df24e06a 100644 --- a/modules/worker-utils/src/lib/env-utils/version.ts +++ b/modules/worker-utils/src/lib/env-utils/version.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Version constant cannot be imported, it needs to correspond to the build version of **this** module. /** diff --git a/modules/worker-utils/src/lib/library-utils/library-utils.ts b/modules/worker-utils/src/lib/library-utils/library-utils.ts index 6a192b3c9b..60d26e6484 100644 --- a/modules/worker-utils/src/lib/library-utils/library-utils.ts +++ b/modules/worker-utils/src/lib/library-utils/library-utils.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* global importScripts */ import {isBrowser, isWorker} from '../env-utils/globals'; import * as node from '../node/require-utils.node'; diff --git a/modules/worker-utils/src/lib/process-utils/child-process-proxy.ts b/modules/worker-utils/src/lib/process-utils/child-process-proxy.ts index bf49e37517..e819c6045e 100644 --- a/modules/worker-utils/src/lib/process-utils/child-process-proxy.ts +++ b/modules/worker-utils/src/lib/process-utils/child-process-proxy.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable no-console */ // Avoid using named imports for Node builtins to help with "empty" resolution // for bundlers targeting browser environments. Access imports & types diff --git a/modules/worker-utils/src/lib/process-utils/process-utils.ts b/modules/worker-utils/src/lib/process-utils/process-utils.ts index 2d2759d355..fd77352af2 100644 --- a/modules/worker-utils/src/lib/process-utils/process-utils.ts +++ b/modules/worker-utils/src/lib/process-utils/process-utils.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import ChildProcess from 'child_process'; // Get an available port diff --git a/modules/worker-utils/src/lib/worker-api/create-worker.ts b/modules/worker-utils/src/lib/worker-api/create-worker.ts index 0226024237..d7e6741b12 100644 --- a/modules/worker-utils/src/lib/worker-api/create-worker.ts +++ b/modules/worker-utils/src/lib/worker-api/create-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type { WorkerMessageType, WorkerMessagePayload, diff --git a/modules/worker-utils/src/lib/worker-api/process-on-worker.ts b/modules/worker-utils/src/lib/worker-api/process-on-worker.ts index b76d7d7a73..156438c5cc 100644 --- a/modules/worker-utils/src/lib/worker-api/process-on-worker.ts +++ b/modules/worker-utils/src/lib/worker-api/process-on-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type { WorkerObject, WorkerOptions, diff --git a/modules/worker-utils/src/lib/worker-api/validate-worker-version.ts b/modules/worker-utils/src/lib/worker-api/validate-worker-version.ts index 84f4f95d3b..eb8987f8fa 100644 --- a/modules/worker-utils/src/lib/worker-api/validate-worker-version.ts +++ b/modules/worker-utils/src/lib/worker-api/validate-worker-version.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {WorkerObject} from '../../types'; import {assert} from '../env-utils/assert'; import {VERSION} from '../env-utils/version'; diff --git a/modules/worker-utils/src/lib/worker-farm/worker-farm.ts b/modules/worker-utils/src/lib/worker-farm/worker-farm.ts index ba17106f1d..5fb8fe998e 100644 --- a/modules/worker-utils/src/lib/worker-farm/worker-farm.ts +++ b/modules/worker-utils/src/lib/worker-farm/worker-farm.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import WorkerPool from './worker-pool'; import WorkerThread from './worker-thread'; diff --git a/modules/worker-utils/src/lib/worker-farm/worker-job.ts b/modules/worker-utils/src/lib/worker-farm/worker-job.ts index 88e6243f95..1b611b9cf6 100644 --- a/modules/worker-utils/src/lib/worker-farm/worker-job.ts +++ b/modules/worker-utils/src/lib/worker-farm/worker-job.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {WorkerMessageType, WorkerMessagePayload} from '../../types'; import WorkerThread from './worker-thread'; import {assert} from '../env-utils/assert'; diff --git a/modules/worker-utils/src/lib/worker-farm/worker-pool.ts b/modules/worker-utils/src/lib/worker-farm/worker-pool.ts index 071d846401..aeda87d70f 100644 --- a/modules/worker-utils/src/lib/worker-farm/worker-pool.ts +++ b/modules/worker-utils/src/lib/worker-farm/worker-pool.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {WorkerMessageType, WorkerMessagePayload} from '../../types'; import {isMobile, isBrowser} from '../env-utils/globals'; import WorkerThread from './worker-thread'; diff --git a/modules/worker-utils/src/lib/worker-utils/get-loadable-worker-url.ts b/modules/worker-utils/src/lib/worker-utils/get-loadable-worker-url.ts index 6d979f1576..d97304eb61 100644 --- a/modules/worker-utils/src/lib/worker-utils/get-loadable-worker-url.ts +++ b/modules/worker-utils/src/lib/worker-utils/get-loadable-worker-url.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {assert} from '../env-utils/assert'; const workerURLCache = new Map(); diff --git a/modules/worker-utils/src/lib/worker-utils/get-transfer-list.ts b/modules/worker-utils/src/lib/worker-utils/get-transfer-list.ts index ce11542bc9..1fc430fdad 100644 --- a/modules/worker-utils/src/lib/worker-utils/get-transfer-list.ts +++ b/modules/worker-utils/src/lib/worker-utils/get-transfer-list.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // NOTE - there is a copy of this function is both in core and loader-utils // core does not need all the utils in loader-utils, just this one. diff --git a/modules/worker-utils/src/lib/worker-utils/remove-nontransferable-options.ts b/modules/worker-utils/src/lib/worker-utils/remove-nontransferable-options.ts index 19f1489922..d005f36180 100644 --- a/modules/worker-utils/src/lib/worker-utils/remove-nontransferable-options.ts +++ b/modules/worker-utils/src/lib/worker-utils/remove-nontransferable-options.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /** * Recursively drop non serializable values like functions and regexps. * @param object diff --git a/modules/worker-utils/src/types.ts b/modules/worker-utils/src/types.ts index b7a31ca5b7..cb9c0413a8 100644 --- a/modules/worker-utils/src/types.ts +++ b/modules/worker-utils/src/types.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /** * Worker Options */ diff --git a/modules/worker-utils/src/workers/null-worker.ts b/modules/worker-utils/src/workers/null-worker.ts index 788192c0bb..19615102b7 100644 --- a/modules/worker-utils/src/workers/null-worker.ts +++ b/modules/worker-utils/src/workers/null-worker.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {createWorker} from '../lib/worker-api/create-worker'; createWorker(async (data) => { diff --git a/modules/worker-utils/test/index.ts b/modules/worker-utils/test/index.ts index 57a10d4fca..cb284fad1a 100644 --- a/modules/worker-utils/test/index.ts +++ b/modules/worker-utils/test/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import './lib/async-queue/async-queue.spec'; // import './lib/library-utils/require-utils.spec'; diff --git a/modules/worker-utils/test/lib/async-queue/async-queue.spec.ts b/modules/worker-utils/test/lib/async-queue/async-queue.spec.ts index 712376e546..ea8271417e 100644 --- a/modules/worker-utils/test/lib/async-queue/async-queue.spec.ts +++ b/modules/worker-utils/test/lib/async-queue/async-queue.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {AsyncQueue} from '@loaders.gl/worker-utils'; diff --git a/modules/worker-utils/test/lib/library-utils/library-utils.spec.ts b/modules/worker-utils/test/lib/library-utils/library-utils.spec.ts index 7bc08fad77..62ba923f58 100644 --- a/modules/worker-utils/test/lib/library-utils/library-utils.spec.ts +++ b/modules/worker-utils/test/lib/library-utils/library-utils.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {getLibraryUrl, isBrowser} from '@loaders.gl/worker-utils'; import {VERSION} from '../../../src/lib/env-utils/version'; diff --git a/modules/worker-utils/test/lib/library-utils/require-utils.spec.ts b/modules/worker-utils/test/lib/library-utils/require-utils.spec.ts index fb34cc0c09..54926d272f 100644 --- a/modules/worker-utils/test/lib/library-utils/require-utils.spec.ts +++ b/modules/worker-utils/test/lib/library-utils/require-utils.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // Fork of https://github.com/floatdrop/require-from-string/blob/master/index.js // Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) // MIT license diff --git a/modules/worker-utils/test/lib/worker-api/get-worker-url.spec.ts b/modules/worker-utils/test/lib/worker-api/get-worker-url.spec.ts index 7d9806b146..f7c637bee3 100644 --- a/modules/worker-utils/test/lib/worker-api/get-worker-url.spec.ts +++ b/modules/worker-utils/test/lib/worker-api/get-worker-url.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {isBrowser} from '@loaders.gl/core'; import {NullWorker} from '@loaders.gl/worker-utils'; diff --git a/modules/worker-utils/test/lib/worker-api/process-on-worker.spec.ts b/modules/worker-utils/test/lib/worker-api/process-on-worker.spec.ts index 58a306cfef..74bbb9e11d 100644 --- a/modules/worker-utils/test/lib/worker-api/process-on-worker.spec.ts +++ b/modules/worker-utils/test/lib/worker-api/process-on-worker.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {processOnWorker, NullWorker, isBrowser} from '@loaders.gl/worker-utils'; diff --git a/modules/worker-utils/test/lib/worker-api/validate-worker-version.spec.ts b/modules/worker-utils/test/lib/worker-api/validate-worker-version.spec.ts index ae83d660ff..f9fbabae5c 100644 --- a/modules/worker-utils/test/lib/worker-api/validate-worker-version.spec.ts +++ b/modules/worker-utils/test/lib/worker-api/validate-worker-version.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {validateWorkerVersion} from '../../../src/lib/worker-api/validate-worker-version'; diff --git a/modules/worker-utils/test/lib/worker-farm/worker-pool.spec.ts b/modules/worker-utils/test/lib/worker-farm/worker-pool.spec.ts index f38d811938..8826f1cffa 100644 --- a/modules/worker-utils/test/lib/worker-farm/worker-pool.spec.ts +++ b/modules/worker-utils/test/lib/worker-farm/worker-pool.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {WorkerPool} from '@loaders.gl/worker-utils'; diff --git a/modules/worker-utils/test/lib/worker-farm/worker-thread.spec.ts b/modules/worker-utils/test/lib/worker-farm/worker-thread.spec.ts index 8c93f5f6cb..85f6e9a1c5 100644 --- a/modules/worker-utils/test/lib/worker-farm/worker-thread.spec.ts +++ b/modules/worker-utils/test/lib/worker-farm/worker-thread.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {WorkerThread} from '@loaders.gl/worker-utils'; diff --git a/modules/worker-utils/test/lib/worker-utils/get-loadable-worker-url.spec.ts b/modules/worker-utils/test/lib/worker-utils/get-loadable-worker-url.spec.ts index f855520b7d..533d57ceeb 100644 --- a/modules/worker-utils/test/lib/worker-utils/get-loadable-worker-url.spec.ts +++ b/modules/worker-utils/test/lib/worker-utils/get-loadable-worker-url.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {isBrowser} from '@loaders.gl/worker-utils'; import {getLoadableWorkerURL} from '../../../src/lib/worker-utils/get-loadable-worker-url'; diff --git a/modules/worker-utils/test/lib/worker-utils/get-transfer-list.spec.ts b/modules/worker-utils/test/lib/worker-utils/get-transfer-list.spec.ts index d64220a293..ed6e84c413 100644 --- a/modules/worker-utils/test/lib/worker-utils/get-transfer-list.spec.ts +++ b/modules/worker-utils/test/lib/worker-utils/get-transfer-list.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {getTransferList, getTransferListForWriter} from '@loaders.gl/worker-utils'; diff --git a/modules/xml/src/lib/parsers/streaming-xml-parser.ts b/modules/xml/src/lib/parsers/streaming-xml-parser.ts index 01f405acc4..dce94d66a1 100644 --- a/modules/xml/src/lib/parsers/streaming-xml-parser.ts +++ b/modules/xml/src/lib/parsers/streaming-xml-parser.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // @ts-nocheck /* eslint-disable */ diff --git a/modules/xml/src/lib/xml-utils/xml-utils.ts b/modules/xml/src/lib/xml-utils/xml-utils.ts index 8735304d88..f3a2586c88 100644 --- a/modules/xml/src/lib/xml-utils/xml-utils.ts +++ b/modules/xml/src/lib/xml-utils/xml-utils.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // TODO - these utilities could be moved to the XML parser. // uncapitalizeKeys could be an XMLLoader option diff --git a/modules/xml/src/xml-loader.ts b/modules/xml/src/xml-loader.ts index 513f46830c..d39d9b5072 100644 --- a/modules/xml/src/xml-loader.ts +++ b/modules/xml/src/xml-loader.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils'; import type {ParseXMLOptions} from './lib/parsers/parse-xml'; import {parseXMLSync} from './lib/parsers/parse-xml'; diff --git a/modules/zarr/src/index.ts b/modules/zarr/src/index.ts index 42afca69a8..d75b1da662 100644 --- a/modules/zarr/src/index.ts +++ b/modules/zarr/src/index.ts @@ -1,2 +1,5 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + export {loadZarr} from './lib/load-zarr'; export {default as ZarrPixelSource} from './lib/zarr-pixel-source'; diff --git a/modules/zarr/src/lib/load-zarr.ts b/modules/zarr/src/lib/load-zarr.ts index 9f73a8b1dc..fbf206bfae 100644 --- a/modules/zarr/src/lib/load-zarr.ts +++ b/modules/zarr/src/lib/load-zarr.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // eslint-disable-next-line import/no-unresolved import type {Store} from 'zarr/types/storage/types'; import {loadMultiscales, guessTileSize, guessLabels, normalizeStore, validLabels} from './utils'; diff --git a/modules/zarr/src/lib/utils.ts b/modules/zarr/src/lib/utils.ts index 2710e451ab..b271cc2dd3 100644 --- a/modules/zarr/src/lib/utils.ts +++ b/modules/zarr/src/lib/utils.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {ZarrArray} from 'zarr'; // eslint-disable-next-line import/no-unresolved import type {Store} from 'zarr/types/storage/types'; diff --git a/modules/zarr/src/lib/zarr-pixel-source.ts b/modules/zarr/src/lib/zarr-pixel-source.ts index f165b05563..7ca1c53010 100644 --- a/modules/zarr/src/lib/zarr-pixel-source.ts +++ b/modules/zarr/src/lib/zarr-pixel-source.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import type {ZarrArray} from 'zarr'; // eslint-disable-next-line import/no-unresolved import type {RawArray} from 'zarr/types/rawArray'; diff --git a/modules/zarr/src/types.ts b/modules/zarr/src/types.ts index f52b59a9be..53ca078afd 100644 --- a/modules/zarr/src/types.ts +++ b/modules/zarr/src/types.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /* eslint-disable */ import {DTYPE_LOOKUP} from './lib/zarr-pixel-source'; export type SupportedDtype = (typeof DTYPE_LOOKUP)[keyof typeof DTYPE_LOOKUP]; diff --git a/modules/zip/src/filesystems/zip-filesystem.ts b/modules/zip/src/filesystems/zip-filesystem.ts index b600ec2a8e..19eb325663 100644 --- a/modules/zip/src/filesystems/zip-filesystem.ts +++ b/modules/zip/src/filesystems/zip-filesystem.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {FileSystem, isBrowser} from '@loaders.gl/loader-utils'; import {FileProvider, isFileProvider} from '@loaders.gl/loader-utils'; import {FileHandleFile} from '@loaders.gl/loader-utils'; diff --git a/modules/zip/src/hash-file-utility.ts b/modules/zip/src/hash-file-utility.ts index 4970c82248..f3db95bc35 100644 --- a/modules/zip/src/hash-file-utility.ts +++ b/modules/zip/src/hash-file-utility.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {MD5Hash} from '@loaders.gl/crypto'; import {FileProvider} from '@loaders.gl/loader-utils'; import {makeZipCDHeaderIterator} from './parse-zip/cd-file-header'; diff --git a/modules/zip/src/lib/tar/header.ts b/modules/zip/src/lib/tar/header.ts index 645c6454db..d799ee4951 100644 --- a/modules/zip/src/lib/tar/header.ts +++ b/modules/zip/src/lib/tar/header.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // This file is derived from the tar-js code base under MIT license // See https://github.com/beatgammit/tar-js/blob/master/LICENSE /* diff --git a/modules/zip/src/lib/tar/tar.ts b/modules/zip/src/lib/tar/tar.ts index 20ccc5e20b..94c6a7f878 100644 --- a/modules/zip/src/lib/tar/tar.ts +++ b/modules/zip/src/lib/tar/tar.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // This file is derived from the tar-js code base under MIT license // See https://github.com/beatgammit/tar-js/blob/master/LICENSE /* diff --git a/modules/zip/src/lib/tar/types.ts b/modules/zip/src/lib/tar/types.ts index 765ad0e581..e70c2e925a 100644 --- a/modules/zip/src/lib/tar/types.ts +++ b/modules/zip/src/lib/tar/types.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + /** * Structure of data */ diff --git a/modules/zip/src/lib/tar/utils.ts b/modules/zip/src/lib/tar/utils.ts index 492808435f..fbf22d262f 100644 --- a/modules/zip/src/lib/tar/utils.ts +++ b/modules/zip/src/lib/tar/utils.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // This file is derived from the tar-js code base under MIT license // See https://github.com/beatgammit/tar-js/blob/master/LICENSE /* diff --git a/modules/zip/src/parse-zip/cd-file-header.ts b/modules/zip/src/parse-zip/cd-file-header.ts index 409ee1e8d2..a9a86bec4b 100644 --- a/modules/zip/src/parse-zip/cd-file-header.ts +++ b/modules/zip/src/parse-zip/cd-file-header.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {FileProvider, compareArrayBuffers} from '@loaders.gl/loader-utils'; import {parseEoCDRecord} from './end-of-central-directory'; import {ZipSignature} from './search-from-the-end'; diff --git a/modules/zip/src/parse-zip/end-of-central-directory.ts b/modules/zip/src/parse-zip/end-of-central-directory.ts index ddb5e7f331..4161323b6a 100644 --- a/modules/zip/src/parse-zip/end-of-central-directory.ts +++ b/modules/zip/src/parse-zip/end-of-central-directory.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {FileProvider, compareArrayBuffers} from '@loaders.gl/loader-utils'; import {ZipSignature, searchFromTheEnd} from './search-from-the-end'; diff --git a/modules/zip/src/parse-zip/local-file-header.ts b/modules/zip/src/parse-zip/local-file-header.ts index 1bfa7a2bc1..1f2407a301 100644 --- a/modules/zip/src/parse-zip/local-file-header.ts +++ b/modules/zip/src/parse-zip/local-file-header.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {FileProvider, compareArrayBuffers} from '@loaders.gl/loader-utils'; import {ZipSignature} from './search-from-the-end'; diff --git a/modules/zip/src/parse-zip/search-from-the-end.ts b/modules/zip/src/parse-zip/search-from-the-end.ts index 5630ee0f5b..2af8f76153 100644 --- a/modules/zip/src/parse-zip/search-from-the-end.ts +++ b/modules/zip/src/parse-zip/search-from-the-end.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import {FileProvider} from '@loaders.gl/loader-utils'; /** Description of zip signature type */ diff --git a/modules/zip/src/tar-builder.ts b/modules/zip/src/tar-builder.ts index a882ff9d00..151107465a 100644 --- a/modules/zip/src/tar-builder.ts +++ b/modules/zip/src/tar-builder.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import Tar from './lib/tar/tar'; const TAR_BUILDER_OPTIONS = { diff --git a/modules/zip/test/filesystems/zip-filesystem.spec.ts b/modules/zip/test/filesystems/zip-filesystem.spec.ts index 114ae4f2a1..1ef7cac982 100644 --- a/modules/zip/test/filesystems/zip-filesystem.spec.ts +++ b/modules/zip/test/filesystems/zip-filesystem.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {fetchFile, isBrowser} from '@loaders.gl/core'; diff --git a/modules/zip/test/index.ts b/modules/zip/test/index.ts index 659f6601de..364448d35c 100644 --- a/modules/zip/test/index.ts +++ b/modules/zip/test/index.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import './zip-writer-loader.spec'; import './tar-builder.spec'; diff --git a/modules/zip/test/lib/test-cases.js b/modules/zip/test/lib/test-cases.js index dbd1b043d6..30240c181f 100644 --- a/modules/zip/test/lib/test-cases.js +++ b/modules/zip/test/lib/test-cases.js @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + // prettier-ignore export const IMAGE_DATA_ARRAY = new Uint8Array([ 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, diff --git a/modules/zip/test/tar-builder.spec.ts b/modules/zip/test/tar-builder.spec.ts index 1a557ee75c..a517ecac07 100644 --- a/modules/zip/test/tar-builder.spec.ts +++ b/modules/zip/test/tar-builder.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {validateBuilder} from 'test/common/conformance'; diff --git a/modules/zip/test/zip-utils/cd-file-header.spec.ts b/modules/zip/test/zip-utils/cd-file-header.spec.ts index ff0ba0db96..e59e61eec9 100644 --- a/modules/zip/test/zip-utils/cd-file-header.spec.ts +++ b/modules/zip/test/zip-utils/cd-file-header.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {DATA_ARRAY} from '@loaders.gl/i3s/test/data/test.zip'; diff --git a/modules/zip/test/zip-utils/end-of-central-directory.spec.ts b/modules/zip/test/zip-utils/end-of-central-directory.spec.ts index 50ba9357dd..3b55a173d4 100644 --- a/modules/zip/test/zip-utils/end-of-central-directory.spec.ts +++ b/modules/zip/test/zip-utils/end-of-central-directory.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {DATA_ARRAY} from '@loaders.gl/i3s/test/data/test.zip'; import {parseEoCDRecord} from '../../src/parse-zip/end-of-central-directory'; diff --git a/modules/zip/test/zip-utils/local-file-header.spec.ts b/modules/zip/test/zip-utils/local-file-header.spec.ts index 94986483a7..f85984ac64 100644 --- a/modules/zip/test/zip-utils/local-file-header.spec.ts +++ b/modules/zip/test/zip-utils/local-file-header.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {DATA_ARRAY} from '@loaders.gl/i3s/test/data/test.zip'; diff --git a/modules/zip/test/zip-utils/search-from-the-end.spec.ts b/modules/zip/test/zip-utils/search-from-the-end.spec.ts index 1332c536c4..3832072fb3 100644 --- a/modules/zip/test/zip-utils/search-from-the-end.spec.ts +++ b/modules/zip/test/zip-utils/search-from-the-end.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {DATA_ARRAY} from '@loaders.gl/i3s/test/data/test.zip'; diff --git a/modules/zip/test/zip-writer-loader.spec.ts b/modules/zip/test/zip-writer-loader.spec.ts index e2f9080f70..85c705b8f2 100644 --- a/modules/zip/test/zip-writer-loader.spec.ts +++ b/modules/zip/test/zip-writer-loader.spec.ts @@ -1,3 +1,6 @@ +// loaders.gl, MIT license +// Copyright (c) vis.gl contributors + import test from 'tape-promise/tape'; import {validateLoader, validateWriter} from 'test/common/conformance';