@insync-stageplayer/measurements 0.4.13 → 0.4.15
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/lib/components/Icon/CloseIcon.js +3 -3
- package/lib/components/Icon/CloseIcon.js.map +1 -1
- package/lib/hooks/useOverlayMeasurementData.d.ts +1 -1
- package/lib/hooks/useOverlayMeasurementData.d.ts.map +1 -1
- package/lib/hooks/useOverlayMeasurementData.js +11 -29
- package/lib/hooks/useOverlayMeasurementData.js.map +1 -1
- package/package.json +3 -3
|
@@ -23,9 +23,9 @@ export const CloseIcon = (_a) => {
|
|
|
23
23
|
var props = __rest(_a, []);
|
|
24
24
|
return (React.createElement(StyledSvg, { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30" },
|
|
25
25
|
React.createElement("g", { id: "Group_1369", "data-name": "Group 1369", transform: "translate(9 9)", className: "hoverStyle" },
|
|
26
|
-
React.createElement("line", { id: "_x39_1c3244b-a44b-4462-ad78-3b291975bc24_1_", y1: "12", x2: "12", fill: "none", stroke: "#282828",
|
|
27
|
-
React.createElement("line", { id: "dcc09f5c-b82c-4d96-b38b-0540c6362512_1_", x1: "12", y1: "12", fill: "none", stroke: "#282828",
|
|
28
|
-
React.createElement("g", { id: "Ellipse_408", "data-name": "Ellipse 408", fill: "none", stroke: "#282828",
|
|
26
|
+
React.createElement("line", { id: "_x39_1c3244b-a44b-4462-ad78-3b291975bc24_1_", y1: "12", x2: "12", fill: "none", stroke: "#282828", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1" }),
|
|
27
|
+
React.createElement("line", { id: "dcc09f5c-b82c-4d96-b38b-0540c6362512_1_", x1: "12", y1: "12", fill: "none", stroke: "#282828", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1" })),
|
|
28
|
+
React.createElement("g", { id: "Ellipse_408", "data-name": "Ellipse 408", fill: "none", stroke: "#282828", strokeWidth: "1", className: "hoverStyle" },
|
|
29
29
|
React.createElement("circle", { cx: "15", cy: "15", r: "15", stroke: "none" }),
|
|
30
30
|
React.createElement("circle", { cx: "15", cy: "15", r: "14.5", fill: "none" }))));
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseIcon.js","sourceRoot":"","sources":["../../../src/components/Icon/CloseIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAOvC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAgB;;;;;;;CAO3C,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAA4B,EAAsB,EAAE;QAA/C,KAAK,cAAV,EAAY,CAAF;IAClC,OAAO,CACL,oBAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW;QAEnB,2BACE,EAAE,EAAC,YAAY,eACL,YAAY,EACtB,SAAS,EAAC,gBAAgB,EAC1B,SAAS,EAAC,YAAY;YAEtB,8BACE,EAAE,EAAC,6CAA6C,EAChD,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"CloseIcon.js","sourceRoot":"","sources":["../../../src/components/Icon/CloseIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAOvC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAgB;;;;;;;CAO3C,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAA4B,EAAsB,EAAE;QAA/C,KAAK,cAAV,EAAY,CAAF;IAClC,OAAO,CACL,oBAAC,SAAS,IACR,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW;QAEnB,2BACE,EAAE,EAAC,YAAY,eACL,YAAY,EACtB,SAAS,EAAC,gBAAgB,EAC1B,SAAS,EAAC,YAAY;YAEtB,8BACE,EAAE,EAAC,6CAA6C,EAChD,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,SAAS,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,GAAG,GACf;YACF,8BACE,EAAE,EAAC,yCAAyC,EAC5C,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,SAAS,EAChB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAC,GAAG,GACf,CACA;QACJ,2BACE,EAAE,EAAC,aAAa,eACN,aAAa,EACvB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EACf,SAAS,EAAC,YAAY;YAEtB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,GAAG;YAC/C,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,GAAG,CAC7C,CACM,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useOverlayMeasurementData: () => Promise<any
|
|
1
|
+
export declare const useOverlayMeasurementData: (props: any) => Promise<any> | undefined;
|
|
2
2
|
//# sourceMappingURL=useOverlayMeasurementData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayMeasurementData.d.ts","sourceRoot":"","sources":["../../src/hooks/useOverlayMeasurementData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useOverlayMeasurementData.d.ts","sourceRoot":"","sources":["../../src/hooks/useOverlayMeasurementData.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,UAAW,GAAG,6BAanD,CAAC"}
|
|
@@ -8,35 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { useMeasurementsModule } from "./useMeasurementsModule";
|
|
11
|
-
export const useOverlayMeasurementData = () => {
|
|
11
|
+
export const useOverlayMeasurementData = (props) => {
|
|
12
|
+
const { apiReqSent, overlayData } = props;
|
|
12
13
|
const { client } = useMeasurementsModule();
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
modality: "EyeTrackingService",
|
|
23
|
-
measurement: "GazeDataMeasurement",
|
|
24
|
-
x: "Gaze X",
|
|
25
|
-
y: "Gaze Y",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "TestOverlay2",
|
|
29
|
-
modality: "EyeTrackingService",
|
|
30
|
-
measurement: "MovementDataMeasurement",
|
|
31
|
-
x: "Fixation X",
|
|
32
|
-
y: "Fixation Y",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
})
|
|
36
|
-
.then((overlays) => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
-
if (overlays.code === 200) {
|
|
38
|
-
return overlays.overlayData;
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
14
|
+
if (!apiReqSent) {
|
|
15
|
+
return client
|
|
16
|
+
.fetchOverlayData(Object.assign({}, overlayData))
|
|
17
|
+
.then((overlays) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (overlays.code === 200) {
|
|
19
|
+
return overlays.overlayData;
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
41
23
|
};
|
|
42
24
|
//# sourceMappingURL=useOverlayMeasurementData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayMeasurementData.js","sourceRoot":"","sources":["../../src/hooks/useOverlayMeasurementData.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"useOverlayMeasurementData.js","sourceRoot":"","sources":["../../src/hooks/useOverlayMeasurementData.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAU,EAAE,EAAE;IACtD,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,EAAE,MAAM,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAE3C,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,MAAM;aACV,gBAAgB,mBAAM,WAAW,EAAG;aACpC,IAAI,CAAC,CAAO,QAAQ,EAAE,EAAE;YACvB,IAAI,QAAQ,CAAC,IAAI,KAAK,GAAG,EAAE;gBACzB,OAAO,QAAQ,CAAC,WAAW,CAAC;aAC7B;QACH,CAAC,CAAA,CAAC,CAAC;KACN;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insync-stageplayer/measurements",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.15",
|
|
4
4
|
"description": "Module for measurement data in stageplayer",
|
|
5
5
|
"author": "David Ammeraal <david.ammeraal@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Noterik/insync-stageplayer#readme",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@insync-stageplayer/common": "^0.4.12",
|
|
33
33
|
"@insync-stageplayer/time": "^0.4.12",
|
|
34
|
-
"@insync-stageplayer/ui-components": "^0.4.
|
|
34
|
+
"@insync-stageplayer/ui-components": "^0.4.14",
|
|
35
35
|
"@reduxjs/toolkit": "^1.5.1",
|
|
36
36
|
"@types/randomcolor": "^0.5.5",
|
|
37
37
|
"insync-date": "^1.1.2",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"optionalDependencies": {
|
|
54
54
|
"sbfreader": "^1.0.0-alpha.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "dcde8f81c426c97479f7fff218021e1fbfb2c905"
|
|
57
57
|
}
|