@kanaries/graphic-walker 0.0.1 → 0.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/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ Graphic Waller is an embeded interaction EDA tool.
2
+
3
+ Copyright (C) 2019-now Observed Observer(Hao Chen)
4
+
5
+ This program is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU Affero General Public License as
7
+ published by the Free Software Foundation, either version 3 of the
8
+ License, or (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU Affero General Public License for more details.
14
+
15
+ You should have received a copy of the GNU Affero General Public License
16
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
package/README.md CHANGED
@@ -9,15 +9,19 @@ Main features:
9
9
  + A Data Explainer which explain some why some patterns occur / what may cause them.
10
10
 
11
11
  ## Usage
12
+
13
+ ### use as an embedding module
12
14
  ```bash
13
- cd graphic-waler
14
- yarn install
15
- npm run build
15
+ yarn add @kanaries/graphic-walker
16
+
17
+ # or
18
+
19
+ npm i --save @kanaries/graphic-walker
16
20
  ```
17
21
 
18
22
  In your app:
19
23
  ```typescript
20
- import { GraphicWalker } from 'graphic-walker';
24
+ import { GraphicWalker } from '@kanaries/graphic-walker';
21
25
  import 'graphic-walker/dist/style.css'
22
26
 
23
27
  const YourEmbeddingTableauStyleApp: React.FC = props => {
@@ -30,4 +34,10 @@ const YourEmbeddingTableauStyleApp: React.FC = props => {
30
34
  }
31
35
 
32
36
  export default YourEmbeddingTableauStyleApp;
33
- ```
37
+ ```
38
+
39
+ ### try local
40
+ ```bash
41
+ # packages/graphic-walker
42
+ npm run dev
43
+ ```
package/dist/App.d.ts CHANGED
@@ -2,9 +2,11 @@ import React from 'react';
2
2
  import { Record, IMutField } from './interfaces';
3
3
  import "tailwindcss/tailwind.css";
4
4
  import './index.css';
5
+ import { Specification } from 'visual-insights';
5
6
  export interface EditorProps {
6
7
  dataSource?: Record[];
7
8
  rawFields?: IMutField[];
9
+ spec?: Specification;
8
10
  }
9
11
  declare const _default: React.FunctionComponent<EditorProps>;
10
12
  export default _default;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DroppableProvided } from 'react-beautiful-dnd';
3
+ interface Props {
4
+ provided: DroppableProvided;
5
+ }
6
+ declare const _default: React.FunctionComponent<Props>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { DroppableProvided } from 'react-beautiful-dnd';
3
+ interface Props {
4
+ provided: DroppableProvided;
5
+ }
6
+ declare const _default: React.FunctionComponent<Props>;
7
+ export default _default;
@@ -1,20 +1,8 @@
1
1
  import React from 'react';
2
- import { Field } from '../interfaces';
3
- export interface DraggableFieldState {
4
- fields: Field[];
5
- rows: Field[];
6
- columns: Field[];
7
- color: Field[];
8
- opacity: Field[];
9
- size: Field[];
10
- }
2
+ import { IDraggableStateKey } from '../interfaces';
11
3
  export declare const FieldsContextWrapper: React.FC;
12
4
  export default FieldsContextWrapper;
13
- export declare const DRAGGABLE_STATE_KEYS: Array<{
14
- id: keyof DraggableFieldState;
15
- name: string;
16
- mode: number;
17
- }>;
5
+ export declare const DRAGGABLE_STATE_KEYS: Array<IDraggableStateKey>;
18
6
  export declare const AGGREGATOR_LIST: {
19
7
  value: string;
20
8
  label: string;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { DroppableProvided } from "react-beautiful-dnd";
3
+ import { IDraggableStateKey } from '../../interfaces';
4
+ interface FieldContainerProps {
5
+ provided: DroppableProvided;
6
+ /**
7
+ * draggable Field Id
8
+ */
9
+ dkey: IDraggableStateKey;
10
+ }
11
+ declare const _default: React.FunctionComponent<FieldContainerProps>;
12
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { DraggableProvided } from 'react-beautiful-dnd';
3
+ import { IDraggableStateKey } from '../../interfaces';
4
+ interface PillProps {
5
+ provided: DraggableProvided;
6
+ fIndex: number;
7
+ dkey: IDraggableStateKey;
8
+ }
9
+ declare const _default: React.FunctionComponent<PillProps>;
10
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PosFields: React.FC;
3
+ export default PosFields;