@gxpl/sdk 0.0.44 → 0.0.46
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.
|
@@ -17,10 +17,7 @@ const Preview = ({ children, relations, startScene }) => {
|
|
|
17
17
|
const [iframeRef, setIframeRef] = (0, react_1.useState)(null);
|
|
18
18
|
const [isTransitioning, setIsTransitioning] = (0, react_1.useState)(false);
|
|
19
19
|
const [activeScene, setActiveScene] = (0, react_1.useState)(startScene);
|
|
20
|
-
console.log('startScene', startScene);
|
|
21
|
-
console.log('relations', relations);
|
|
22
20
|
const [activeSides, setActiveSides] = (0, react_1.useState)((0, getAvailableTransitions_1.getAvailableTransitions)(startScene, relations));
|
|
23
|
-
console.log('activeSides', activeSides);
|
|
24
21
|
const handleSwipeToScene = (direction) => {
|
|
25
22
|
if (!iframeRef || !iframeRef.contentWindow || !iframeRef.contentDocument)
|
|
26
23
|
return;
|
|
@@ -127,7 +127,7 @@ class InteractionsRegistry {
|
|
|
127
127
|
});
|
|
128
128
|
const itemsToNotify = new Set(transitioningItems);
|
|
129
129
|
this.notifyItemCtrlsChange(Array.from(itemsToNotify));
|
|
130
|
-
this.notifyTransitionStartForItems(transitioningItems,
|
|
130
|
+
this.notifyTransitionStartForItems(transitioningItems, 'in');
|
|
131
131
|
}
|
|
132
132
|
notifySceneOutTransition() {
|
|
133
133
|
var _a;
|