Skip to content

Commit

Permalink
ts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Sep 15, 2020
1 parent c5ec78c commit 0c0eb69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
*/

import { Map as MbMap } from 'mapbox-gl';
import {
DynamicStyleProperty,
getNumericalMbFeatureStateValue,
RawValue,
} from './dynamic_style_property';
import { DynamicStyleProperty, getNumericalMbFeatureStateValue } from './dynamic_style_property';
import { OrientationDynamicOptions } from '../../../../../common/descriptor_types';
import { RawValue } from './style_property';

export class DynamicOrientationProperty extends DynamicStyleProperty<OrientationDynamicOptions> {
syncIconRotationWithMb(symbolLayerId: string, mbMap: MbMap) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import _ from 'lodash';
import React from 'react';
import { Feature } from 'geojson';
import { AbstractStyleProperty, IStyleProperty } from './style_property';
import { AbstractStyleProperty, IStyleProperty, RawValue } from './style_property';
import { DEFAULT_SIGMA } from '../vector_style_defaults';
import {
FIELD_ORIGIN,
Expand All @@ -30,8 +30,6 @@ import { IJoin } from '../../../joins/join';
import { IVectorStyle } from '../vector_style';
import { getComputedFieldName } from '../style_util';

export type RawValue = string | number | undefined | null;

export interface IDynamicStyleProperty<T> extends IStyleProperty<T> {
getFieldMetaOptions(): FieldMetaOptions;
getField(): IField | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
*/

import { Map as MbMap } from 'mapbox-gl';
import { DynamicStyleProperty, RawValue } from './dynamic_style_property';
import { DynamicStyleProperty } from './dynamic_style_property';
import { LabelDynamicOptions } from '../../../../../common/descriptor_types';
import { RawValue } from './style_property';

export class DynamicTextProperty extends DynamicStyleProperty<LabelDynamicOptions> {
syncTextFieldWithMb(mbLayerId: string, mbMap: MbMap) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ReactElement } from 'react';
import { getVectorStyleLabel } from '../components/get_vector_style_label';
import { FieldMetaOptions } from '../../../../../common/descriptor_types';
import { VECTOR_STYLES } from '../../../../../common/constants';
export type RawValue = string | number | undefined | null;

export type LegendProps = {
isPointsOnly: boolean;
Expand Down

0 comments on commit 0c0eb69

Please sign in to comment.