Skip to content

Commit

Permalink
License headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Aug 24, 2024
1 parent 2294f19 commit 66c2099
Show file tree
Hide file tree
Showing 26 changed files with 94 additions and 190 deletions.
4 changes: 4 additions & 0 deletions src/event-manager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {Manager as HammerManager, RecognizerTuple} from './hammerjs';
import type {
MjolnirEventRaw,
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export {EventManager} from './event-manager';
export {
Recognizer,
Expand Down
4 changes: 4 additions & 0 deletions src/inputs/contextmenu-input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirPointerEventRaw} from '../types';
import {Input, InputOptions} from './input';

Expand Down
4 changes: 4 additions & 0 deletions src/inputs/input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirEventRaw} from '../types';

export interface InputOptions {
Expand Down
4 changes: 4 additions & 0 deletions src/inputs/key-input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirKeyEventRaw} from '../types';
import {Input, InputOptions} from './input';

Expand Down
4 changes: 4 additions & 0 deletions src/inputs/move-input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirPointerEventRaw} from '../types';
import {Input, InputOptions} from './input';

Expand Down
4 changes: 4 additions & 0 deletions src/inputs/wheel-input.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirWheelEventRaw} from '../types';
import {Input, InputOptions} from './input';

Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {HammerEvent} from './hammerjs';

export type Point = {
Expand Down
4 changes: 4 additions & 0 deletions src/utils/event-registrar.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {EventManager} from '../event-manager';
import {whichButtons, getOffsetPosition} from './event-utils';
import type {
Expand Down
4 changes: 4 additions & 0 deletions src/utils/event-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import type {MjolnirEventRaw, Point} from '../types';
import type {HammerEvent} from '../hammerjs';

Expand Down
4 changes: 4 additions & 0 deletions src/utils/globals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

// Purpose: include this in your module to avoids adding dependencies on
// micro modules like 'global'

Expand Down
4 changes: 4 additions & 0 deletions test/browser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

/* global window */
import test from 'tape';

Check warning on line 6 in test/browser.ts

View workflow job for this annotation

GitHub Actions / test-node

'tape' should be listed in the project's dependencies. Run 'npm i -S tape' to add it
import {_enableDOMLogging as enableDOMLogging} from '@probe.gl/test-utils';

Check warning on line 7 in test/browser.ts

View workflow job for this annotation

GitHub Actions / test-node

'@probe.gl/test-utils' should be listed in the project's dependencies. Run 'npm i -S @probe.gl/test-utils' to add it
Expand Down
22 changes: 3 additions & 19 deletions test/event-manager.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';

Check warning on line 5 in test/event-manager.spec.ts

View workflow job for this annotation

GitHub Actions / test-node

'tape-promise' should be listed in the project's dependencies. Run 'npm i -S tape-promise' to add it
import {EventManager, Tap, Pan} from 'mjolnir.js';

Check warning on line 6 in test/event-manager.spec.ts

View workflow job for this annotation

GitHub Actions / test-node

'mjolnir.js' should be listed in the project's dependencies. Run 'npm i -S mjolnir.js' to add it
Expand Down
4 changes: 4 additions & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './event-manager.spec';
import './inputs';
import './utils';
22 changes: 3 additions & 19 deletions test/inputs/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './key-input.spec';
import './move-input.spec';
Expand Down
22 changes: 3 additions & 19 deletions test/inputs/key-input.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {KeyInput} from 'mjolnir.js/inputs/key-input';
Expand Down
22 changes: 3 additions & 19 deletions test/inputs/move-input.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {MoveInput} from 'mjolnir.js/inputs/move-input';
Expand Down
22 changes: 3 additions & 19 deletions test/inputs/wheel-input.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {WheelInput} from 'mjolnir.js/inputs/wheel-input';
Expand Down
22 changes: 3 additions & 19 deletions test/node.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {JSDOM} from 'jsdom';

Expand Down
4 changes: 4 additions & 0 deletions test/size.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import {EventManager} from 'mjolnir.js';

console.log(EventManager); // eslint-disable-line
4 changes: 4 additions & 0 deletions test/test-utils/dom.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

type ElementOptions = {
id?: string;
children?: ElementOptions[];
Expand Down
22 changes: 3 additions & 19 deletions test/test-utils/spy.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

export type SpyFunction = Function & {
callCount: number;
Expand Down
22 changes: 3 additions & 19 deletions test/utils/event-registrar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {EventRegistrar} from 'mjolnir.js/utils/event-registrar';
Expand Down
22 changes: 3 additions & 19 deletions test/utils/event-utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {whichButtons} from 'mjolnir.js/utils/event-utils';
Expand Down
22 changes: 3 additions & 19 deletions test/utils/global.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {global, window, document, userAgent} from 'mjolnir.js/utils/globals';
Expand Down
4 changes: 4 additions & 0 deletions test/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// mjolnir.js
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors

import './event-registrar.spec';
import './event-utils.spec';
import './global.spec';

0 comments on commit 66c2099

Please sign in to comment.