react-kggraph 0.0.31 → 0.0.33

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.
Files changed (33) hide show
  1. package/lib/{src/components → components}/Graph/components/ActionBar/index.d.ts +2 -1
  2. package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/ListCard.d.ts +1 -1
  3. package/lib/{src/components → components}/Graph/components/KnowledgeCard/data.d.ts +1 -1
  4. package/lib/{src/components → components}/Graph/types.d.ts +7 -6
  5. package/lib/{src/components → components}/Graph/utils/layouts.d.ts +14 -14
  6. package/lib/{src/components → components}/Graph/utils/tools.d.ts +2 -2
  7. package/lib/index.es3.js +211 -217
  8. package/lib/index.es45.js +1 -1
  9. package/lib/index.es7.js +251 -251
  10. package/lib/index.es8.js +0 -1
  11. package/lib/index.es9.js +10 -10
  12. package/package.json +1 -1
  13. /package/lib/{src/components → components}/Graph/api.d.ts +0 -0
  14. /package/lib/{src/components → components}/Graph/components/ActionBar/actionList.d.ts +0 -0
  15. /package/lib/{src/components → components}/Graph/components/GraphListData/index.d.ts +0 -0
  16. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/AudioSection.d.ts +0 -0
  17. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/DocumentSection.d.ts +0 -0
  18. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/ImageSection.d.ts +0 -0
  19. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/PropertySection.d.ts +0 -0
  20. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/RelationSection.d.ts +0 -0
  21. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/SourceCard.d.ts +0 -0
  22. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/components/VideoSection.d.ts +0 -0
  23. /package/lib/{src/components → components}/Graph/components/KnowledgeCard/index.d.ts +0 -0
  24. /package/lib/{src/components → components}/Graph/components/NodeInfoDrawer/index.d.ts +0 -0
  25. /package/lib/{src/components → components}/Graph/components/PathAnalysis/index.d.ts +0 -0
  26. /package/lib/{src/components → components}/Graph/components/PathAnalysisLevel/index.d.ts +0 -0
  27. /package/lib/{src/components → components}/Graph/components/QueryNode/index.d.ts +0 -0
  28. /package/lib/{src/components → components}/Graph/components/SettingCircle/index.d.ts +0 -0
  29. /package/lib/{src/components → components}/Graph/context.d.ts +0 -0
  30. /package/lib/{src/components → components}/Graph/index.d.ts +0 -0
  31. /package/lib/{src/components → components}/Graph/utils/edge_node_styles.d.ts +0 -0
  32. /package/lib/{src/components → components}/Graph/utils/menuItems.d.ts +0 -0
  33. /package/lib/{index.es50.js → index.es47.js} +0 -0
