@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.
@@ -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,4 +1,4 @@
1
- import { NodeList, EdgeList } from '@linkurious/ogma';
1
+ import { EdgeList, NodeList } from '@linkurious/ogma';
2
2
  import { LkEdgeData, LkNodeData } from '@linkurious/rest-client';
3
3
  import { LKOgma } from '../index';
4
4
  import { OgmaStore } from './OgmaStore';
@@ -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;
@@ -1,5 +1,6 @@
1
1
  import { ForceLayoutMode, HierarchicalLayoutMode, IOgmaConfig, LkEdgeData, LkNodeData, PopulatedVisualization, VizEdge, VizNode } from '@linkurious/rest-client';
2
- import Ogma, { EdgeList, ForceLayoutOptions, HierarchicalLayoutOptions, NodeId, NodeList, NonObjectPropertyWatcher, RadialLayoutOptions, RawEdge, RawGraph } from '@linkurious/ogma';
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, LkEdgeData, OgmaEdgeShape } from '@linkurious/rest-client';
3
3
  import { StyleRule } from './styleRule';
4
4
  import { ItemAttributes } from './itemAttributes';
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Color, NodeList, Node, EdgeList, Edge, NodeId } from '@linkurious/ogma';
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.0",
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.14.0"
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.4"
61
+ "@linkurious/ogma": "5.2.6"
62
62
  },
63
63
  "devDependencies": {
64
- "@linkurious/ogma": "5.2.4",
65
- "@linkurious/rest-client": "~4.2.0-develop.14",
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",