@influxdata/giraffe
Advanced tools
Comparing version 0.37.0 to 0.38.0
@@ -14,1 +14,2 @@ export { Plot } from './components/Plot'; | ||
export { BandLayerConfig, ColumnData, ColumnType, Config, DomainLabel, FluxDataType, Formatter, GaugeTheme, GaugeLayerConfig, GetColumn, HistogramLayerConfig, HistogramPosition, LayerConfig, LayerTypes, LineInterpolation, LineLayerConfig, LinePosition, Margins, NumericColumnData, RawFluxDataTableLayerConfig, Scale, Schema, SchemaValues, SingleStatLayerConfig, Table, Tag, } from './types'; | ||
export * from './types/geo'; |
import CSS from 'csstype'; | ||
import { CSSProperties, ReactNode } from 'react'; | ||
import { TimeZone } from './timeZones'; | ||
import { GeoLayerConfig } from './geo'; | ||
export declare type SizedConfig = Config & { | ||
@@ -89,5 +90,6 @@ width: number; | ||
Mosaic = "mosaic", | ||
Table = "table" | ||
Table = "table", | ||
Geo = "geo" | ||
} | ||
export declare type LayerConfig = CustomLayerConfig | RawFluxDataTableLayerConfig | GaugeLayerConfig | SingleStatLayerConfig | HeatmapLayerConfig | HistogramLayerConfig | LineLayerConfig | BandLayerConfig | ScatterLayerConfig | MosaicLayerConfig | TableGraphLayerConfig; | ||
export declare type LayerConfig = CustomLayerConfig | RawFluxDataTableLayerConfig | GaugeLayerConfig | SingleStatLayerConfig | HeatmapLayerConfig | HistogramLayerConfig | LineLayerConfig | BandLayerConfig | ScatterLayerConfig | MosaicLayerConfig | TableGraphLayerConfig | GeoLayerConfig; | ||
export interface CustomLayerConfig { | ||
@@ -94,0 +96,0 @@ type: 'custom'; |
{ | ||
"name": "@influxdata/giraffe", | ||
"version": "0.37.0", | ||
"version": "0.38.0", | ||
"main": "dist/index.js", | ||
@@ -67,2 +67,5 @@ "license": "MIT", | ||
"jest": "^24.9.0", | ||
"leaflet": "^1.6.0", | ||
"leaflet-ant-path": "^1.3.0", | ||
"leaflet.markercluster": "^1.4.1", | ||
"memoize-one": "^5.0.2", | ||
@@ -74,2 +77,7 @@ "node-sass": "^4.14.1", | ||
"react-dom": "^16.8.0", | ||
"react-leaflet": "^2.6.3", | ||
"react-leaflet-ant-path": "^1.1.0", | ||
"react-leaflet-control": "^2.1.2", | ||
"react-leaflet-heatmap-layer": "^2.0.0", | ||
"react-leaflet-markercluster": "^2.0.0", | ||
"react-scrollbars-custom": "^4.0.20", | ||
@@ -85,2 +93,3 @@ "react-virtualized": "^9.21.2", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"s2-geometry": "^1.2.10", | ||
"ts-jest": "^24.0.0", | ||
@@ -87,0 +96,0 @@ "typescript": "3.8.3", |
@@ -21,3 +21,5 @@ import resolve from '@rollup/plugin-node-resolve' | ||
extract: false, | ||
modules: true, | ||
modules: { | ||
globalModulePaths: ['leaflet/dist'], | ||
}, | ||
use: ['sass'], | ||
@@ -24,0 +26,0 @@ }), |
@@ -54,1 +54,3 @@ // Components | ||
} from './types' | ||
export * from './types/geo' |
import CSS from 'csstype' | ||
import {CSSProperties, ReactNode} from 'react' | ||
import {TimeZone} from './timeZones' | ||
import {GeoLayerConfig} from './geo' | ||
@@ -156,2 +157,3 @@ export type SizedConfig = Config & {width: number; height: number} | ||
Table = 'table', | ||
Geo = 'geo', | ||
} | ||
@@ -171,2 +173,3 @@ | ||
| TableGraphLayerConfig | ||
| GeoLayerConfig | ||
@@ -173,0 +176,0 @@ export interface CustomLayerConfig { |
@@ -334,2 +334,3 @@ import {newTableFromConfig} from './newTable' | ||
case LayerTypes.Gauge: | ||
case LayerTypes.Geo: | ||
case LayerTypes.Custom: | ||
@@ -336,0 +337,0 @@ case LayerTypes.SingleStat: |
import {useLayoutStyle} from './useLayoutStyle' | ||
import {useRefMousePos} from './useMousePos' | ||
import {LEAFLET_Z_INDEX} from '../components/Geo' | ||
@@ -50,2 +51,4 @@ const MARGIN_X = 30 | ||
/* Geo widget maps are rendered with z-index: 399, we have to set it above | ||
that so that tooltips are not rendered/are hidden below the map, */ | ||
return { | ||
@@ -56,4 +59,5 @@ display: 'inline', | ||
top: `${clampedY}px`, | ||
zIndex: LEAFLET_Z_INDEX + 1, | ||
} | ||
}) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
8257561
417
29454
61
85
16