Skip to content

Commit 0c0eb69

Browse files
ts fixes
1 parent c5ec78c commit 0c0eb69

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_orientation_property.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
*/
66

77
import { Map as MbMap } from 'mapbox-gl';
8-
import {
9-
DynamicStyleProperty,
10-
getNumericalMbFeatureStateValue,
11-
RawValue,
12-
} from './dynamic_style_property';
8+
import { DynamicStyleProperty, getNumericalMbFeatureStateValue } from './dynamic_style_property';
139
import { OrientationDynamicOptions } from '../../../../../common/descriptor_types';
10+
import { RawValue } from './style_property';
1411

1512
export class DynamicOrientationProperty extends DynamicStyleProperty<OrientationDynamicOptions> {
1613
syncIconRotationWithMb(symbolLayerId: string, mbMap: MbMap) {

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_style_property.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import _ from 'lodash';
88
import React from 'react';
99
import { Feature } from 'geojson';
10-
import { AbstractStyleProperty, IStyleProperty } from './style_property';
10+
import { AbstractStyleProperty, IStyleProperty, RawValue } from './style_property';
1111
import { DEFAULT_SIGMA } from '../vector_style_defaults';
1212
import {
1313
FIELD_ORIGIN,
@@ -30,8 +30,6 @@ import { IJoin } from '../../../joins/join';
3030
import { IVectorStyle } from '../vector_style';
3131
import { getComputedFieldName } from '../style_util';
3232

33-
export type RawValue = string | number | undefined | null;
34-
3533
export interface IDynamicStyleProperty<T> extends IStyleProperty<T> {
3634
getFieldMetaOptions(): FieldMetaOptions;
3735
getField(): IField | null;

x-pack/plugins/maps/public/classes/styles/vector/properties/dynamic_text_property.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
*/
66

77
import { Map as MbMap } from 'mapbox-gl';
8-
import { DynamicStyleProperty, RawValue } from './dynamic_style_property';
8+
import { DynamicStyleProperty } from './dynamic_style_property';
99
import { LabelDynamicOptions } from '../../../../../common/descriptor_types';
10+
import { RawValue } from './style_property';
1011

1112
export class DynamicTextProperty extends DynamicStyleProperty<LabelDynamicOptions> {
1213
syncTextFieldWithMb(mbLayerId: string, mbMap: MbMap) {

x-pack/plugins/maps/public/classes/styles/vector/properties/style_property.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ReactElement } from 'react';
1010
import { getVectorStyleLabel } from '../components/get_vector_style_label';
1111
import { FieldMetaOptions } from '../../../../../common/descriptor_types';
1212
import { VECTOR_STYLES } from '../../../../../common/constants';
13+
export type RawValue = string | number | undefined | null;
1314

1415
export type LegendProps = {
1516
isPointsOnly: boolean;

0 commit comments

Comments
 (0)