@loaders.gl/video 3.1.0-alpha.2 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +2143 -5
- package/dist/es5/bundle.js +7 -0
- package/dist/es5/bundle.js.map +1 -0
- package/dist/es5/gif-builder.js +134 -0
- package/dist/es5/gif-builder.js.map +1 -0
- package/dist/es5/index.js +24 -0
- package/dist/es5/index.js.map +1 -0
- package/dist/es5/lib/gifshot/gifshot-loader.js +28 -0
- package/dist/es5/lib/gifshot/gifshot-loader.js.map +1 -0
- package/dist/es5/lib/gifshot/gifshot.js +2191 -0
- package/dist/es5/lib/gifshot/gifshot.js.map +1 -0
- package/dist/es5/lib/parsers/parse-video.js +14 -0
- package/dist/es5/lib/parsers/parse-video.js.map +1 -0
- package/dist/es5/lib/utils/assert.js +13 -0
- package/dist/es5/lib/utils/assert.js.map +1 -0
- package/dist/es5/lib/utils/globals.js +28 -0
- package/dist/es5/lib/utils/globals.js.map +1 -0
- package/dist/es5/video-loader.js +31 -0
- package/dist/es5/video-loader.js.map +1 -0
- package/dist/esm/bundle.js +5 -0
- package/dist/esm/bundle.js.map +1 -0
- package/dist/esm/gif-builder.js +120 -0
- package/dist/esm/gif-builder.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/gifshot/gifshot-loader.js +19 -0
- package/dist/esm/lib/gifshot/gifshot-loader.js.map +1 -0
- package/dist/esm/lib/gifshot/gifshot.js +2184 -0
- package/dist/esm/lib/gifshot/gifshot.js.map +1 -0
- package/dist/esm/lib/parsers/parse-video.js +7 -0
- package/dist/esm/lib/parsers/parse-video.js.map +1 -0
- package/{src → dist/esm}/lib/utils/assert.js +1 -0
- package/dist/esm/lib/utils/assert.js.map +1 -0
- package/dist/esm/lib/utils/globals.js +16 -0
- package/dist/esm/lib/utils/globals.js.map +1 -0
- package/dist/esm/video-loader.js +19 -0
- package/dist/esm/video-loader.js.map +1 -0
- package/dist/gif-builder.d.ts +53 -0
- package/dist/gif-builder.d.ts.map +1 -0
- package/dist/gif-builder.js +136 -114
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -3
- package/dist/lib/gifshot/gifshot-loader.d.ts +2 -0
- package/dist/lib/gifshot/gifshot-loader.d.ts.map +1 -0
- package/dist/lib/gifshot/gifshot-loader.js +18 -15
- package/dist/lib/gifshot/gifshot.d.ts +72 -0
- package/dist/lib/gifshot/gifshot.d.ts.map +1 -0
- package/dist/lib/gifshot/gifshot.js +2437 -0
- package/dist/lib/parsers/parse-video.d.ts +2 -0
- package/dist/lib/parsers/parse-video.d.ts.map +1 -0
- package/dist/lib/parsers/parse-video.js +12 -6
- package/dist/lib/utils/assert.d.ts +2 -0
- package/dist/lib/utils/assert.d.ts.map +1 -0
- package/dist/lib/utils/assert.js +8 -5
- package/dist/lib/utils/globals.d.ts +10 -0
- package/dist/lib/utils/globals.d.ts.map +1 -0
- package/dist/lib/utils/globals.js +19 -10
- package/dist/video-loader.d.ts +17 -0
- package/dist/video-loader.d.ts.map +1 -0
- package/dist/video-loader.js +22 -14
- package/package.json +8 -9
- package/src/bundle.ts +2 -3
- package/src/{gif-builder.js → gif-builder.ts} +7 -6
- package/src/lib/gifshot/{gifshot-loader.js → gifshot-loader.ts} +1 -0
- package/src/lib/gifshot/gifshot.ts +2415 -0
- package/src/lib/utils/assert.ts +5 -0
- package/src/lib/utils/globals.ts +25 -0
- package/dist/bundle.js.map +0 -1
- package/dist/dist.min.js +0 -2
- package/dist/dist.min.js.map +0 -1
- package/dist/gif-builder.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/gifshot/gifshot-loader.js.map +0 -1
- package/dist/lib/parsers/parse-video.js.map +0 -1
- package/dist/lib/utils/assert.js.map +0 -1
- package/dist/lib/utils/globals.js.map +0 -1
- package/dist/libs/gifshot.js +0 -2826
- package/dist/video-loader.js.map +0 -1
- package/src/lib/utils/globals.js +0 -48
- package/src/libs/gifshot.js +0 -2826
package/dist/video-loader.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/video-loader.ts"],"names":["parseVideo","VERSION","EXTENSIONS","MIME_TYPES","DEFAULT_LOADER_OPTIONS","video","VideoLoader","name","id","module","version","extensions","mimeTypes","parse","options","_typecheckVideoLoader"],"mappings":"AACA,OAAOA,UAAP,MAAuB,2BAAvB;AAIA,MAAMC,OAAO,GAAG,2BAAuB,WAAvB,qBAAmD,QAAnE;AAEA,MAAMC,UAAU,GAAG,CAAC,KAAD,CAAnB;AACA,MAAMC,UAAU,GAAG,CAAC,WAAD,CAAnB;AAQA,MAAMC,sBAA0C,GAAG;AACjDC,EAAAA,KAAK,EAAE;AAD0C,CAAnD;AAIA,OAAO,MAAMC,WAAW,GAAG;AACzBC,EAAAA,IAAI,EAAE,OADmB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,MAAM,EAAE,OAHiB;AAIzBC,EAAAA,OAAO,EAAET,OAJgB;AAKzBU,EAAAA,UAAU,EAAET,UALa;AAMzBU,EAAAA,SAAS,EAAET,UANc;AAQzBU,EAAAA,KAAK,EAAEb,UARkB;AAWzBc,EAAAA,OAAO,EAAEV;AAXgB,CAApB;AAcP,OAAO,MAAMW,qBAAuC,GAAGT,WAAhD","sourcesContent":["import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport parseVideo from './lib/parsers/parse-video';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nconst EXTENSIONS = ['mp4'];\nconst MIME_TYPES = ['video/mp4'];\n\n// Loads a platform-specific image type that can be used as input data to WebGL textures\n\nexport type VideoLoaderOptions = LoaderOptions & {\n video: {};\n};\n\nconst DEFAULT_LOADER_OPTIONS: VideoLoaderOptions = {\n video: {}\n};\n\nexport const VideoLoader = {\n name: 'Video',\n id: 'video',\n module: 'video',\n version: VERSION,\n extensions: EXTENSIONS,\n mimeTypes: MIME_TYPES,\n\n parse: parseVideo,\n\n // tests: arrayBuffer => Boolean(getBinaryImageMetadata(new DataView(arrayBuffer))),\n options: DEFAULT_LOADER_OPTIONS\n};\n\nexport const _typecheckVideoLoader: LoaderWithParser = VideoLoader;\n"],"file":"video-loader.js"}
|
package/src/lib/utils/globals.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
// in the Software without restriction, including without limitation the rights
|
|
6
|
-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
// copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
|
|
21
|
-
// Purpose: include this in your module to avoids adding dependencies on
|
|
22
|
-
// micro modules like 'global' and 'is-browser';
|
|
23
|
-
|
|
24
|
-
/* eslint-disable no-restricted-globals */
|
|
25
|
-
const globals = {
|
|
26
|
-
self: typeof self !== 'undefined' && self,
|
|
27
|
-
window: typeof window !== 'undefined' && window,
|
|
28
|
-
global: typeof global !== 'undefined' && global,
|
|
29
|
-
document: typeof document !== 'undefined' && document
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const self_ = globals.self || globals.window || globals.global;
|
|
33
|
-
const window_ = globals.window || globals.self || globals.global;
|
|
34
|
-
const global_ = globals.global || globals.self || globals.window;
|
|
35
|
-
const document_ = globals.document || {};
|
|
36
|
-
|
|
37
|
-
export {self_ as self, window_ as window, global_ as global, document_ as document};
|
|
38
|
-
|
|
39
|
-
export const isBrowser =
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
typeof process !== 'object' || String(process) !== '[object process]' || process.browser;
|
|
42
|
-
|
|
43
|
-
export const isWorker = typeof importScripts === 'function';
|
|
44
|
-
|
|
45
|
-
// Extract node major version
|
|
46
|
-
const matches =
|
|
47
|
-
typeof process !== 'undefined' && process.version && process.version.match(/v([0-9]*)/);
|
|
48
|
-
export const nodeVersion = (matches && parseFloat(matches[1])) || 0;
|