@gamepark/react-game 6.38.5 → 6.38.7
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/components/PlayerPanel/Counters.d.ts +3 -2
- package/dist/components/PlayerPanel/Counters.js +21 -12
- package/dist/components/PlayerPanel/Counters.js.map +1 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.js +7 -31
- package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
- package/dist/components/material/utils/getBestDropMove.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/Chat/Chat.d.ts +0 -3
- package/dist/components/Chat/Chat.js +0 -80
- package/dist/components/Chat/Chat.js.map +0 -1
- package/dist/components/Chat/ChatMessage.d.ts +0 -7
- package/dist/components/Chat/ChatMessage.js +0 -29
- package/dist/components/Chat/ChatMessage.js.map +0 -1
- package/dist/components/Chat/ChatMessageAuthor.d.ts +0 -3
- package/dist/components/Chat/ChatMessageAuthor.js +0 -34
- package/dist/components/Chat/ChatMessageAuthor.js.map +0 -1
- package/dist/components/Chat/ChatTextInput.d.ts +0 -7
- package/dist/components/Chat/ChatTextInput.js +0 -44
- package/dist/components/Chat/ChatTextInput.js.map +0 -1
- package/dist/components/Chat/SignInToChat.d.ts +0 -1
- package/dist/components/Chat/SignInToChat.js +0 -35
- package/dist/components/Chat/SignInToChat.js.map +0 -1
- package/dist/components/Chat/index.d.ts +0 -5
- package/dist/components/Chat/index.js +0 -22
- package/dist/components/Chat/index.js.map +0 -1
- package/dist/components/Header/PlayerTurnHeader.d.ts +0 -11
- package/dist/components/Header/PlayerTurnHeader.js +0 -37
- package/dist/components/Header/PlayerTurnHeader.js.map +0 -1
- package/dist/components/Header/SimultaneousHeader.d.ts +0 -8
- package/dist/components/Header/SimultaneousHeader.js +0 -35
- package/dist/components/Header/SimultaneousHeader.js.map +0 -1
- package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +0 -12
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js +0 -62
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/MaterialHistory.d.ts +0 -10
- package/dist/components/JournalTabs/History/MaterialHistory.js +0 -3
- package/dist/components/JournalTabs/History/MaterialHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerActionHistory.js +0 -42
- package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +0 -44
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/StartHistory.d.ts +0 -2
- package/dist/components/JournalTabs/History/StartHistory.js +0 -30
- package/dist/components/JournalTabs/History/StartHistory.js.map +0 -1
- package/dist/components/material/Dices/DiceDescription.d.ts +0 -10
- package/dist/components/material/Dices/DiceDescription.js +0 -56
- package/dist/components/material/Dices/DiceDescription.js.map +0 -1
- package/dist/components/material/GameTable/DraggableStockItem.d.ts +0 -4
- package/dist/components/material/GameTable/DraggableStockItem.js +0 -82
- package/dist/components/material/GameTable/DraggableStockItem.js.map +0 -1
- package/dist/components/material/GameTable/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/FocusableLocation.js +0 -37
- package/dist/components/material/GameTable/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
- package/dist/components/material/GameTable/FocusableLocations.js +0 -2
- package/dist/components/material/GameTable/FocusableLocations.js.map +0 -1
- package/dist/components/material/GameTable/GameTableContent.d.ts +0 -18
- package/dist/components/material/GameTable/GameTableContent.js +0 -63
- package/dist/components/material/GameTable/GameTableContent.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/focus/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/focus/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/focus/FocusableLocation.js +0 -38
- package/dist/components/material/GameTable/focus/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +0 -9
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js +0 -45
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +0 -1
- package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
- package/dist/components/material/GameTable/locations.utils.js +0 -2
- package/dist/components/material/GameTable/locations.utils.js.map +0 -1
- package/dist/components/material/ItemMenu.js.map +0 -1
- package/dist/components/material/MaterialAnimations.d.ts +0 -25
- package/dist/components/material/MaterialAnimations.js +0 -219
- package/dist/components/material/MaterialAnimations.js.map +0 -1
- package/dist/components/material/MaterialGameAnimations.d.ts +0 -10
- package/dist/components/material/MaterialGameAnimations.js +0 -47
- package/dist/components/material/MaterialGameAnimations.js.map +0 -1
- package/dist/components/material/animations/adjustRotation.d.ts +0 -1
- package/dist/components/material/animations/adjustRotation.js +0 -67
- package/dist/components/material/animations/adjustRotation.js.map +0 -1
- package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +0 -3
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js +0 -26
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +0 -1
- package/dist/components/material/animations/itemMovementCss.util.d.ts +0 -2
- package/dist/components/material/animations/itemMovementCss.util.js +0 -13
- package/dist/components/material/animations/itemMovementCss.util.js.map +0 -1
- package/dist/components/material/locations/HexGridDropArea.d.ts +0 -11
- package/dist/components/material/locations/HexGridDropArea.js +0 -74
- package/dist/components/material/locations/HexGridDropArea.js.map +0 -1
- package/dist/components/material/utils/IsMoveOnItem.d.ts +0 -2
- package/dist/components/material/utils/IsMoveOnItem.js +0 -12
- package/dist/components/material/utils/IsMoveOnItem.js.map +0 -1
- package/dist/components/material/utils/getItemFromContext.d.ts +0 -3
- package/dist/components/material/utils/getItemFromContext.js +0 -10
- package/dist/components/material/utils/getItemFromContext.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.d.ts +0 -4
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js +0 -27
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/index.d.ts +0 -1
- package/dist/components/menus/ContrastThemeButton/index.js +0 -18
- package/dist/components/menus/ContrastThemeButton/index.js.map +0 -1
- package/dist/components/tutorial/FocusableElement.d.ts +0 -0
- package/dist/components/tutorial/FocusableElement.js +0 -2
- package/dist/components/tutorial/FocusableElement.js.map +0 -1
- package/dist/hooks/useCloseHelpDialog.d.ts +0 -1
- package/dist/hooks/useCloseHelpDialog.js +0 -14
- package/dist/hooks/useCloseHelpDialog.js.map +0 -1
- package/dist/hooks/useContrastTheme.d.ts +0 -7
- package/dist/hooks/useContrastTheme.js +0 -27
- package/dist/hooks/useContrastTheme.js.map +0 -1
- package/dist/hooks/useGameHistory.d.ts +0 -1
- package/dist/hooks/useGameHistory.js +0 -13
- package/dist/hooks/useGameHistory.js.map +0 -1
- package/dist/hooks/useHistory.d.ts +0 -6
- package/dist/hooks/useHistory.js +0 -85
- package/dist/hooks/useHistory.js.map +0 -1
- package/dist/hooks/useMaterialAnimations.d.ts +0 -2
- package/dist/hooks/useMaterialAnimations.js +0 -17
- package/dist/hooks/useMaterialAnimations.js.map +0 -1
- package/dist/hooks/useMaterials.d.ts +0 -2
- package/dist/hooks/useMaterials.js +0 -10
- package/dist/hooks/useMaterials.js.map +0 -1
- package/dist/hooks/useRulesStep.d.ts +0 -2
- package/dist/hooks/useRulesStep.js +0 -10
- package/dist/hooks/useRulesStep.js.map +0 -1
- package/dist/hooks/useScale.d.ts +0 -1
- package/dist/hooks/useScale.js +0 -16
- package/dist/hooks/useScale.js.map +0 -1
- package/dist/locators/GridLocator.d.ts +0 -13
- package/dist/locators/GridLocator.js +0 -59
- package/dist/locators/GridLocator.js.map +0 -1
- package/dist/locators/ItemLocator.d.ts +0 -49
- package/dist/locators/ItemLocator.js +0 -144
- package/dist/locators/ItemLocator.js.map +0 -1
- package/dist/locators/LineLocator.d.ts +0 -12
- package/dist/locators/LineLocator.js +0 -77
- package/dist/locators/LineLocator.js.map +0 -1
- package/dist/translation/index.d.ts +0 -1
- package/dist/translation/index.js +0 -18
- package/dist/translation/index.js.map +0 -1
- package/dist/translation/setupTranslation.d.ts +0 -5
- package/dist/translation/setupTranslation.js +0 -33
- package/dist/translation/setupTranslation.js.map +0 -1
- package/dist/utilities/animations.constants.d.ts +0 -16
- package/dist/utilities/animations.constants.js +0 -62
- package/dist/utilities/animations.constants.js.map +0 -1
- package/dist/utilities/animations.util.d.ts +0 -4
- package/dist/utilities/animations.util.js +0 -71
- package/dist/utilities/animations.util.js.map +0 -1
- package/dist/utilities/bounds.util.d.ts +0 -7
- package/dist/utilities/bounds.util.js +0 -77
- package/dist/utilities/bounds.util.js.map +0 -1
- package/dist/utilities/calculation.util.d.ts +0 -2
- package/dist/utilities/calculation.util.js +0 -12
- package/dist/utilities/calculation.util.js.map +0 -1
- package/dist/utilities/zoom.util.d.ts +0 -1
- package/dist/utilities/zoom.util.js +0 -14
- package/dist/utilities/zoom.util.js.map +0 -1
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.animations = void 0;
|
|
4
|
-
var easeOut = function (t) {
|
|
5
|
-
return -Math.cos(t * Math.PI) / 2 + 0.5;
|
|
6
|
-
};
|
|
7
|
-
var linear = function (t) {
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
var easeInQuad = function (t) {
|
|
11
|
-
return t * t;
|
|
12
|
-
};
|
|
13
|
-
var easeOutQuad = function (t) {
|
|
14
|
-
return t * (2 - t);
|
|
15
|
-
};
|
|
16
|
-
var easeInOutQuad = function (t) {
|
|
17
|
-
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
|
|
18
|
-
};
|
|
19
|
-
var easeInCubic = function (t) {
|
|
20
|
-
return t * t * t;
|
|
21
|
-
};
|
|
22
|
-
var easeOutCubic = function (t) {
|
|
23
|
-
return --t * t * t + 1;
|
|
24
|
-
};
|
|
25
|
-
var easeInOutCubic = function (t) {
|
|
26
|
-
return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
|
|
27
|
-
};
|
|
28
|
-
var easeInQuart = function (t) {
|
|
29
|
-
return t * t * t * t;
|
|
30
|
-
};
|
|
31
|
-
var easeOutQuart = function (t) {
|
|
32
|
-
return 1 - --t * t * t * t;
|
|
33
|
-
};
|
|
34
|
-
var easeInOutQuart = function (t) {
|
|
35
|
-
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
|
|
36
|
-
};
|
|
37
|
-
var easeInQuint = function (t) {
|
|
38
|
-
return t * t * t * t * t;
|
|
39
|
-
};
|
|
40
|
-
var easeOutQuint = function (t) {
|
|
41
|
-
return 1 + --t * t * t * t * t;
|
|
42
|
-
};
|
|
43
|
-
var easeInOutQuint = function (t) {
|
|
44
|
-
return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;
|
|
45
|
-
};
|
|
46
|
-
exports.animations = {
|
|
47
|
-
easeOut: easeOut,
|
|
48
|
-
linear: linear,
|
|
49
|
-
easeInQuad: easeInQuad,
|
|
50
|
-
easeOutQuad: easeOutQuad,
|
|
51
|
-
easeInOutQuad: easeInOutQuad,
|
|
52
|
-
easeInCubic: easeInCubic,
|
|
53
|
-
easeOutCubic: easeOutCubic,
|
|
54
|
-
easeInOutCubic: easeInOutCubic,
|
|
55
|
-
easeInQuart: easeInQuart,
|
|
56
|
-
easeOutQuart: easeOutQuart,
|
|
57
|
-
easeInOutQuart: easeInOutQuart,
|
|
58
|
-
easeInQuint: easeInQuint,
|
|
59
|
-
easeOutQuint: easeOutQuint,
|
|
60
|
-
easeInOutQuint: easeInOutQuint
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=animations.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animations.constants.js","sourceRoot":"","sources":["../../src/utilities/animations.constants.ts"],"names":[],"mappings":";;;AAOA,IAAM,OAAO,GAAG,UAAC,CAAS;IACxB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AACzC,CAAC,CAAA;AAED,IAAM,MAAM,GAAG,UAAC,CAAS;IACvB,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAED,IAAM,UAAU,GAAG,UAAC,CAAS;IAC3B,OAAO,CAAC,GAAG,CAAC,CAAA;AACd,CAAC,CAAA;AAED,IAAM,WAAW,GAAG,UAAC,CAAS;IAC5B,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;AACpB,CAAC,CAAA;AAED,IAAM,aAAa,GAAG,UAAC,CAAS;IAC9B,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AACnD,CAAC,CAAA;AAED,IAAM,WAAW,GAAG,UAAC,CAAS;IAC5B,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAClB,CAAC,CAAA;AAED,IAAM,YAAY,GAAG,UAAC,CAAS;IAC7B,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC,CAAA;AAED,IAAM,cAAc,GAAG,UAAC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EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AACxE,CAAC,CAAA;AAEY,QAAA,UAAU,GAAG;IACxB,OAAO,SAAA;IACP,MAAM,QAAA;IACN,UAAU,YAAA;IACV,WAAW,aAAA;IACX,aAAa,eAAA;IACb,WAAW,aAAA;IACX,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,WAAW,aAAA;IACX,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,WAAW,aAAA;IACX,YAAY,cAAA;IACZ,cAAc,gBAAA;CACf,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ReactZoomPanPinchContext, StateType } from 'react-zoom-pan-pinch';
|
|
2
|
-
export declare const handleCancelAnimation: (contextInstance: ReactZoomPanPinchContext) => void;
|
|
3
|
-
export declare function handleSetupAnimation(contextInstance: ReactZoomPanPinchContext, animationName: string, animationTime: number, callback: (step: number) => void): void;
|
|
4
|
-
export declare function animate(contextInstance: ReactZoomPanPinchContext, targetState: StateType, animationTime: number, animationName: string): void;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.animate = exports.handleSetupAnimation = exports.handleCancelAnimation = void 0;
|
|
4
|
-
var animations_constants_1 = require("./animations.constants");
|
|
5
|
-
var handleCancelAnimationFrame = function (animation) {
|
|
6
|
-
if (typeof animation === 'number') {
|
|
7
|
-
cancelAnimationFrame(animation);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var handleCancelAnimation = function (contextInstance) {
|
|
11
|
-
if (!contextInstance.mounted)
|
|
12
|
-
return;
|
|
13
|
-
handleCancelAnimationFrame(contextInstance.animation);
|
|
14
|
-
contextInstance.animate = false;
|
|
15
|
-
contextInstance.animation = null;
|
|
16
|
-
contextInstance.velocity = null;
|
|
17
|
-
};
|
|
18
|
-
exports.handleCancelAnimation = handleCancelAnimation;
|
|
19
|
-
function handleSetupAnimation(contextInstance, animationName, animationTime, callback) {
|
|
20
|
-
if (!contextInstance.mounted)
|
|
21
|
-
return;
|
|
22
|
-
var startTime = new Date().getTime();
|
|
23
|
-
var lastStep = 1;
|
|
24
|
-
(0, exports.handleCancelAnimation)(contextInstance);
|
|
25
|
-
contextInstance.animation = function () {
|
|
26
|
-
if (!contextInstance.mounted) {
|
|
27
|
-
return handleCancelAnimationFrame(contextInstance.animation);
|
|
28
|
-
}
|
|
29
|
-
var frameTime = new Date().getTime() - startTime;
|
|
30
|
-
var animationProgress = frameTime / animationTime;
|
|
31
|
-
var animationType = animations_constants_1.animations[animationName];
|
|
32
|
-
var step = animationType(animationProgress);
|
|
33
|
-
if (frameTime >= animationTime) {
|
|
34
|
-
callback(lastStep);
|
|
35
|
-
contextInstance.animation = null;
|
|
36
|
-
}
|
|
37
|
-
else if (contextInstance.animation) {
|
|
38
|
-
callback(step);
|
|
39
|
-
requestAnimationFrame(contextInstance.animation);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
requestAnimationFrame(contextInstance.animation);
|
|
43
|
-
}
|
|
44
|
-
exports.handleSetupAnimation = handleSetupAnimation;
|
|
45
|
-
function isValidTargetState(targetState) {
|
|
46
|
-
var scale = targetState.scale, positionX = targetState.positionX, positionY = targetState.positionY;
|
|
47
|
-
return !(Number.isNaN(scale) || Number.isNaN(positionX) || Number.isNaN(positionY));
|
|
48
|
-
}
|
|
49
|
-
function animate(contextInstance, targetState, animationTime, animationName) {
|
|
50
|
-
var isValid = isValidTargetState(targetState);
|
|
51
|
-
if (!contextInstance.mounted || !isValid)
|
|
52
|
-
return;
|
|
53
|
-
var setTransformState = contextInstance.setTransformState;
|
|
54
|
-
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
55
|
-
var scaleDiff = targetState.scale - scale;
|
|
56
|
-
var positionXDiff = targetState.positionX - positionX;
|
|
57
|
-
var positionYDiff = targetState.positionY - positionY;
|
|
58
|
-
if (animationTime === 0) {
|
|
59
|
-
setTransformState(targetState.scale, targetState.positionX, targetState.positionY);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
handleSetupAnimation(contextInstance, animationName, animationTime, function (step) {
|
|
63
|
-
var newScale = scale + scaleDiff * step;
|
|
64
|
-
var newPositionX = positionX + positionXDiff * step;
|
|
65
|
-
var newPositionY = positionY + positionYDiff * step;
|
|
66
|
-
setTransformState(newScale, newPositionX, newPositionY);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.animate = animate;
|
|
71
|
-
//# sourceMappingURL=animations.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animations.util.js","sourceRoot":"","sources":["../../src/utilities/animations.util.ts"],"names":[],"mappings":";;;AAGA,+DAAmD;AAGnD,IAAM,0BAA0B,GAAG,UAAC,SAA+B;IACjE,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QACjC,oBAAoB,CAAC,SAAS,CAAC,CAAA;KAChC;AACH,CAAC,CAAA;AAEM,IAAM,qBAAqB,GAAG,UACnC,eAAyC;IAEzC,IAAI,CAAC,eAAe,CAAC,OAAO;QAAE,OAAM;IACpC,0BAA0B,CAAC,eAAe,CAAC,SAAS,CAAC,CAAA;IAErD,eAAe,CAAC,OAAO,GAAG,KAAK,CAAA;IAC/B,eAAe,CAAC,SAAS,GAAG,IAAI,CAAA;IAChC,eAAe,CAAC,QAAQ,GAAG,IAAI,CAAA;AACjC,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AAED,SAAgB,oBAAoB,CAClC,eAAyC,EACzC,aAAqB,EACrB,aAAqB,EACrB,QAAgC;IAEhC,IAAI,CAAC,eAAe,CAAC,OAAO;QAAE,OAAM;IACpC,IAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IACtC,IAAM,QAAQ,GAAG,CAAC,CAAA;IAGlB,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AAC,OAAO,IAAI,CAAC,OAAO;QAAE,OAAM;IAExC,IAAA,iBAAiB,GAAK,eAAe,kBAApB,CAAoB;IACvC,IAAA,KAAkC,eAAe,CAAC,cAAc,EAA9D,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,SAAS,eAAmC,CAAA;IAEtE,IAAM,SAAS,GAAG,WAAW,CAAC,KAAK,GAAG,KAAK,CAAA;IAC3C,IAAM,aAAa,GAAG,WAAW,CAAC,SAAS,GAAG,SAAS,CAAA;IACvD,IAAM,aAAa,GAAG,WAAW,CAAC,SAAS,GAAG,SAAS,CAAA;IAEvD,IAAI,aAAa,KAAK,CAAC,EAAE;QACvB,iBAAiB,CACf,WAAW,CAAC,KAAK,EACjB,WAAW,CAAC,SAAS,EACrB,WAAW,CAAC,SAAS,CACtB,CAAA;KACF;SAAM;QAEL,oBAAoB,CAClB,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAC,IAAY;YACX,IAAM,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,IAAI,CAAA;YACzC,IAAM,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAAA;YACrD,IAAM,YAAY,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAAA;YAErD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,CAAA;QACzD,CAAC,CACF,CAAA;KACF;AACH,CAAC;AArCD,0BAqCC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BoundsType, PositionType, ReactZoomPanPinchContext } from 'react-zoom-pan-pinch';
|
|
2
|
-
export declare function getComponentsSizes(wrapperComponent: HTMLDivElement, contentComponent: HTMLDivElement, newScale: number): any;
|
|
3
|
-
export declare const getBounds: (wrapperWidth: number, newContentWidth: number, diffWidth: number, wrapperHeight: number, newContentHeight: number, diffHeight: number, centerZoomedOut: boolean) => BoundsType;
|
|
4
|
-
export declare const calculateBounds: (contextInstance: ReactZoomPanPinchContext, newScale: number) => BoundsType;
|
|
5
|
-
export declare const boundLimiter: (value: number, minBound: number, maxBound: number, isActive: boolean) => number;
|
|
6
|
-
export declare const handleCalculateBounds: (contextInstance: ReactZoomPanPinchContext, newScale: number) => BoundsType;
|
|
7
|
-
export declare function getMouseBoundedPosition(positionX: number, positionY: number, bounds: BoundsType, limitToBounds: boolean, paddingValueX: number, paddingValueY: number, wrapperComponent: HTMLDivElement | null): PositionType;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMouseBoundedPosition = exports.handleCalculateBounds = exports.boundLimiter = exports.calculateBounds = exports.getBounds = exports.getComponentsSizes = void 0;
|
|
4
|
-
var calculation_util_1 = require("./calculation.util");
|
|
5
|
-
function getComponentsSizes(wrapperComponent, contentComponent, newScale) {
|
|
6
|
-
var wrapperWidth = wrapperComponent.offsetWidth;
|
|
7
|
-
var wrapperHeight = wrapperComponent.offsetHeight;
|
|
8
|
-
var contentWidth = contentComponent.offsetWidth;
|
|
9
|
-
var contentHeight = contentComponent.offsetHeight;
|
|
10
|
-
var newContentWidth = contentWidth * newScale;
|
|
11
|
-
var newContentHeight = contentHeight * newScale;
|
|
12
|
-
var newDiffWidth = wrapperWidth - newContentWidth;
|
|
13
|
-
var newDiffHeight = wrapperHeight - newContentHeight;
|
|
14
|
-
return {
|
|
15
|
-
wrapperWidth: wrapperWidth,
|
|
16
|
-
wrapperHeight: wrapperHeight,
|
|
17
|
-
newContentWidth: newContentWidth,
|
|
18
|
-
newDiffWidth: newDiffWidth,
|
|
19
|
-
newContentHeight: newContentHeight,
|
|
20
|
-
newDiffHeight: newDiffHeight
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
exports.getComponentsSizes = getComponentsSizes;
|
|
24
|
-
var getBounds = function (wrapperWidth, newContentWidth, diffWidth, wrapperHeight, newContentHeight, diffHeight, centerZoomedOut) {
|
|
25
|
-
var scaleWidthFactor = wrapperWidth > newContentWidth
|
|
26
|
-
? diffWidth * (centerZoomedOut ? 1 : 0.5)
|
|
27
|
-
: 0;
|
|
28
|
-
var scaleHeightFactor = wrapperHeight > newContentHeight
|
|
29
|
-
? diffHeight * (centerZoomedOut ? 1 : 0.5)
|
|
30
|
-
: 0;
|
|
31
|
-
var minPositionX = wrapperWidth - newContentWidth - scaleWidthFactor;
|
|
32
|
-
var maxPositionX = scaleWidthFactor;
|
|
33
|
-
var minPositionY = wrapperHeight - newContentHeight - scaleHeightFactor;
|
|
34
|
-
var maxPositionY = scaleHeightFactor;
|
|
35
|
-
return { minPositionX: minPositionX, maxPositionX: maxPositionX, minPositionY: minPositionY, maxPositionY: maxPositionY };
|
|
36
|
-
};
|
|
37
|
-
exports.getBounds = getBounds;
|
|
38
|
-
var calculateBounds = function (contextInstance, newScale) {
|
|
39
|
-
var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;
|
|
40
|
-
var centerZoomedOut = contextInstance.setup.centerZoomedOut;
|
|
41
|
-
if (!wrapperComponent || !contentComponent) {
|
|
42
|
-
throw new Error('Components are not mounted');
|
|
43
|
-
}
|
|
44
|
-
var _a = getComponentsSizes(wrapperComponent, contentComponent, newScale), wrapperWidth = _a.wrapperWidth, wrapperHeight = _a.wrapperHeight, newContentWidth = _a.newContentWidth, newDiffWidth = _a.newDiffWidth, newContentHeight = _a.newContentHeight, newDiffHeight = _a.newDiffHeight;
|
|
45
|
-
return (0, exports.getBounds)(wrapperWidth, newContentWidth, newDiffWidth, wrapperHeight, newContentHeight, newDiffHeight, Boolean(centerZoomedOut));
|
|
46
|
-
};
|
|
47
|
-
exports.calculateBounds = calculateBounds;
|
|
48
|
-
var boundLimiter = function (value, minBound, maxBound, isActive) {
|
|
49
|
-
if (!isActive)
|
|
50
|
-
return (0, calculation_util_1.roundNumber)(value, 2);
|
|
51
|
-
if (value < minBound)
|
|
52
|
-
return (0, calculation_util_1.roundNumber)(minBound, 2);
|
|
53
|
-
if (value > maxBound)
|
|
54
|
-
return (0, calculation_util_1.roundNumber)(maxBound, 2);
|
|
55
|
-
return (0, calculation_util_1.roundNumber)(value, 2);
|
|
56
|
-
};
|
|
57
|
-
exports.boundLimiter = boundLimiter;
|
|
58
|
-
var handleCalculateBounds = function (contextInstance, newScale) {
|
|
59
|
-
var bounds = (0, exports.calculateBounds)(contextInstance, newScale);
|
|
60
|
-
contextInstance.bounds = bounds;
|
|
61
|
-
return bounds;
|
|
62
|
-
};
|
|
63
|
-
exports.handleCalculateBounds = handleCalculateBounds;
|
|
64
|
-
function getMouseBoundedPosition(positionX, positionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent) {
|
|
65
|
-
var minPositionX = bounds.minPositionX, minPositionY = bounds.minPositionY, maxPositionX = bounds.maxPositionX, maxPositionY = bounds.maxPositionY;
|
|
66
|
-
var paddingX = 0;
|
|
67
|
-
var paddingY = 0;
|
|
68
|
-
if (wrapperComponent) {
|
|
69
|
-
paddingX = paddingValueX;
|
|
70
|
-
paddingY = paddingValueY;
|
|
71
|
-
}
|
|
72
|
-
var x = (0, exports.boundLimiter)(positionX, minPositionX - paddingX, maxPositionX + paddingX, limitToBounds);
|
|
73
|
-
var y = (0, exports.boundLimiter)(positionY, minPositionY - paddingY, maxPositionY + paddingY, limitToBounds);
|
|
74
|
-
return { x: x, y: y };
|
|
75
|
-
}
|
|
76
|
-
exports.getMouseBoundedPosition = getMouseBoundedPosition;
|
|
77
|
-
//# sourceMappingURL=bounds.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.util.js","sourceRoot":"","sources":["../../src/utilities/bounds.util.ts"],"names":[],"mappings":";;;AAIA,uDAAgD;AAEhD,SAAgB,kBAAkB,CAChC,gBAAgC,EAChC,gBAAgC,EAChC,QAAgB;IAEhB,IAAM,YAAY,GAAG,gBAAgB,CAAC,WAAW,CAAA;IACjD,IAAM,aAAa,GAAG,gBAAgB,CAAC,YAAY,CAAA;IAEnD,IAAM,YAA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AAM,MAAM,GAAG,IAAA,uBAAe,EAAC,eAAe,EAAE,QAAQ,CAAC,CAAA;IAGzD,eAAe,CAAC,MAAM,GAAG,MAAM,CAAA;IAC/B,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AAED,SAAgB,uBAAuB,CACrC,SAAiB,EACjB,SAAiB,EACjB,MAAkB,EAClB,aAAsB,EACtB,aAAqB,EACrB,aAAqB,EACrB,gBAAuC;IAE/B,IAAA,YAAY,GAA+C,MAAM,aAArD,EAAE,YAAY,GAAiC,MAAM,aAAvC,EAAE,YAAY,GAAmB,MAAM,aAAzB,EAAE,YAAY,GAAK,MAAM,aAAX,CAAW;IAEzE,IAAI,QAAQ,GAAG,CAAC,CAAA;IAChB,IAAI,QAAQ,GAAG,CAAC,CAAA;IAEhB,IAAI,gBAAgB,EAAE;QACpB,QAAQ,GAAG,aAAa,CAAA;QACxB,QAAQ,GAAG,aAAa,CAAA;KACzB;IAED,IAAM,CAAC,GAAG,IAAA,oBAAY,EACpB,SAAS,EACT,YAAY,GAAG,QAAQ,EACvB,YAAY,GAAG,QAAQ,EACvB,aAAa,CACd,CAAA;IAED,IAAM,CAAC,GAAG,IAAA,oBAAY,EACpB,SAAS,EACT,YAAY,GAAG,QAAQ,EACvB,YAAY,GAAG,QAAQ,EACvB,aAAa,CACd,CAAA;IACD,OAAO,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAA;AACjB,CAAC;AAjCD,0DAiCC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkIsNumber = exports.roundNumber = void 0;
|
|
4
|
-
var roundNumber = function (num, decimal) {
|
|
5
|
-
return Number(num.toFixed(decimal));
|
|
6
|
-
};
|
|
7
|
-
exports.roundNumber = roundNumber;
|
|
8
|
-
var checkIsNumber = function (num, defaultValue) {
|
|
9
|
-
return typeof num === "number" ? num : defaultValue;
|
|
10
|
-
};
|
|
11
|
-
exports.checkIsNumber = checkIsNumber;
|
|
12
|
-
//# sourceMappingURL=calculation.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculation.util.js","sourceRoot":"","sources":["../../src/utilities/calculation.util.ts"],"names":[],"mappings":";;;AAQO,IAAM,WAAW,GAAG,UAAC,GAAW,EAAE,OAAe;IACtD,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AACtC,CAAC,CAAC;AAFW,QAAA,WAAW,eAEtB;AAOK,IAAM,aAAa,GAAG,UAAC,GAAQ,EAAE,YAAoB;IAC1D,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function checkZoomBounds(zoom: number, minScale: number, maxScale: number, zoomPadding: number, enablePadding: boolean): number;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkZoomBounds = void 0;
|
|
4
|
-
function checkZoomBounds(zoom, minScale, maxScale, zoomPadding, enablePadding) {
|
|
5
|
-
var scalePadding = enablePadding ? zoomPadding : 0;
|
|
6
|
-
var minScaleWithPadding = minScale - scalePadding;
|
|
7
|
-
if (!Number.isNaN(maxScale) && zoom >= maxScale)
|
|
8
|
-
return maxScale;
|
|
9
|
-
if (!Number.isNaN(minScale) && zoom <= minScaleWithPadding)
|
|
10
|
-
return minScaleWithPadding;
|
|
11
|
-
return zoom;
|
|
12
|
-
}
|
|
13
|
-
exports.checkZoomBounds = checkZoomBounds;
|
|
14
|
-
//# sourceMappingURL=zoom.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zoom.util.js","sourceRoot":"","sources":["../../src/utilities/zoom.util.ts"],"names":[],"mappings":";;;AAGA,SAAgB,eAAe,CAC7B,IAAY,EACZ,QAAgB,EAChB,QAAgB,EAChB,WAAmB,EACnB,aAAsB;IAEtB,IAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;IACpD,IAAM,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAA;IAEnD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAChE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,mBAAmB;QACxD,OAAO,mBAAmB,CAAA;IAC5B,OAAO,IAAI,CAAA;AACb,CAAC;AAdD,0CAcC"}
|