@micromag/core 0.3.615 → 0.3.617
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/es/index.js +10 -4
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -2189,9 +2189,13 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2189
2189
|
_ref2$type = _ref2.type,
|
|
2190
2190
|
screenType = _ref2$type === undefined ? null : _ref2$type,
|
|
2191
2191
|
_ref2$metadata = _ref2.metadata,
|
|
2192
|
-
metadata = _ref2$metadata === undefined ? {} : _ref2$metadata
|
|
2193
|
-
|
|
2194
|
-
|
|
2192
|
+
metadata = _ref2$metadata === undefined ? {} : _ref2$metadata,
|
|
2193
|
+
_ref2$parameters = _ref2.parameters,
|
|
2194
|
+
_ref2$parameters2 = _ref2$parameters === undefined ? {} : _ref2$parameters,
|
|
2195
|
+
parametersMetadata = _ref2$parameters2.metadata;
|
|
2196
|
+
var _ref3 = metadata || parametersMetadata || {},
|
|
2197
|
+
screenTitle = _ref3.title,
|
|
2198
|
+
screenDescrition = _ref3.description;
|
|
2195
2199
|
if (this.screensViewed.indexOf(screenId || screenIndex) === -1) {
|
|
2196
2200
|
this.screensViewed = [].concat(_toConsumableArray(this.screensViewed), [screenId || screenIndex]);
|
|
2197
2201
|
}
|
|
@@ -2200,7 +2204,9 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2200
2204
|
screenId: screenId,
|
|
2201
2205
|
screenType: screenType,
|
|
2202
2206
|
screenIndex: screenIndex,
|
|
2207
|
+
screensCount: screensCount,
|
|
2203
2208
|
screenTitle: screenTitle,
|
|
2209
|
+
screenDescrition: screenDescrition,
|
|
2204
2210
|
screenProgress: screensCount !== null && screenIndex !== null ? (screenIndex + 1) / screensCount : null,
|
|
2205
2211
|
screensViewed: this.screensViewed,
|
|
2206
2212
|
screensViewedProgress: screensCount !== null ? this.screensViewed.length / screensCount : null
|
|
@@ -2265,7 +2271,7 @@ var Tracking = /*#__PURE__*/function (_BaseTracking) {
|
|
|
2265
2271
|
data.mediaCurrentTime = Math.round(currentTime);
|
|
2266
2272
|
}
|
|
2267
2273
|
if (currentTime !== null && duration !== null && duration > 0) {
|
|
2268
|
-
data.mediaProgress =
|
|
2274
|
+
data.mediaProgress = currentTime / duration;
|
|
2269
2275
|
}
|
|
2270
2276
|
this.push(data);
|
|
2271
2277
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.617",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"access": "public",
|
|
145
145
|
"registry": "https://registry.npmjs.org/"
|
|
146
146
|
},
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "71149efe833960ffd5ce890735ff4d1c23ee6966"
|
|
148
148
|
}
|