@linkurious/ogma-linkurious-parser 4.2.0 → 4.2.2
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +534 -517
- 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/styles.d.ts +4 -12
- 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/colorPalette.d.ts +1 -0
- 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
|
/**
|
|
@@ -154,12 +154,6 @@ export declare class StylesViz {
|
|
|
154
154
|
* @param {Array<LKStyleRule>} shapeStyleRules
|
|
155
155
|
*/
|
|
156
156
|
refreshEdgeShape(shapeStyleRules: Array<LKStyleRule<IEdgeStyle>>): void;
|
|
157
|
-
/**
|
|
158
|
-
* Get node radius
|
|
159
|
-
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5
|
|
160
|
-
* TODO: check if this is still needed after ogma release the new improvement for transformation v5.X
|
|
161
|
-
*/
|
|
162
|
-
private _getNodeRadius;
|
|
163
157
|
/**
|
|
164
158
|
* Calculate the scale of the pin badge related to the node radius
|
|
165
159
|
* This is useful when dealing wih huge nodes, and we don't want the badge to be big
|
|
@@ -168,11 +162,9 @@ export declare class StylesViz {
|
|
|
168
162
|
*/
|
|
169
163
|
private _findPinBadgeScale;
|
|
170
164
|
/**
|
|
171
|
-
*
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Find the color of the pin badge background
|
|
165
|
+
* Get node radius
|
|
166
|
+
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.
|
|
167
|
+
* The issue is still present in Ogma 5.2
|
|
176
168
|
*/
|
|
177
|
-
private
|
|
169
|
+
private _getNodeRadius;
|
|
178
170
|
}
|
|
@@ -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.2",
|
|
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.2",
|
|
66
66
|
"@types/chai": "4.2.17",
|
|
67
67
|
"@types/lodash": "4.14.182",
|
|
68
68
|
"@types/mocha": "5.2.7",
|