Skip to content

Commit 8e5d951

Browse files
REA-459, REA-461, REA-462, REA-463, REA-464: update core, viewport limiter and selection fixes
1 parent 5059956 commit 8e5d951

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can learn how to work with the yFiles npm module in our [Developer’s Guide
3535

3636
Add the yFiles dependency:
3737
```
38-
npm install <yFiles package path>/lib-dev/yfiles-26.0.0+dev.tgz
38+
npm install <yFiles package path>/lib-dev/yfiles-30.0.0+dev.tgz
3939
```
4040

4141
<details>
@@ -47,7 +47,7 @@ You can learn how to work with the yFiles npm module in our [Developer’s Guide
4747
"dependencies": {
4848
"react": "^18.2.0",
4949
"react-dom": "^18.2.0",
50-
"yfiles": "./lib-dev/yfiles-26.0.0.tgz"
50+
"@yfiles/yfiles": "./lib-dev/yfiles-30.0.0.tgz"
5151
}
5252
```
5353
</details>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"typescript": "^5.3.2"
6161
},
6262
"dependencies": {
63-
"@yworks/react-yfiles-core": "^2.0.0"
63+
"@yworks/react-yfiles-core": "^3.0.0"
6464
},
6565
"files": [
6666
"LICENSE",

src/core/SingleSelectionHelper.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {
1111
CanExecuteCommandArgs
1212
} from '@yfiles/yfiles'
1313

14-
// TODO move to core?
15-
1614
type Recognizer = (evt: EventArgs, eventSource: any) => boolean
1715

1816
let commandBindings: KeyboardInputModeBinding[] = []

src/core/input.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export function initializeHover(
6868
}
6969
}
7070
inputMode.itemHoverInputMode.addEventListener('hovered-item-changed', hoverItemChangedListener)
71-
inputMode.itemHoverInputMode.hoverItems = GraphItemTypes.NODE
7271
return hoverItemChangedListener
7372
}
7473

@@ -146,8 +145,7 @@ export function initializeSelection(
146145
* Initializes the highlights for selected or focused elements.
147146
*/
148147
function initializeHighlights(graphComponent: GraphComponent): void {
149-
graphComponent.selectionIndicatorManager.enabled = false
150-
151-
// Hide the default focus highlight in favor of the CSS highlighting from the template styles
152-
graphComponent.focusIndicatorManager.enabled = false
148+
// Hide the default select/focus highlight in favor of the CSS highlighting from the template styles
149+
graphComponent.graph.decorator.nodes.selectionRenderer.hide()
150+
graphComponent.graph.decorator.nodes.focusRenderer.hide()
153151
}

0 commit comments

Comments
 (0)