@myrmidon/gve-core 3.0.2 → 3.0.3

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.
@@ -2414,7 +2414,8 @@ class GveGraphvizService {
2414
2414
  sb.push(' node [style=filled];');
2415
2415
  sb.push(` rankdir=${rankdir};`);
2416
2416
  chain.nodes.forEach((node) => {
2417
- sb.push(` ${node.id} [label="${node.label}"` +
2417
+ // note that in label we must escape the double quotes
2418
+ sb.push(` ${node.id} [label="${node.label === '"' ? '"' : node.label}"` +
2418
2419
  (node.sourceTag
2419
2420
  ? ` fillcolor="${this.getColorForTag(node.sourceTag)}"`
2420
2421
  : '') +
@@ -3563,9 +3564,16 @@ class SnapshotEditorComponent {
3563
3564
  * @param event The event.
3564
3565
  */
3565
3566
  onVisualEvent(event) {
3567
+ if (this._handlingOver) {
3568
+ return;
3569
+ }
3566
3570
  const d = event.detail;
3567
3571
  if (d.event.type === 'mouseover') {
3568
3572
  const visual = d.source;
3573
+ if (visual.id === this._lastOverId) {
3574
+ return;
3575
+ }
3576
+ this._handlingOver = true;
3569
3577
  const sb = [];
3570
3578
  // id (type)
3571
3579
  sb.push('#' + visual.id);
@@ -3585,7 +3593,9 @@ class SnapshotEditorComponent {
3585
3593
  sb.push(` (@${visual.x.toFixed(1)},${visual.y.toFixed(1)} ` +
3586
3594
  `◻${visual.width.toFixed(1)}×${visual.height.toFixed(1)})`);
3587
3595
  this.visualInfo = sb.join('');
3596
+ this._lastOverId = visual.id;
3588
3597
  }
3598
+ this._handlingOver = false;
3589
3599
  }
3590
3600
  /**
3591
3601
  * Handle the change of line heights by updating the form control.