@evergis/react 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Kirill Protasov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Kirill Protasov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,31 +1,31 @@
1
- # @evergis/react
2
-
3
- ## Commands
4
-
5
- ```
6
- npm start # or yarn start
7
- ```
8
-
9
- This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
10
-
11
- Then run either example playground or storybook:
12
-
13
- ### Storybook
14
-
15
- Run inside another terminal:
16
-
17
- ```
18
- yarn storybook
19
- ```
20
-
21
- This loads the stories from `./stories`.
22
-
23
- > NOTE: Stories should reference the components as if using the library. This means importing from the root project directory.
24
- > This has been aliased in the tsconfig and the storybook webpack config as a helper.
25
-
26
- ### Tests
27
-
28
- Jest tests are set up to run with `npm test` or `yarn test`. This runs the test watcher (Jest) in an interactive mode.
29
- By default, runs tests related to files changed since the last commit.
30
-
31
- > TODO: MOVE style to separate @evergis/style
1
+ # @evergis/react
2
+
3
+ ## Commands
4
+
5
+ ```
6
+ npm start # or yarn start
7
+ ```
8
+
9
+ This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.
10
+
11
+ Then run either example playground or storybook:
12
+
13
+ ### Storybook
14
+
15
+ Run inside another terminal:
16
+
17
+ ```
18
+ yarn storybook
19
+ ```
20
+
21
+ This loads the stories from `./stories`.
22
+
23
+ > NOTE: Stories should reference the components as if using the library. This means importing from the root project directory.
24
+ > This has been aliased in the tsconfig and the storybook webpack config as a helper.
25
+
26
+ ### Tests
27
+
28
+ Jest tests are set up to run with `npm test` or `yarn test`. This runs the test watcher (Jest) in an interactive mode.
29
+ By default, runs tests related to files changed since the last commit.
30
+
31
+ > TODO: MOVE style to separate @evergis/style
@@ -1,4 +1,4 @@
1
- import { CirclePointSymbolDc, ClusterSymbolDc, CombinedPolylineSymbolDc, CompositeSymbolDc, H3GridSymbolDc, ImagePointSymbolDc, MaskedImagePointSymbolDc, PolygonSymbolDc, PolylineSymbolDc, RasterSymbolDc, SimplePolylineSymbolDc, SquarePointSymbolDc, StyleDc, SvgPointSymbolDc } from '@evergis/api';
1
+ import { CirclePointSymbolDc, ClusterSymbolDc, CombinedPolylineSymbolDc, CompositeSymbolDc, H3GridSymbolDc, ImagePointSymbolDc, MaskedImagePointSymbolDc, PolygonSymbolDc, RasterSymbolDc, SimplePolylineSymbolDc, SquarePointSymbolDc, StyleDc, SvgPointSymbolDc } from '@evergis/api';
2
2
  import { LabelType } from './label';
3
3
  import { CalculatedAble } from './parameterValue';
4
4
  import { ClientSymbol } from './utils';
@@ -16,7 +16,7 @@ export declare type PolygonSymbol<Fill = FillBrushType, Stroke = StrokeBrushType
16
16
  stroke: Stroke;
17
17
  };
18
18
  export declare type SimplePolylineSymbol = ClientSymbol<'simplePolylineSymbol', SimplePolylineSymbolDc>;
19
- export declare type PolylineSymbol = ClientSymbol<'polylineSymbol', PolylineSymbolDc>;
19
+ export declare type CombinedPolylineSymbol = ClientSymbol<'combinedPolylineSymbol', CombinedPolylineSymbolDc>;
20
20
  export declare type RasterSymbol = ClientSymbol<'rasterSymbol', RasterSymbolDc>;
21
21
  export declare type ClusterSymbolType = ClientSymbol<"cluster", ClusterSymbolDc>;
22
22
  export declare type CompositeSymbolType = ClientSymbol<'compositeSymbol', CompositeSymbolDc>;
@@ -24,13 +24,13 @@ export declare type H3GridSymbol = ClientSymbol<'h3grid', H3GridSymbolDc>;
24
24
  export declare type SimpleShapeSymbol = PointSymbol | SquareSymbol;
25
25
  export declare type ImageSymbol = MaskedImageSymbol | StaticImageSymbol;
