hellfire 0.30.1 → 0.30.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.30.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.30.1...v0.30.2) (2025-07-16)
6
+
7
+
8
+
5
9
  ## [0.30.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.30.0...v0.30.1) (2025-07-15)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -29685,12 +29685,31 @@ function linkSynchronizer (synchronizer, sourceElement, targetElement, eventData
29685
29685
  }
29686
29686
 
29687
29687
  targetViewport.scale = scaleTarget + (scaleSource - scaleOrigin);
29688
+ var _sourceViewport$trans = sourceViewport.translation,
29689
+ xSource = _sourceViewport$trans.x,
29690
+ ySource = _sourceViewport$trans.y;
29691
+ var _targetViewport$trans = targetViewport.translation,
29692
+ xTarget = _targetViewport$trans.x,
29693
+ yTarget = _targetViewport$trans.y;
29694
+ var _originViewport$trans = originViewport.translation,
29695
+ x = _originViewport$trans.x,
29696
+ y = _originViewport$trans.y;
29697
+
29698
+ if (x === xSource && y === ySource) {
29699
+ synchronizer.setViewport(targetElement, targetViewport);
29700
+ return;
29701
+ }
29702
+
29703
+ targetViewport.translation.x = xTarget + (xSource - x);
29704
+ targetViewport.translation.y = yTarget + (ySource - y);
29688
29705
  } else {
29689
29706
  if (scaleTarget === scaleSource) {
29690
29707
  return;
29691
29708
  }
29692
29709
 
29693
29710
  targetViewport.scale = scaleSource;
29711
+ targetViewport.translation.x = sourceViewport.translation.x;
29712
+ targetViewport.translation.y = sourceViewport.translation.y;
29694
29713
  }
29695
29714
 
29696
29715
  synchronizer.setViewport(targetElement, targetViewport);
@@ -29698,21 +29717,21 @@ function linkSynchronizer (synchronizer, sourceElement, targetElement, eventData
29698
29717
 
29699
29718
  function handlePan() {
29700
29719
  if (!originViewport) {
29701
- var _sourceViewport$trans = sourceViewport.translation,
29702
- xSource = _sourceViewport$trans.x,
29703
- ySource = _sourceViewport$trans.y;
29720
+ var _sourceViewport$trans2 = sourceViewport.translation,
29721
+ xSource = _sourceViewport$trans2.x,
29722
+ ySource = _sourceViewport$trans2.y;
29704
29723
  targetViewport.translation.x = xSource;
29705
29724
  targetViewport.translation.y = ySource;
29706
29725
  } else {
29707
- var _sourceViewport$trans2 = sourceViewport.translation,
29708
- _xSource = _sourceViewport$trans2.x,
29709
- _ySource = _sourceViewport$trans2.y;
29710
- var _targetViewport$trans = targetViewport.translation,
29711
- xTarget = _targetViewport$trans.x,
29712
- yTarget = _targetViewport$trans.y;
29713
- var _originViewport$trans = originViewport.translation,
29714
- x = _originViewport$trans.x,
29715
- y = _originViewport$trans.y;
29726
+ var _sourceViewport$trans3 = sourceViewport.translation,
29727
+ _xSource = _sourceViewport$trans3.x,
29728
+ _ySource = _sourceViewport$trans3.y;
29729
+ var _targetViewport$trans2 = targetViewport.translation,
29730
+ xTarget = _targetViewport$trans2.x,
29731
+ yTarget = _targetViewport$trans2.y;
29732
+ var _originViewport$trans2 = originViewport.translation,
29733
+ x = _originViewport$trans2.x,
29734
+ y = _originViewport$trans2.y;
29716
29735
 
29717
29736
  if (x === _xSource && y === _ySource) {
29718
29737
  return;