@flowmap.gl/layers 8.0.0-alpha.25 → 8.0.0-alpha.27
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/.turbo/turbo-build.log +9 -0
- package/.turbo/turbo-dev.log +0 -0
- package/LICENSE +2 -2
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayer.d.ts.map +1 -1
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayer.js +13 -20
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerFragment.glsl.d.ts.map +1 -1
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerFragment.glsl.js +4 -16
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerVertex.glsl.d.ts.map +1 -1
- package/dist/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerVertex.glsl.js +4 -16
- package/dist/AnimatedFlowLinesLayer/index.d.ts.map +1 -1
- package/dist/AnimatedFlowLinesLayer/index.js +6 -1
- package/dist/FlowCirclesLayer/FlowCirclesLayer.d.ts +1 -1
- package/dist/FlowCirclesLayer/FlowCirclesLayer.d.ts.map +1 -1
- package/dist/FlowCirclesLayer/FlowCirclesLayer.js +9 -18
- package/dist/FlowCirclesLayer/FlowCirclesLayerFragment.glsl.d.ts.map +1 -1
- package/dist/FlowCirclesLayer/FlowCirclesLayerFragment.glsl.js +4 -16
- package/dist/FlowCirclesLayer/FlowCirclesLayerVertex.glsl.d.ts.map +1 -1
- package/dist/FlowCirclesLayer/FlowCirclesLayerVertex.glsl.js +4 -16
- package/dist/FlowCirclesLayer/index.d.ts.map +1 -1
- package/dist/FlowCirclesLayer/index.js +6 -1
- package/dist/FlowLinesLayer/FlowLinesLayer.d.ts.map +1 -1
- package/dist/FlowLinesLayer/FlowLinesLayer.js +18 -20
- package/dist/FlowLinesLayer/FlowLinesLayerFragment.glsl.d.ts.map +1 -1
- package/dist/FlowLinesLayer/FlowLinesLayerFragment.glsl.js +4 -16
- package/dist/FlowLinesLayer/FlowLinesLayerVertex.glsl.d.ts.map +1 -1
- package/dist/FlowLinesLayer/FlowLinesLayerVertex.glsl.js +4 -16
- package/dist/FlowLinesLayer/index.d.ts.map +1 -1
- package/dist/FlowLinesLayer/index.js +6 -1
- package/dist/FlowmapLayer.d.ts +9 -7
- package/dist/FlowmapLayer.d.ts.map +1 -1
- package/dist/FlowmapLayer.js +144 -116
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +6 -1
- package/package.json +4 -3
- package/src/AnimatedFlowLinesLayer/AnimatedFlowLinesLayer.ts +3 -15
- package/src/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerFragment.glsl.ts +3 -15
- package/src/AnimatedFlowLinesLayer/AnimatedFlowLinesLayerVertex.glsl.ts +3 -15
- package/src/AnimatedFlowLinesLayer/index.ts +6 -0
- package/src/FlowCirclesLayer/FlowCirclesLayer.ts +3 -15
- package/src/FlowCirclesLayer/FlowCirclesLayerFragment.glsl.ts +3 -15
- package/src/FlowCirclesLayer/FlowCirclesLayerVertex.glsl.ts +3 -15
- package/src/FlowCirclesLayer/index.ts +6 -0
- package/src/FlowLinesLayer/FlowLinesLayer.ts +3 -15
- package/src/FlowLinesLayer/FlowLinesLayerFragment.glsl.ts +3 -15
- package/src/FlowLinesLayer/FlowLinesLayerVertex.glsl.ts +3 -15
- package/src/FlowLinesLayer/index.ts +6 -0
- package/src/FlowmapLayer.ts +17 -17
- package/src/index.ts +6 -0
- package/src/types.ts +6 -0
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,aAAa,EAEb,WAAW,EACX,cA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AI,WAAW,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAO7E,MAAM,MAAM,uBAAuB,CAAC,CAAC,EAAE,CAAC,IACpC,mBAAmB,CAAC,CAAC,CAAC,GAEtB,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
1
6
|
export var PickingType;
|
|
2
7
|
(function (PickingType) {
|
|
3
8
|
PickingType["LOCATION"] = "location";
|
|
@@ -17,4 +22,4 @@ export var PickingType;
|
|
|
17
22
|
// .type === 'FeatureCollection'
|
|
18
23
|
// );
|
|
19
24
|
// }
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQVdILE1BQU0sQ0FBTixJQUFZLFdBSVg7QUFKRCxXQUFZLFdBQVc7SUFDckIsb0NBQXFCLENBQUE7SUFDckIsNEJBQWEsQ0FBQTtJQUNiLG1DQUFtQztBQUNyQyxDQUFDLEVBSlcsV0FBVyxLQUFYLFdBQVcsUUFJdEI7QUE4Q0QsNkRBQTZEO0FBQzdELDREQUE0RDtBQUU1RCwwQkFBMEI7QUFDMUIsNERBQTREO0FBQzVELHNCQUFzQjtBQUV0Qix1Q0FBdUM7QUFDdkMsMEJBQTBCO0FBQzFCLDBFQUEwRTtBQUMxRSxhQUFhO0FBQ2IsMkVBQTJFO0FBQzNFLHNDQUFzQztBQUN0Qy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8gZXhwb3J0IHR5cGUgTG9jYXRpb25Qcm9wZXJ0aWVzID0gUmVjb3JkPHN0cmluZywgdW5rbm93bj47XG5cbi8vIGV4cG9ydCB0eXBlIExvY2F0aW9ucyA9XG4vLyAgIHwgRmVhdHVyZUNvbGxlY3Rpb248R2VvbWV0cnlPYmplY3QsIExvY2F0aW9uUHJvcGVydGllcz5cbi8vICAgfCBGbG93TG9jYXRpb25bXTtcblxuLy8gZXhwb3J0IGZ1bmN0aW9uIGlzRmVhdHVyZUNvbGxlY3Rpb24oXG4vLyAgIGxvY2F0aW9uczogTG9jYXRpb25zLFxuLy8gKTogbG9jYXRpb25zIGlzIEZlYXR1cmVDb2xsZWN0aW9uPEdlb21ldHJ5T2JqZWN0LCBMb2NhdGlvblByb3BlcnRpZXM+IHtcbi8vICAgcmV0dXJuIChcbi8vICAgICAobG9jYXRpb25zIGFzIEZlYXR1cmVDb2xsZWN0aW9uPEdlb21ldHJ5T2JqZWN0LCBMb2NhdGlvblByb3BlcnRpZXM+KVxuLy8gICAgICAgLnR5cGUgPT09ICdGZWF0dXJlQ29sbGVjdGlvbidcbi8vICAgKTtcbi8vIH1cbiJdfQ==
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowmap.gl/layers",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.27",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"repository": "git@github.com:
|
|
7
|
+
"repository": "git@github.com:visgl/flowmap.gl.git",
|
|
8
8
|
"author": "Ilya Boyandin <ilya@boyandin.me>",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
|
+
"type": "module",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"dev": "tsc --watch",
|
|
12
13
|
"build": "rm -rf dist && tsc",
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"@luma.gl/constants": "^8.5.10",
|
|
19
20
|
"@luma.gl/core": "^8.5.10"
|
|
20
21
|
},
|
|
21
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "7d144bbc281c4bb72fbc0bb516a50cc3f10c5ee8",
|
|
22
23
|
"publishConfig": {
|
|
23
24
|
"access": "public"
|
|
24
25
|
}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
|
|
19
7
|
import {Layer, picking, project32} from '@deck.gl/core';
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
|
|
19
7
|
export default `\
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
export default `\
|
|
19
7
|
#define SHADER_NAME animated-flow-lines-layer-vertex-shader
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
|
|
19
7
|
import {Layer, picking, project32} from '@deck.gl/core';
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
export default `\
|
|
19
7
|
#define SHADER_NAME flow-circles-layer-fragment-shader
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
export default `\
|
|
19
7
|
#define SHADER_NAME flow-circles-layer-vertex-shader
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
|
|
19
7
|
import {Layer, picking, project32} from '@deck.gl/core';
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
export default `\
|
|
19
7
|
#define SHADER_NAME flow-line-layer-fragment-shader
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
* Copyright 2018-2020 Teralytics
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
5
|
*/
|
|
18
6
|
export default `\
|
|
19
7
|
#define SHADER_NAME flow-line-layer-vertex-shader
|
package/src/FlowmapLayer.ts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
16
5
|
*/
|
|
17
6
|
import {CompositeLayer} from '@deck.gl/core';
|
|
18
7
|
import {ScatterplotLayer, TextLayer} from '@deck.gl/layers';
|
|
@@ -44,10 +33,14 @@ import {
|
|
|
44
33
|
PickingType,
|
|
45
34
|
} from './types';
|
|
46
35
|
|
|
47
|
-
export type FlowmapLayerProps<
|
|
36
|
+
export type FlowmapLayerProps<
|
|
37
|
+
L extends Record<string, any>,
|
|
38
|
+
F extends Record<string, any>,
|
|
39
|
+
> = {
|
|
48
40
|
data?: FlowmapData<L, F>;
|
|
49
41
|
dataProvider?: FlowmapDataProvider<L, F>;
|
|
50
42
|
filter?: FilterState;
|
|
43
|
+
locationsEnabled?: boolean;
|
|
51
44
|
locationTotalsEnabled?: boolean;
|
|
52
45
|
locationLabelsEnabled?: boolean;
|
|
53
46
|
adaptiveScalesEnabled?: boolean;
|
|
@@ -72,6 +65,7 @@ export type FlowmapLayerProps<L, F> = {
|
|
|
72
65
|
|
|
73
66
|
const PROPS_TO_CAUSE_LAYER_DATA_UPDATE: string[] = [
|
|
74
67
|
'filter',
|
|
68
|
+
'locationsEnabled',
|
|
75
69
|
'locationTotalsEnabled',
|
|
76
70
|
'locationLabelsEnabled',
|
|
77
71
|
'adaptiveScalesEnabled',
|
|
@@ -106,7 +100,7 @@ type HighlightedFlowObject = {
|
|
|
106
100
|
|
|
107
101
|
type HighlightedObject = HighlightedLocationObject | HighlightedFlowObject;
|
|
108
102
|
|
|
109
|
-
type State<L, F
|
|
103
|
+
type State<L extends Record<string, any>, F extends Record<string, any>> = {
|
|
110
104
|
accessors: FlowmapAggregateAccessors<L, F>;
|
|
111
105
|
dataProvider: FlowmapDataProvider<L, F>;
|
|
112
106
|
layersData: LayersData | undefined;
|
|
@@ -118,10 +112,14 @@ type State<L, F> = {
|
|
|
118
112
|
|
|
119
113
|
export type SourceEvent = {srcEvent: MouseEvent};
|
|
120
114
|
|
|
121
|
-
export default class FlowmapLayer<
|
|
115
|
+
export default class FlowmapLayer<
|
|
116
|
+
L extends Record<string, any>,
|
|
117
|
+
F extends Record<string, any>,
|
|
118
|
+
> extends CompositeLayer {
|
|
122
119
|
static defaultProps = {
|
|
123
120
|
darkMode: true,
|
|
124
121
|
fadeAmount: 50,
|
|
122
|
+
locationsEnabled: true,
|
|
125
123
|
locationTotalsEnabled: true,
|
|
126
124
|
locationLabelsEnabled: false,
|
|
127
125
|
animationEnabled: false,
|
|
@@ -275,6 +273,7 @@ export default class FlowmapLayer<L, F> extends CompositeLayer {
|
|
|
275
273
|
|
|
276
274
|
private _getSettingsState() {
|
|
277
275
|
const {
|
|
276
|
+
locationsEnabled,
|
|
278
277
|
locationTotalsEnabled,
|
|
279
278
|
locationLabelsEnabled,
|
|
280
279
|
adaptiveScalesEnabled,
|
|
@@ -291,6 +290,7 @@ export default class FlowmapLayer<L, F> extends CompositeLayer {
|
|
|
291
290
|
maxTopFlowsDisplayNum,
|
|
292
291
|
} = this.props;
|
|
293
292
|
return {
|
|
293
|
+
locationsEnabled,
|
|
294
294
|
locationTotalsEnabled,
|
|
295
295
|
locationLabelsEnabled,
|
|
296
296
|
adaptiveScalesEnabled,
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Flowmap.gl contributors
|
|
3
|
+
* Copyright (c) 2018-2020 Teralytics
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
export {default as AnimatedFlowLinesLayer} from './AnimatedFlowLinesLayer';
|
|
2
8
|
export {default as FlowLinesLayer} from './FlowLinesLayer';
|
|
3
9
|
export {default as FlowCirclesLayer} from './FlowCirclesLayer';
|