@linkurious/ogma-linkurious-parser 4.2.0 → 4.2.1
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +102 -71
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +5 -1
- package/dist/ogma/features/reactive.d.ts +1 -1
- package/dist/ogma/features/selectors.d.ts +1 -1
- package/dist/ogma/features/transformations.d.ts +1 -1
- package/dist/ogma/index.d.ts +14 -1
- package/dist/styles/edgeAttributes.d.ts +1 -1
- package/dist/styles/itemAttributes.d.ts +1 -1
- package/dist/styles/nodeAttributes.d.ts +1 -1
- package/dist/tools/ogmaTool.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeList, PixelSize, Point, Transformation } from '@linkurious/ogma';
|
|
1
|
+
import type { NodeList, PixelSize, Point, Transformation } from '@linkurious/ogma';
|
|
2
2
|
import { IVizNodeGroupInfo, LkEdgeData, LkNodeData, NodeGroupingRule } from '@linkurious/rest-client';
|
|
3
3
|
import { LKOgma } from '../index';
|
|
4
4
|
export declare const LKE_NODE_GROUPING_EDGE = "LKE_NODE_GROUPING_EDGE";
|
|
@@ -111,5 +111,9 @@ export declare class NodeGroupingTransformation {
|
|
|
111
111
|
private _initIntermediateGroupStyle;
|
|
112
112
|
private _getDefaultCollapsedState;
|
|
113
113
|
private _getDefaultLayoutableValue;
|
|
114
|
+
/**
|
|
115
|
+
* Set styles for the class "filtered"
|
|
116
|
+
*/
|
|
117
|
+
private _setSubSelectedClass;
|
|
114
118
|
}
|
|
115
119
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityType, LkEdgeData, LkNodeData } from '@linkurious/rest-client';
|
|
2
|
-
import { Edge, Node } from '@linkurious/ogma';
|
|
2
|
+
import type { Edge, Node } from '@linkurious/ogma';
|
|
3
3
|
import { OgmaState } from './reactive';
|
|
4
4
|
export type SelectionState = 'selection' | 'multiSelection' | 'noSelection';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenericObject, IEdgeGroupStyle, LkEdgeData, LkNodeData } from '@linkurious/rest-client';
|
|
2
|
-
import { StyleRule, Transformation } from '@linkurious/ogma';
|
|
2
|
+
import type { StyleRule, Transformation } from '@linkurious/ogma';
|
|
3
3
|
import { LKOgma } from '../index';
|
|
4
4
|
export declare class TransformationsViz {
|
|
5
5
|
private _ogma;
|
package/dist/ogma/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ForceLayoutMode, HierarchicalLayoutMode, IOgmaConfig, LkEdgeData, LkNodeData, PopulatedVisualization, VizEdge, VizNode } from '@linkurious/rest-client';
|
|
2
|
-
import
|
|
2
|
+
import type { EdgeList, ForceLayoutOptions, HierarchicalLayoutOptions, NodeId, NodeList, NonObjectPropertyWatcher, RadialLayoutOptions, RawEdge, RawGraph } from '@linkurious/ogma';
|
|
3
|
+
import Ogma from '@linkurious/ogma';
|
|
3
4
|
import { StylesViz } from './features/styles';
|
|
4
5
|
import { TransformationsViz } from './features/transformations';
|
|
5
6
|
import { CaptionsViz } from './features/captions';
|
|
@@ -91,4 +92,16 @@ export declare class LKOgma extends Ogma<LkNodeData, LkEdgeData> {
|
|
|
91
92
|
* Updates the Ogma config when config changes in LKE. If init, options were already set by the Ogma.reset()
|
|
92
93
|
*/
|
|
93
94
|
setConfigOgma(configuration?: IOgmaConfig, init?: boolean, baseUrl?: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* An override of the Ogma method getSelectedNodes
|
|
97
|
+
* originally it was returning only the visible selected nodes
|
|
98
|
+
* but we need to return all selected nodes, including the one that are part of collapsed groups
|
|
99
|
+
*/
|
|
100
|
+
getSelectedNodes(): NodeList<LkNodeData, LkEdgeData>;
|
|
101
|
+
/**
|
|
102
|
+
* An override of the Ogma method clearSelection
|
|
103
|
+
* originally it was unselecting only the visible selected nodes
|
|
104
|
+
* but we need also to unselect invisible nodes, including the one that are part of collapsed groups
|
|
105
|
+
*/
|
|
106
|
+
clearSelection(): void;
|
|
94
107
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color } from '@linkurious/ogma';
|
|
1
|
+
import type { Color } from '@linkurious/ogma';
|
|
2
2
|
import { IEdgeStyle, INodeStyle, IStyleAutoRange } from '@linkurious/rest-client';
|
|
3
3
|
import { StyleRule } from './styleRule';
|
|
4
4
|
import { NodeSizeExtrema } from './nodeAttributes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color } from '@linkurious/ogma';
|
|
1
|
+
import type { Color } from '@linkurious/ogma';
|
|
2
2
|
import { IImageDataValue, INodeStyle, IStyleIcon, IStyleImage, LkNodeData, OgmaNodeShape } from '@linkurious/rest-client';
|
|
3
3
|
import { StyleRule } from './styleRule';
|
|
4
4
|
import { ItemAttributes } from './itemAttributes';
|
package/dist/tools/ogmaTool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color,
|
|
1
|
+
import type { Color, Edge, EdgeList, Node, NodeId, NodeList } from '@linkurious/ogma';
|
|
2
2
|
import { LkEdgeData, LkNodeData } from '@linkurious/rest-client';
|
|
3
3
|
export declare const FORCE_LAYOUT_CONFIG: {
|
|
4
4
|
steps: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkurious/ogma-linkurious-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"author": "Linkurious SAS",
|
|
5
5
|
"description": "Parse and load a Linkurious visualization in Ogma with one line of code ",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": "22.
|
|
18
|
+
"node": "22.15.1"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"sha1": "1.1.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@linkurious/ogma": "5.2.
|
|
61
|
+
"@linkurious/ogma": "5.2.6"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@linkurious/ogma": "5.2.
|
|
65
|
-
"@linkurious/rest-client": "
|
|
64
|
+
"@linkurious/ogma": "5.2.6",
|
|
65
|
+
"@linkurious/rest-client": "4.2.1",
|
|
66
66
|
"@types/chai": "4.2.17",
|
|
67
67
|
"@types/lodash": "4.14.182",
|
|
68
68
|
"@types/mocha": "5.2.7",
|