File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "scripts" : {
33 "start" : " webpack-dev-server --progress --hot --open" ,
4- "start-local" : " webpack-dev-server --env.local --progress --hot --open" ,
5- "start-es6 " : " webpack-dev-server --env.es6 --progress --hot --open"
4+ "start-local" : " webpack-dev-server --env.es6 --progress --hot --open" ,
5+ "start-local-es5 " : " webpack-dev-server --env.local --progress --hot --open"
66 },
77 "dependencies" : {
8- "deck.gl" : " >=4.2.0-alpha.10" ,
98 "colorbrewer" : " ^1.0.0" ,
9+ "deck.gl" : " >=4.2.0-alpha.12" ,
1010 "extrude-polyline" : " ^1.0.6" ,
11- "luma.gl" : " >=4.1.0-alpha.4 " ,
11+ "luma.gl" : " >=4.1.0-alpha.5 " ,
1212 "react" : " ^15.4.1" ,
1313 "react-autobind" : " ^1.0.6" ,
1414 "react-dom" : " ^15.4.1" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export {default as s2cells} from '../data/sf.s2cells.json';
1414export { choropleths } ;
1515
1616export const points = allPoints ;
17- export const positionOrigin = [ - 122.45 , 37.75 , 0 ] ;
17+ export const positionOrigin = [ - 122.42694203247012 , 37.751537058389985 ] ;
1818
1919export const worldGrid = pointsToWorldGrid ( points , 500 ) ;
2020
@@ -24,6 +24,21 @@ export const zigzag = [
2424 positionOrigin [ 0 ] + i * i * 0.001 ,
2525 positionOrigin [ 1 ] + Math . cos ( i * Math . PI ) * 0.2 / ( i + 4 )
2626 ] )
27+ } ,
28+ {
29+ path : new Array ( 6 ) . fill ( 0 ) . map ( ( d , i ) => [
30+ positionOrigin [ 0 ] + Math . cos ( i * Math . PI ) * 0.05 / ( i + 4 ) ,
31+ positionOrigin [ 1 ] - i * i * 0.0003
32+ ] )
33+ } ,
34+ {
35+ path : [ [
36+ positionOrigin [ 0 ] - 0.005 ,
37+ positionOrigin [ 1 ] + 0.005
38+ ] , [
39+ positionOrigin [ 0 ] - 0.005 ,
40+ positionOrigin [ 1 ] - 0.005
41+ ] ]
2742 }
2843] ;
2944
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import {
2121// Demonstrate immutable support
2222import { experimental } from 'deck.gl' ;
2323const { get} = experimental ;
24-
2524import dataSamples from '../immutable-data-samples' ;
2625import { parseColor , setOpacity } from '../utils/color' ;
2726
Original file line number Diff line number Diff line change 4646 "earcut" : " ^2.0.6" ,
4747 "mjolnir.js" : " >=0.1.0" ,
4848 "lodash.flattendeep" : " ^4.4.0" ,
49- "luma.gl" : " >=4.1.0-alpha.4 " ,
50- "math.gl" : " >= 1.0.0-alpha.7 " ,
49+ "luma.gl" : " >=4.1.0-alpha.5 " ,
50+ "math.gl" : " >= 1.0.0-alpha.8 " ,
5151 "prop-types" : " ^15.5.8" ,
5252 "seer" : " ^0.2.3" ,
5353 "viewport-mercator-project" : " >= 4.2.0-alpha.2"
Original file line number Diff line number Diff line change @@ -186,8 +186,13 @@ function drawLayersInViewport(gl, {
186186 { layerIndex}
187187 ) ;
188188
189+ // All parameter resolving is done here instead of the layer
189190 // Blend parameters must not be overriden
190- const layerParameters = Object . assign ( { viewport : glViewport } , layer . props . parameters || { } ) ;
191+ const layerParameters = Object . assign ( { } , layer . props . parameters || { } , parameters ) ;
192+
193+ Object . assign ( layerParameters , {
194+ viewport : glViewport
195+ } ) ;
191196
192197 if ( drawPickingColors ) {
193198 // TODO - Disable during picking
@@ -198,7 +203,7 @@ function drawLayersInViewport(gl, {
198203 } ) ;
199204 }
200205
201- withParameters ( gl , parameters , ( ) => {
206+ withParameters ( gl , layerParameters , ( ) => {
202207 layer . drawLayer ( {
203208 moduleParameters,
204209 uniforms,
@@ -215,7 +220,7 @@ function drawLayersInViewport(gl, {
215220 const message = `\
216221#${ renderCount ++ } : Rendering ${ pass } : ${ visibleCount } of ${ totalCount } layers \
217222(${ hiddenCount } hidden, ${ compositeCount } composite ${ pickableCount } unpickable) \
218- DPR={pixelRatio} pick={$ drawPickingColors}` ;
223+ DPR={pixelRatio} pick=${ drawPickingColors } ` ;
219224
220225 log . log ( 2 , message ) ;
221226}
Original file line number Diff line number Diff line change @@ -2890,9 +2890,9 @@ lru-cache@^4.0.1:
28902890 pseudomap "^1.0.2"
28912891 yallist "^2.1.2"
28922892
2893- luma.gl@>=4.1.0-alpha.4 :
2894- version "4.1.0-alpha.4 "
2895- resolved "https://registry.yarnpkg.com/luma.gl/-/luma.gl-4.1.0-alpha.4 .tgz#67d23ad2d1e15444fb6d8b09bed5494ba829443f "
2893+ luma.gl@>=4.1.0-alpha.5 :
2894+ version "4.1.0-alpha.5 "
2895+ resolved "https://registry.yarnpkg.com/luma.gl/-/luma.gl-4.1.0-alpha.5 .tgz#15a71db0fa28bb56b0820c72d5bef96197154d54 "
28962896 dependencies :
28972897 gl-mat4 "^1.1.4"
28982898 gl-quat "^1.0.0"
@@ -2918,7 +2918,17 @@ map-obj@^1.0.0, map-obj@^1.0.1:
29182918 version "1.0.1"
29192919 resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
29202920
2921- " math.gl@>= 1.0.0-alpha.7" , math.gl@^1.0.0-alpha.7:
2921+ " math.gl@>= 1.0.0-alpha.8 " :
2922+ version "1.0.0-alpha.8"
2923+ resolved "https://registry.yarnpkg.com/math.gl/-/math.gl-1.0.0-alpha.8.tgz#51dd8d03e5c50096851e8a268d888c1eda766cd1"
2924+ dependencies :
2925+ gl-mat4 "^1.1.4"
2926+ gl-quat "^1.0.0"
2927+ gl-vec2 "^1.0.0"
2928+ gl-vec3 "^1.0.3"
2929+ gl-vec4 "^1.0.1"
2930+
2931+ math.gl@^1.0.0-alpha.7 :
29222932 version "1.0.0-alpha.7"
29232933 resolved "https://registry.yarnpkg.com/math.gl/-/math.gl-1.0.0-alpha.7.tgz#c8b2ed001f0f9f805f499e23f99fd69f576bdebc"
29242934 dependencies :
You can’t perform that action at this time.
0 commit comments