26
26
  export declare type PointSymbolType = SvgPointSymbol | PointSymbol | SquareSymbol | MaskedImageSymbol | StaticImageSymbol;
27
- export declare type PolylineSymbols = PolylineSymbol | SimplePolylineSymbol;
27
+ export declare type PolylineSymbols = CombinedPolylineSymbol | SimplePolylineSymbol;
28
28
  export declare type StyleSymbolType = PointSymbolType | PolygonSymbol | PolylineSymbols | LabelType | RasterSymbol | CompositeSymbolType | H3GridSymbolDc | ClusterSymbolDc;
29
29
  export declare type StyleSymbolTypes = StyleSymbolType['type'];
30
30
  export declare type UnknownSymbol = StyleDc['symbol'] | StyleSymbolType;
31
31
  export declare type LayerSymbol = PointSymbol | PolylineSymbols | PolygonSymbol;
32
32
  export declare type FillStyledSymbols = PolygonSymbol;
33
- export declare type StrokeStyledSymbols = PolygonSymbol | PolylineSymbols;
33
+ export declare type StrokeStyledSymbols = PolygonSymbol | SimplePolylineSymbol;
34
34
  export declare const isPointSymbol: (symbol: {
35
35
  type?: string | undefined;
36
36
  }) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never>;
@@ -49,9 +49,6 @@ export declare const isCombinedPolylineSymbol: (symbol: {
49
49
  export declare const isPolygonSymbol: (symbol: {
50
50
  type?: string | undefined;
51
51
  }) => symbol is PolygonSymbol<FillBrushType, StrokeBrushType>;
52
- export declare const isPolylineSymbol: (symbol: {
53
- type?: string | undefined;
54
- }) => symbol is ClientSymbol<"polylineSymbol", PolylineSymbolDc, never>;
55
52
  export declare const isSimplePolylineSymbol: (symbol: {
56
53
  type?: string | undefined;
57
54
  }) => symbol is ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never>;
@@ -66,8 +63,8 @@ export declare const isImageSymbol: (symbol: UnknownSymbol) => symbol is ImageSy
66
63
  export declare const isTwoDimensionalSymbol: (symbol: UnknownSymbol) => symbol is ImageSymbol;
67
64
  export declare const isSizableSymbol: (symbol: UnknownSymbol) => symbol is SimpleShapeSymbol;
68
65
  export declare const isStrokeStyledSymbol: (symbol: UnknownSymbol) => symbol is StrokeStyledSymbols;
69
- export declare const isScalablePolylineSymbol: (symbol: PolylineSymbol | SimplePolylineSymbol) => boolean | undefined;
70
- export declare const isSimpleSymbol: (symbol: UnknownSymbol) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never> | ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never> | ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never> | ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never> | ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | ClientSymbol<"polylineSymbol", PolylineSymbolDc, never> | ClientSymbol<"rasterSymbol", RasterSymbolDc, never> | ClusterSymbolDc | H3GridSymbolDc | SquareSymbol | PolygonSymbol<FillBrushType, StrokeBrushType>;
66
+ export declare const isScalablePolylineSymbol: (symbol: SimplePolylineSymbol) => boolean | undefined;
67
+ export declare const isSimpleSymbol: (symbol: UnknownSymbol) => symbol is ClientSymbol<"circlePointSymbol", CirclePointSymbolDc, never> | ClientSymbol<"svgPointSymbol", SvgPointSymbolDc, never> | ClientSymbol<"maskedImagePointSymbol", MaskedImagePointSymbolDc, never> | ClientSymbol<"imagePointSymbol", ImagePointSymbolDc, never> | ClientSymbol<"simplePolylineSymbol", SimplePolylineSymbolDc, never> | ClientSymbol<"combinedPolylineSymbol", CombinedPolylineSymbolDc, never> | ClientSymbol<"rasterSymbol", RasterSymbolDc, never> | ClusterSymbolDc | H3GridSymbolDc | SquareSymbol | PolygonSymbol<FillBrushType, StrokeBrushType>;
71
68
  export declare const isH3GridSymbol: (symbol: {
72
69
  type?: string | undefined;
73
70
  }) => symbol is H3GridSymbolDc;