openlayers-style-editor 0.2.5 → 1.1.0

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/README.md CHANGED
@@ -60,6 +60,10 @@ A detailed explanation of each mode can be found [here](https://resources.arcgis
60
60
 
61
61
  - **Based on Rules:** Allows the user to change the layer's color, opacity, and stroke based on rules defined by the user. Each rule is composed by a name, a filter, and a renderer. The filter is a logical expression that defines which features will be styled with the renderer of the rule.
62
62
 
63
+ ## License
64
+
65
+ This project is licensed under the MIT License.
66
+
63
67
  ## Installation
64
68
 
65
69
  Depending on the installed package provider, this package can be installed with one of the following commands.
@@ -1,18 +1,11 @@
1
- import { Render, SEAttribute } from '../rendererUtils';
1
+ import { Render } from '../rendererUtils';
2
2
  import { Feature } from 'ol';
3
- export interface FilterRule {
4
- name: string;
5
- filterJson?: string;
6
- isElse: boolean;
7
- symbol: Render;
8
- isAll?: boolean;
9
- }
10
3
  interface Props {
11
4
  setVisible: (e: boolean) => void;
12
- features: Feature[];
13
5
  applyRenderer: (renderer: Render) => void;
14
6
  layerCurrentRenderer: Render;
15
- attributes: SEAttribute[];
7
+ features: Feature[];
8
+ idFieldName: string | null;
16
9
  }
17
10
  export declare function BasedOnRules(props: Props): import("react/jsx-runtime").JSX.Element;
18
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { FilterRule } from '../basedOnRules.tsx';
2
+ import { FilterRule } from '../../rendererUtils';
3
3
  interface Props {
4
4
  visible: boolean;
5
5
  setVisible: Dispatch<SetStateAction<boolean>>;
@@ -16,6 +16,7 @@ interface FilterWidgetI {
16
16
  }[];
17
17
  expressionsComponents: number[];
18
18
  attributes: SEAttribute[];
19
+ idFieldName: string | null;
19
20
  }
20
21
  export type FilterWidgetContextType = {
21
22
  queryWidget: FilterWidgetI;
@@ -36,11 +37,13 @@ export type FilterWidgetContextType = {
36
37
  setAttributes: (value: SEAttribute[]) => void;
37
38
  reset: () => void;
38
39
  addAttributes: (atts: SEAttribute[]) => void;
40
+ idFieldName: string | null;
39
41
  };
40
42
  export declare const FilterWidgetContext: import('react').Context<FilterWidgetContextType | null>;
41
43
  interface ProviderProps {
42
44
  children: ReactNode;
43
45
  attributes: SEAttribute[];
46
+ idFieldName: string | null;
44
47
  }
45
- export declare function FilterWidgetContextProvider({ children, attributes }: ProviderProps): import("react/jsx-runtime").JSX.Element;
48
+ export declare function FilterWidgetContextProvider({ children, attributes, idFieldName }: ProviderProps): import("react/jsx-runtime").JSX.Element;
46
49
  export {};