repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/node/modules/demo/ssr
rapidsai_public_repos/node/modules/demo/ssr/luma/index.js
#!/usr/bin/env node // Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/ssr
rapidsai_public_repos/node/modules/demo/ssr/luma/README.md
# Luma.gl Server Side Rendering (SSR) and Streaming Server The back end to the [Viz-App](https://github.com/rapidsai/node/tree/main/modules/demo/viz-app) demo, using luma.gl for rendering. Streamed using webRTC utilizing [nvENC](https://docs.nvidia.com/video-technologies/video-codec-sdk/nvenc-video-encoder-api-prog-gui...
0
rapidsai_public_repos/node/modules/demo/ssr/luma
rapidsai_public_repos/node/modules/demo/ssr/luma/render/index.js
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/ssr/luma
rapidsai_public_repos/node/modules/demo/ssr/luma/render/worker.js
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/ssr/luma
rapidsai_public_repos/node/modules/demo/ssr/luma/render/copy.js
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/ssr/luma
rapidsai_public_repos/node/modules/demo/ssr/luma/public/video.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>WebRTC NVENC Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#2e2e2e" /> </head> <body style="background:#2e2e2e; margin:0;"> <video autoplay muted width="8...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/umap/package.json
{ "private": true, "name": "@rapidsai/demo-umap", "main": "index.js", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modul...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/umap/index.js
#!/usr/bin/env node // Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/umap/README.md
# UMAP Demo A UMAP visualization using cuML and deck.gl. ## Featured Dependencies - @rapidsai/cudf - @rapidsai/cuml - @rapidsai/deck.gl - @rapidsai/glfw ## Data requirements Make sure the `data.tar.xz` file has been pulled from git lfs. Extract it using the following command: ```bash tar -xf ./data/data.tar.xz -C ./...
0
rapidsai_public_repos/node/modules/demo
rapidsai_public_repos/node/modules/demo/umap/UMAP Demo.ipynb
var graphDemoWindow = require('@rapidsai/demo-umap'); graphDemoWindow.open({ _title: 'UMAP Demo', width: 1024, height: 768, layoutParams: { autoCenter: false, } })
0
rapidsai_public_repos/node/modules/demo/umap
rapidsai_public_repos/node/modules/demo/umap/src/loader.js
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
0
rapidsai_public_repos/node/modules/demo/umap
rapidsai_public_repos/node/modules/demo/umap/src/app.jsx
// Copyright (c) 2020-2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/point-cloud/package.json
{ "private": true, "name": "@rapidsai/demo-deck-point-cloud-laz", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --e...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/point-cloud/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/point-cloud/README.md
This is a minimal standalone version of the Graph Explorer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. ```bash # install dependencies npm install # or yarn # bundle and serve the app with webpack npm start ``` ### Data Source The sample data is from [ka...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/point-cloud/app.jsx
/* eslint-disable no-unused-vars */ const { OrbitView, COORDINATE_SYSTEM, LinearInterpolator } = require('@deck.gl/core'); import DeckGL from '@deck.gl/react'; import { PointCloudLayer } from '@rapidsai/deck.gl'; import * as React from 'react' import { PureComponent } from 'react'; import { render } from 'react-dom'; i...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/icon/package.json
{ "private": true, "name": "@rapidsai/demo-deck-icon", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-sourc...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/icon/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/icon/README.md
This is a minimal standalone version of the IconLayer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/). You can either set an environment variab...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/icon/icon-cluster-layer.js
import { CompositeLayer } from '@deck.gl/core'; import { IconLayer } from '@deck.gl/layers'; import Supercluster from 'supercluster'; function getIconName(size) { if (size === 0) { return ''; } if (size < 10) { return `marker-${size}`; } if (size < 100) { return `marker-${Math.floor(size / 10)}0`...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/icon/app.jsx
import { MapView } from '@deck.gl/core'; import { IconLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; import IconClusterLayer from './icon-cluster-layer'...
0
rapidsai_public_repos/node/modules/demo/deck/icon
rapidsai_public_repos/node/modules/demo/deck/icon/data/location-icon-mapping.json
{ "marker-1": { "x": 0, "y": 0, "width": 128, "height": 128, "anchorY": 128 }, "marker-2": { "x": 128, "y": 0, "width": 128, "height": 128, "anchorY": 128 }, "marker-3": { "x": 256, "y": 0, "width": 128, "height": 128, "anchorY": 128 }, "marker-4...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/tagmap/package.json
{ "private": true, "name": "@rapidsai/demo-deck-tagmap", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-sou...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/tagmap/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/tagmap/README.md
This is a standalone version of the TagMap example built upon [deck.gl](http://deck.gl). ![tagmap](https://raw.githubusercontent.com/rivulet-zhang/rivulet-zhang.github.io/master/dataRepo/static/tagmap.png) ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access tok...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/tagmap/app.jsx
/* eslint-disable max-len */ import { TextLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; import TagmapLayer from './tagmap-layer'; // Set your mapbox t...
0
rapidsai_public_repos/node/modules/demo/deck/tagmap
rapidsai_public_repos/node/modules/demo/deck/tagmap/tagmap-layer/index.js
export {default} from './tagmap-layer';
0
rapidsai_public_repos/node/modules/demo/deck/tagmap
rapidsai_public_repos/node/modules/demo/deck/tagmap/tagmap-layer/README.md
# Tagmap Layer The tagmap layer generates and visualizes [an occlusion-free label layout on map](https://github.com/rivulet-zhang/tagmap.js). ```js import DeckGL from '@deck.gl/react'; import TagmapLayer from './tagmap-layer'; const App = ({data, viewport}) => { /** * Data format: * [ * {label: '#San ...
0
rapidsai_public_repos/node/modules/demo/deck/tagmap
rapidsai_public_repos/node/modules/demo/deck/tagmap/tagmap-layer/tagmap-wrapper.js
/* create a tagmap instance, set colorscheme, sizeMeasurer */ /* eslint-disable max-len */ /* global document */ import TagMap from 'tagmap.js'; import RBush from 'rbush'; import {lngLatToWorld, worldToLngLat} from '@math.gl/web-mercator'; function getDrawingContext() { const canvas = document.createElement('canvas'...
0
rapidsai_public_repos/node/modules/demo/deck/tagmap
rapidsai_public_repos/node/modules/demo/deck/tagmap/tagmap-layer/tagmap-layer.js
/* eslint-disable max-len */ import {CompositeLayer} from '@deck.gl/core'; import {TextLayer} from '@deck.gl/layers'; import {scaleQuantile} from 'd3-scale'; import TagMapWrapper from './tagmap-wrapper'; const DEFAULT_COLOR_SCHEME = [ [29, 145, 192], [65, 182, 196], [127, 205, 187], [199, 233, 180], [237, 24...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/playground/package.json
{ "private": true, "name": "@rapidsai/demo-deck-playground", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/playground/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/scatterplot.json
{ "description": "The deck.gl website ScatterplotLayer example in JSON format", "websiteUrl": "https://deck.gl/#/examples/core-layers/scattterplot-layer", "initialViewState": { "longitude": -74, "latitude": 40.7, "zoom": 11, "maxZoom": 16, "pitch": 0, "bearing": 0 }, "views": [ { ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/index.js
export default { // WEBSITE EXAMPLES AS JSON PAYLOADS 'website/3D Heatmap (HexagonLayer)':/* */ require('./3d-heatmap.json'), 'website/3D Heatmap (wth Minimap)':/* */ require('./3d-heatmap-minimap.json'), 'website/GeoJSON (GeoJsonLayer)':/* */ require('./geojson.json'), 'w...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/tagmap.json
{ "description": "A deck.gl TextLayer example in JSON format", "initialViewState": { "latitude": 39.1, "longitude": -94.57, "zoom": 3.8, "maxZoom": 16, "pitch": 0, "bearing": 0 }, "views": [ { "@@type": "MapView", "controller": true, "mapStyle": "https://basemaps.ca...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-tiles-royal.json
{ "description": "The deck.gl website tile-3d-layer example", "websiteUrl": "https://deck.gl/#/examples/geo-layers/tile-3d-layer", "initialViewState": { "latitude": -37.8058, "longitude": 144.9713, "pitch": 45, "maxPitch": 60, "bearing": 0, "minZoom": 2, "maxZoom": 20, "zoom": 17.3...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/screen-grid.json
{ "description": "The deck.gl website ScreenGridLayer example in JSON format", "websiteUrl": "https://deck.gl/#/examples/core-layers/screen-grid-layer", "initialViewState": { "longitude": -119.3, "latitude": 35.6, "zoom": 6, "maxZoom": 20, "pitch": 0, "bearing": 0 }, "map": true, "vi...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/README.md
# JSON examples JSON versions of deck.gl examples go into this folder. - New examples need to be listed in `../'src/templates.js` - Any new layers or classes used by the examples need to be added to `../'src/configuration.js`
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-heatmap.json
{ "description": "The deck.gl website hexagonlayer example in JSON format", "websiteUrl": "https://deck.gl/#/examples/core-layers/hexagon-layer", "initialViewState": { "longitude": -1.4157267858730052, "latitude": 52.232395363869415, "zoom": 6.6, "minZoom": 5, "maxZoom": 15, "pitch": 40.5,...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-tiles-cairo-vricon.json
{ "description": "The deck.gl website tile-3d-layer example", "websiteUrl": "https://deck.gl/#/examples/geo-layers/tile-3d-layer", "initialViewState": { "latitude": 29.99, "longitude": 31.13, "pitch": 45, "maxPitch": 60, "bearing": 0, "minZoom": 2, "maxZoom": 30, "zoom": 12.8 }, ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/line.json
{ "description": "The deck.gl website LineLayer example in JSON format", "websiteUrl": "https://deck.gl/#/examples/line-layers/line-layer", "initialViewState": { "latitude": 47.65, "longitude": 7, "zoom": 4.5, "maxZoom": 16, "pitch": 50, "bearing": 0 }, "map": true, "pickingRadius": ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/dot-text.json
{ "description": "A minimal deck.gl example rendering a circle with text", "initialViewState": { "longitude": -122.45, "latitude": 37.8, "zoom": 12 }, "layers": [ { "@@type": "ScatterplotLayer", "data": [ { "position": [ -122.45, 37.8 ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-tiles-new-york.json
{ "description": "The deck.gl website tile-3d-layer example", "websiteUrl": "https://deck.gl/#/examples/geo-layers/tile-3d-layer", "initialViewState": { "latitude": 40.73, "longitude": -73.99, "pitch": 45, "maxPitch": 60, "bearing": 0, "minZoom": 2, "maxZoom": 30, "zoom": 10.77 }...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/us-map.json
{ "description": "A deck.gl get-started GeoJsonLayer example in JSON format", "initialViewState": { "latitude": 40, "longitude": -100, "zoom": 3, "bearing": 30, "pitch": 30 }, "map": true, "views": [ { "@@type": "MapView", "controller": true } ], "layers": [ { ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/geojson.json
{ "description": "The deck.gl website GeoJsonLayer (polygons) example in JSON format", "websiteUrl": "https://deck.gl/#/examples/core-layers/geojson-layer-polygons", "initialViewState": { "latitude": 49.254, "longitude": -123.13, "zoom": 11, "maxZoom": 16, "pitch": 45, "bearing": 0 }, ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-tiles-st-helens.json
{ "description": "The deck.gl website tile-3d-layer example", "websiteUrl": "https://deck.gl/#/examples/geo-layers/tile-3d-layer", "initialViewState": { "latitude": 46.26, "longitude": -122.12, "pitch": 45, "maxPitch": 60, "bearing": 0, "minZoom": 2, "maxZoom": 30, "zoom": 10 }, ...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/carto.json
{ "description": "CartoLayer declarative example", "initialViewState": { "latitude": 40.7368521, "longitude": -73.8536065, "zoom": 3, "pitch": 0, "bearing": 0 }, "views": [ { "@@type": "MapView", "controller": true, "mapStyle": "https://basemaps.cartocdn.com/gl/positron...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/json-examples/3d-heatmap-minimap.json
{ "description": "The deck.gl website hexagonlayer example (with added minimap)", "websiteUrl": "https://deck.gl/#/examples/core-layers/hexagon-layer", "initialViewState": { "id": "view-state", "longitude": -1.4157267858730052, "latitude": 52.232395363869415, "zoom": 6.6, "minZoom": 5, "ma...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/src/deck-with-google-maps.jsx
/* global console, document, window */ import { GoogleMapsOverlay } from '@deck.gl/google-maps'; import * as React from 'react'; import { Component } from 'react'; const HOST = 'https://maps.googleapis.com/maps/api/js'; const LOADING_GIF = 'https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif'; const s...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/src/configuration.js
// This configuration object determines which deck.gl classes are accessible in Playground import { MapView, FirstPersonView, OrbitView, OrthographicView } from '@deck.gl/core'; import * as Layers from '@deck.gl/layers'; import * as AggregationLayers from '@deck.gl/aggregation-layers'; import * as GeoLayers from '@dec...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/src/deck-with-mapbox-maps.jsx
import { View } from '@deck.gl/core'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; export default class DeckWithMapboxMaps extends Component { render() { const { views = [] } = this.props; const maps = []; for (const view of views) { if (v...
0
rapidsai_public_repos/node/modules/demo/deck/playground
rapidsai_public_repos/node/modules/demo/deck/playground/src/app.jsx
import * as React from 'react' import { Component, Fragment } from 'react'; import { StaticMap } from 'react-map-gl'; import DeckWithMapboxMaps from './deck-with-mapbox-maps.jsx'; import DeckWithGoogleMaps from './deck-with-google-maps.jsx'; import { FlyToInterpolator } from '@deck.gl/core'; import { JSONConverter, JS...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/highway/package.json
{ "private": true, "name": "@rapidsai/demo-deck-highway", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-so...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/highway/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/highway/README.md
This is a minimal standalone version of the GeoJsonLayer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/). You can either set an environment var...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/highway/app.jsx
import { GeoJsonLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import { scaleLinear, scaleThreshold } from 'd3-scale'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; // Set your mapbox token here con...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/map-tile/package.json
{ "private": true, "name": "@rapidsai/demo-deck-map-tile", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-s...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/map-tile/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/map-tile/README.md
This is a standalone version of the [OpenStreetMap](https://www.openstreetmap.org/) example using TileLayer and BitmapLayer on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. ```bash # install dependencies npm install # or yarn # bundle and serve the app with webpack np...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/map-tile/app.jsx
import { MapView } from '@deck.gl/core'; import { TileLayer } from '@deck.gl/geo-layers'; import { BitmapLayer, PathLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; const INITIAL_VIEW_STATE = { latitude: 47.65, longitude: 7, zoom: 4.5, maxZoom: 20, maxPitch...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/image-tile/package.json
{ "private": true, "name": "@rapidsai/demo-deck-image-tile", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/image-tile/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/image-tile/README.md
This is a standalone high resolution image example using TileLayer and BitmapLayer, with non-geospatial coordinates on the [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. ```bash # install dependencies npm install # or yarn # bundle and serve the app with webpack npm sta...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/image-tile/app.jsx
import * as React from 'react' import { PureComponent } from 'react'; import { render } from 'react-dom'; import { OrthographicView, COORDINATE_SYSTEM } from '@deck.gl/core'; import DeckGL from '@deck.gl/react'; import { TileLayer } from '@deck.gl/geo-layers'; import { BitmapLayer } from '@deck.gl/layers'; import { lo...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/3d-tiles/package.json
{ "private": true, "name": "@rapidsai/demo-deck-3d-tiles", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-s...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/3d-tiles/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/3d-tiles/README.md
This is a minimal standalone version of the 3D Tile example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/). You can either set an environment variable...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/3d-tiles/app.jsx
import { Tile3DLayer } from '@deck.gl/geo-layers'; import DeckGL from '@deck.gl/react'; import { CesiumIonLoader } from '@loaders.gl/3d-tiles'; import { registerLoaders } from '@loaders.gl/core'; // To manage dependencies and bundle size, the app must decide which supporting loaders to bring in import { DracoWorkerLoad...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/worldmap/package.json
{ "private": true, "name": "@rapidsai/demo-deck-worldmap", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-s...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/worldmap/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/worldmap/README.md
This is a minimal standalone version of the Worldmap example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. ```bash # install dependencies npm install # or yarn # bundle and serve the app with webpack npm start ```
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/worldmap/app.jsx
import { _SunLight as SunLight, AmbientLight, LightingEffect } from '@deck.gl/core'; import { GeoJsonLayer, PolygonLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/trips/package.json
{ "private": true, "name": "@rapidsai/demo-deck-trips", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable-sour...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/trips/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/trips/README.md
This is a minimal standalone version of the [TripsLayer example](https://deck.gl/#/examples/custom-layers/trip-routes) on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/trips/app.jsx
/* global window */ import { AmbientLight, LightingEffect, PointLight } from '@deck.gl/core'; import { TripsLayer } from '@deck.gl/geo-layers'; import { PolygonLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import { render } from '...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/scatterplot/package.json
{ "private": true, "name": "@rapidsai/demo-deck-scatterplot", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enabl...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/scatterplot/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/scatterplot/README.md
This is a minimal standalone version of the ScatterplotLayer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/). You can either set an environment...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/scatterplot/app.jsx
import { ScatterplotLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; // Set your mapbox token here const MAPBOX_TOKEN = process.env.MapboxAccessToken; //...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/text-layer/package.json
{ "private": true, "name": "@rapidsai/demo-deck-text-layer", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/text-layer/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/text-layer/README.md
This is a standalone demo of the [text layer](./text-layer) built upon [deck.gl](http://deck.gl). This example illustrates the text layer features by animating a small sample of Twitter hashtags posted in the U.S. during one day. You can tweak `app.js` to generate a static text layer instead. ### Usage Copy the conte...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/text-layer/app.jsx
/* eslint-disable max-len */ /* global fetch, window */ import { TextLayer } from '@deck.gl/layers'; import DeckGL from '@deck.gl/react'; import GL from '@luma.gl/constants'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/screen-grid/package.json
{ "private": true, "name": "@rapidsai/demo-deck-screengrid", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules --enable...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/screen-grid/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/screen-grid/README.md
This is a minimal standalone version of the ScreenGridLayer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. To see the base map, you need a [Mapbox access token](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/). You can either set an environment ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/screen-grid/app.jsx
import { ScreenGridLayer } from '@deck.gl/aggregation-layers'; import DeckGL from '@deck.gl/react'; import { isWebGL2 } from '@luma.gl/core'; import * as React from 'react'; import { Component } from 'react'; import { render } from 'react-dom'; import { StaticMap } from 'react-map-gl'; // Set your mapbox token here co...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/bezier/package.json
{ "private": true, "name": "@rapidsai/demo-deck-bezier", "version": "22.12.2", "main": "index.js", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-v...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/bezier/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/bezier/README.md
This is a minimal standalone version of the BezierCurveLayer example on [deck.gl](http://deck.gl) website. ### Usage Copy the content of this folder to your project. Run ``` npm install npm start ``` ### Data format To use your own data, checkout the [documentation of BezierCurveLayer](../../docs/layers/bezier-curve-...
0
rapidsai_public_repos/node/modules/demo/deck/bezier
rapidsai_public_repos/node/modules/demo/deck/bezier/src/sample-graph.json
{ "nodes": [ {"id": "a", "position": [0, -100]}, {"id": "b", "position": [-95.1, -30.9]}, {"id": "c", "position": [-58.7, 80.9]}, {"id": "d", "position": [58.7, 80.9]}, {"id": "e", "position": [95.1, -30.9]}, {"id": "f", "position": [0, 0]} ], "edges": [ { "id": "1", "sourc...
0
rapidsai_public_repos/node/modules/demo/deck/bezier
rapidsai_public_repos/node/modules/demo/deck/bezier/src/bezier-graph-layer.js
import {COORDINATE_SYSTEM, CompositeLayer} from '@deck.gl/core'; import {ScatterplotLayer} from '@deck.gl/layers'; import BezierCurveLayer from './bezier-curve-layer/bezier-curve-layer'; export default class BezierGraphLayer extends CompositeLayer { updateState({props, changeFlags}) { if (changeFlags.dataChanged...
0
rapidsai_public_repos/node/modules/demo/deck/bezier
rapidsai_public_repos/node/modules/demo/deck/bezier/src/app.jsx
import { OrthographicView } from '@deck.gl/core'; import DeckGL from '@deck.gl/react'; import * as React from 'react'; import { Component } from 'react'; import * as ReactDOM from 'react-dom'; import BezierGraphLayer from './bezier-graph-layer'; import SAMPLE_GRAPH from './sample-graph.json'; const INITIAL_VIEW_STATE...
0
rapidsai_public_repos/node/modules/demo/deck/bezier/src
rapidsai_public_repos/node/modules/demo/deck/bezier/src/bezier-curve-layer/bezier-curve-layer.js
// Copyright (c) 2015 - 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...
0
rapidsai_public_repos/node/modules/demo/deck/bezier/src
rapidsai_public_repos/node/modules/demo/deck/bezier/src/bezier-curve-layer/bezier-curve-layer-vertex.glsl.js
// Copyright (c) 2015 - 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...
0
rapidsai_public_repos/node/modules/demo/deck/bezier/src
rapidsai_public_repos/node/modules/demo/deck/bezier/src/bezier-curve-layer/README.md
# Bezier Curve Layer This layer renders qudratic bezier curves. Right now it accepts only one control point. import BezierCurveLayer from './bezier-curve-layer'; Inherits from all [Base Layer](/docs/layers/base-layer.md) properties. ##### `getSourcePosition` (Function, optional) - Default: `d => d.sourcePositi...
0
rapidsai_public_repos/node/modules/demo/deck/bezier/src
rapidsai_public_repos/node/modules/demo/deck/bezier/src/bezier-curve-layer/bezier-curve-layer-fragment.glsl.js
// Copyright (c) 2015 - 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...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/interleaved-buffer/package.json
{ "private": true, "name": "@rapidsai/demo-deck-interleaved-buffer", "version": "22.12.2", "license": "Apache-2.0", "author": "NVIDIA, Inc. (https://nvidia.com/)", "maintainers": [ "Paul Taylor <paul.e.taylor@me.com>" ], "bin": "index.js", "scripts": { "start": "node --experimental-vm-modules ...
0
rapidsai_public_repos/node/modules/demo/deck
rapidsai_public_repos/node/modules/demo/deck/interleaved-buffer/index.js
#!/usr/bin/env node // Copyright (c) 2020, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
0