Skip to content

Commit

Permalink
move RGBA_0000 to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Apr 3, 2020
1 parent ab19310 commit 739d51a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ import {
EuiTextColor,
} from '@elastic/eui';
import { Category } from '../components/legend/category';
import { COLOR_MAP_TYPE } from '../../../../../common/constants';
import { COLOR_MAP_TYPE, RGBA_0000 } from '../../../../../common/constants';
import { isCategoricalStopsInvalid } from '../components/color/color_stops_utils';

const EMPTY_STOPS = { stops: [], defaultColor: null };
const RGBA_0000 = 'rgba(0,0,0,0)';

export class DynamicColorProperty extends DynamicStyleProperty {
syncCircleColorWithMb(mbLayerId, mbMap, alpha) {
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/maps/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,5 @@ export enum SCALING_TYPES {
CLUSTERS = 'CLUSTERS',
TOP_HITS = 'TOP_HITS',
}

export const RGBA_0000 = 'rgba(0,0,0,0)';

0 comments on commit 739d51a

Please sign in to comment.