external.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. declare module 'deck.gl' {
  20. import { Layer, LayerProps } from '@deck.gl/core';
  21. interface HeatmapLayerProps<T extends object = any> extends LayerProps<T> {
  22. id?: string;
  23. data?: T[];
  24. getPosition?: (d: T) => number[] | null | undefined;
  25. getWeight?: (d: T) => number | null | undefined;
  26. radiusPixels?: number;
  27. colorRange?: number[][];
  28. threshold?: number;
  29. intensity?: number;
  30. aggregation?: string;
  31. }
  32. interface ContourLayerProps<T extends object = any> extends LayerProps<T> {
  33. id?: string;
  34. data?: T[];
  35. getPosition?: (d: T) => number[] | null | undefined;
  36. getWeight?: (d: T) => number | null | undefined;
  37. contours: {
  38. color?: ColorType | undefined;
  39. lowerThreshold?: any | undefined;
  40. upperThreshold?: any | undefined;
  41. strokeWidth?: any | undefined;
  42. zIndex?: any | undefined;
  43. };
  44. cellSize: number;
  45. colorRange?: number[][];
  46. intensity?: number;
  47. aggregation?: string;
  48. }
  49. export class HeatmapLayer<T extends object = any> extends Layer<
  50. T,
  51. HeatmapLayerProps<T>
  52. > {
  53. constructor(props: HeatmapLayerProps<T>);
  54. }
  55. export class ContourLayer<T extends object = any> extends Layer<
  56. T,
  57. ContourLayerProps<T>
  58. > {
  59. constructor(props: ContourLayerProps<T>);
  60. }
  61. }
  62. declare module '*.png' {
  63. const value: any;
  64. export default value;
  65. }