Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add license headers #2784

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/terrain/src/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/lib/decode-quantized-mesh.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 3 additions & 13 deletions modules/terrain/src/lib/delatin/index.ts
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/lib/helpers/skirt.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {concatenateTypedArrays} from '@loaders.gl/loader-utils';

export type EdgeIndices = {
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/lib/parse-quantized-mesh.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/lib/utils/version.ts
Original file line number Diff line number Diff line change
@@ -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__'.
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/quantized-mesh-loader.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/terrain-loader.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/workers/quantized-mesh-worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {createLoaderWorker} from '@loaders.gl/loader-utils';
import {QuantizedMeshLoader} from '../index';

Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/src/workers/terrain-worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {createLoaderWorker} from '@loaders.gl/loader-utils';
import {TerrainLoader} from '../index';

Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import './quantized-mesh-loader.spec';
import './terrain-loader.spec';

Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/test/lib/helpers/skirt.spec.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/test/quantized-mesh-loader.spec.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/terrain/test/terrain-loader.spec.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/basis-loader.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/compressed-texture-loader.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/compressed-texture-writer.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/crunch-loader.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {VERSION} from './lib/utils/version';

// Types
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/encoders/encode-ktx.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {read} from 'ktx-parse';

export function encodeKTX(texture) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/encoders/encode-texture.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/gl-extensions.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/basis-module-loader.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/crunch-module-loader.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

// @ts-nocheck
import {loadLibrary} from '@loaders.gl/worker-utils';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-basis.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-compressed-texture.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-crunch.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-dds.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-ktx.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-npy.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/parsers/parse-pvr.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/lib/texture-api/async-deep-map.ts
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/lib/texture-api/deep-load.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {asyncDeepMap} from './async-deep-map';

export type LoadOptions = Record<string, any>;
Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/lib/texture-api/generate-url.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/lib/texture-api/load-image-array.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions modules/textures/src/lib/texture-api/load-image-cube.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/texture-api/load-image.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/utils/extract-mipmap-images.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {TextureLevel} from '@loaders.gl/schema';

export type CompressedTextureExtractOptions = {
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/utils/ktx-format-helper.ts
Original file line number Diff line number Diff line change
@@ -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<number, number> = {
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/utils/texture-formats.ts
Original file line number Diff line number Diff line change
@@ -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_'];
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/lib/utils/version.ts
Original file line number Diff line number Diff line change
@@ -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__'.
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/npy-loader.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Empty file removed modules/textures/src/types.ts
Empty file.
3 changes: 3 additions & 0 deletions modules/textures/src/workers/basis-worker-node.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/basis-worker.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/compressed-texture-worker.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/crunch-worker.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/ktx2-basis-writer-worker-node.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/ktx2-basis-writer-worker.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/src/workers/npy-worker.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 3 additions & 0 deletions modules/textures/test/basis-loader.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/test/compressed-texture-loader.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/test/compressed-texture-writer.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions modules/textures/test/crunch-loader.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Loading