@@ -11,7 +11,8 @@ interface ActionBarProps {
11
11
  typeObj?: any;
12
12
  relationObj?: any;
13
13
  actionBar?: {
14
- position?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | {
14
+ position?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
15
+ positionDetail: {
15
16
  top?: string | number;
16
17
  right?: string | number;
17
18
  bottom?: string | number;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { EntityInfo } from '../../../../../../api/kg/kgSerach';
2
+ import { EntityInfo } from '../../../../../api/kg/kgSerach';
3
3
  interface ListCardProps {
4
4
  entity: EntityInfo;
5
5
  viewMode: 'list' | 'grid';
@@ -32,7 +32,7 @@ export declare const cardDara: {
32
32
  StatusMsg: string;
33
33
  ThreadId: string;
34
34
  head: {
35
- link: never[];
35
+ link: any[];
36
36
  vars: string[];
37
37
  };
38
38
  results: {
@@ -57,12 +57,7 @@ export interface GraphColors {
57
57
  /** 路径节点颜色,默认 #145AFD */
58
58
  pathNodeColor?: string;
59
59
  }
60
- export type ActionBarPosition = 'top' | 'bottom' | 'left' | 'right' | {
61
- top?: string | number;
62
- right?: string | number;
63
- bottom?: string | number;
64
- left?: string | number;
65
- };
60
+ export type ActionBarPosition = 'top' | 'bottom' | 'left' | 'right';
66
61
  export interface ActionCircleItem {
67
62
  /** 菜单项唯一标识 */
68
63
  ids: string;
@@ -86,6 +81,12 @@ export interface ActionBarConfig {
86
81
  actionList?: ActionBarItem[];
87
82
  /** 默认展开或者收起 */
88
83
  isExpand?: boolean;
84
+ positionDetail: {
85
+ top?: string | number;
86
+ right?: string | number;
87
+ bottom?: string | number;
88
+ left?: string | number;
89
+ };
89
90
  }
90
91
  export interface CytoscapeReactProps {
91
92
  /** 图谱数据 */
@@ -28,13 +28,13 @@ export declare const randomLayout: () => {
28
28
  name: string;
29
29
  fit: boolean;
30
30
  padding: number;
31
- boundingBox: undefined;
31
+ boundingBox: any;
32
32
  animate: boolean;
33
33
  animationDuration: number;
34
- animationEasing: undefined;
34
+ animationEasing: any;
35
35
  animateFilter: (node: any, i: any) => boolean;
36
- ready: undefined;
37
- stop: undefined;
36
+ ready: any;
37
+ stop: any;
38
38
  transform: (node: any, position: any) => any;
39
39
  };
40
40
  export declare const coseLayout: () => {
@@ -42,14 +42,14 @@ export declare const coseLayout: () => {
42
42
  ready: () => void;
43
43
  stop: () => void;
44
44
  animate: boolean;
45
- animationEasing: undefined;
46
- animationDuration: undefined;
45
+ animationEasing: any;
46
+ animationDuration: any;
47
47
  animateFilter: (node: any, i: any) => boolean;
48
48
  animationThreshold: number;
49
49
  refresh: number;
50
50
  fit: boolean;
51
51
  padding: number;
52
- boundingBox: undefined;
52
+ boundingBox: any;
53
53
  nodeDimensionsIncludeLabels: boolean;
54
54
  randomize: boolean;
55
55
  componentSpacing: number;
@@ -68,21 +68,21 @@ export declare const circle: () => {
68
68
  name: string;
69
69
  fit: boolean;
70
70
  padding: number;
71
- boundingBox: undefined;
71
+ boundingBox: any;
72
72
  avoidOverlap: boolean;
73
73
  nodeDimensionsIncludeLabels: boolean;
74
74
  spacingFactor: number;
75
- radius: undefined;
75
+ radius: any;
76
76
  startAngle: number;
77
- sweep: undefined;
77
+ sweep: any;
78
78
  clockwise: boolean;
79
- sort: undefined;
79
+ sort: any;
80
80
  animate: boolean;
81
81
  animationDuration: number;
82
- animationEasing: undefined;
82
+ animationEasing: any;
83
83
  animateFilter: (node: any, i: any) => boolean;
84
- ready: undefined;
85
- stop: undefined;
84
+ ready: any;
85
+ stop: any;
86
86
  transform: (node: any, position: any) => any;
87
87
  };
88
88
  export declare const concentricLayout: () => any;
@@ -7,10 +7,10 @@ export declare const resDetailData: (data: any, { graphData: graphData, typeObj,
7
7
  export declare const textLayout: (cyRef: any, type: string) => any;
8
8
  export declare const handleCalcPath: (cyRef: any, { nodes, isGrayed, links }: {
9
9
  nodes: any;
10
- isGrayed?: boolean | undefined;
10
+ isGrayed?: boolean;
11
11
  links: any;
12
12
  }) => Promise<void>;
13
- export declare const typeListFunc: (data?: never[]) => any[];
13
+ export declare const typeListFunc: (data?: any[]) => any[];
14
14
  export declare const getCyData: (cy: any) => {
15
15
  nodes: any;
16
16
  edges: any;