@enact/ui 5.5.2 → 5.7.0
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/AnnounceDecorator/Announce.js +8 -8
- package/AnnounceDecorator/AnnounceDecorator.js +5 -5
- package/BodyText/BodyText.js +5 -5
- package/BodyText/tests/BodyText-specs.js +2 -1
- package/Button/Button.js +5 -5
- package/CHANGELOG.md +24 -0
- package/Cancelable/Cancelable.js +9 -9
- package/Cancelable/tests/Cancelable-specs.js +5 -5
- package/Card/Card.js +5 -5
- package/Card/tests/Card-specs.js +2 -1
- package/Changeable/Changeable.js +9 -9
- package/ComponentOverride/ComponentOverride.js +15 -11
- package/FloatingLayer/FloatingLayer.js +10 -10
- package/FloatingLayer/FloatingLayerContainer.js +3 -3
- package/FloatingLayer/FloatingLayerDecorator.js +5 -5
- package/FloatingLayer/Scrim.js +9 -9
- package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +4 -4
- package/FloatingLayer/useFloatingLayer.js +3 -4
- package/ForwardRef/ForwardRef.js +5 -5
- package/Group/Group.js +5 -5
- package/Group/GroupItem.js +5 -5
- package/Group/tests/Group-specs.js +2 -1
- package/Heading/Heading.js +5 -5
- package/Icon/Icon.js +5 -5
- package/Icon/tests/Icon-specs.js +2 -1
- package/Image/Image.d.ts +15 -0
- package/Image/Image.js +41 -11
- package/Image/tests/Image-specs.js +2 -1
- package/ImageItem/ImageItem.js +5 -5
- package/ImageItem/tests/ImageItem-specs.js +6 -5
- package/Item/Item.js +5 -5
- package/LabeledIcon/LabeledIcon.js +5 -5
- package/Layout/Cell.js +5 -5
- package/Layout/Layout.js +5 -5
- package/Layout/tests/Layout-specs.js +9 -9
- package/Marquee/Marquee.module.css +44 -0
- package/Marquee/MarqueeBase.js +134 -21
- package/Marquee/MarqueeController.js +4 -4
- package/Marquee/MarqueeDecorator.js +219 -27
- package/Marquee/index.d.ts +60 -12
- package/Marquee/tests/Marquee-specs.js +3 -3
- package/Marquee/tests/Marquee-vertical-specs.js +1358 -0
- package/Marquee/useMarqueeController.js +4 -4
- package/Marquee/utils.js +22 -0
- package/Marquee/verticalMeasure.js +118 -0
- package/Measurable/Measurable.js +8 -9
- package/Measurable/tests/Measurable-specs.js +7 -6
- package/Media/Media.js +10 -10
- package/Placeholder/PlaceholderControllerDecorator.js +9 -9
- package/Placeholder/PlaceholderDecorator.js +9 -9
- package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +4 -4
- package/ProgressBar/ProgressBar.js +5 -5
- package/Repeater/Repeater.js +5 -5
- package/Repeater/tests/Repeater-specs.js +6 -5
- package/Resizable/Resizable.js +4 -4
- package/Resizable/tests/Resizable-specs.js +2 -1
- package/Resizable/tests/useResize-specs.js +4 -4
- package/Resizable/useResize.js +3 -3
- package/Routable/Link.js +9 -9
- package/Routable/Routable.js +5 -5
- package/Routable/Router.js +9 -9
- package/Routable/tests/Routable-specs.js +7 -8
- package/Routable/tests/Router-specs.js +1 -1
- package/Scroller/Scroller.js +4 -4
- package/Scroller/ScrollerBasic.js +10 -10
- package/Skinnable/Skinnable.js +5 -5
- package/Skinnable/tests/Skinnable-specs.js +4 -4
- package/Skinnable/tests/useSkins-specs.js +4 -4
- package/Slider/Knob.js +5 -5
- package/Slider/PositionDecorator.js +8 -8
- package/Slider/Slider.js +5 -5
- package/Slottable/Slottable.js +4 -4
- package/Slottable/useSlots.js +5 -5
- package/Spinner/Spinner.js +5 -5
- package/ToggleIcon/ToggleIcon.js +5 -5
- package/Toggleable/Toggle.js +5 -5
- package/Toggleable/Toggleable.js +9 -9
- package/Toggleable/useToggle.js +5 -5
- package/Touchable/ClickAllow.js +3 -3
- package/Touchable/Drag.js +6 -6
- package/Touchable/Flick.js +5 -5
- package/Touchable/Hold.js +5 -5
- package/Touchable/Pinch.js +6 -6
- package/Touchable/Touch.js +3 -3
- package/Touchable/Touchable.js +5 -5
- package/Touchable/config.js +4 -4
- package/Touchable/tests/Touchable-specs.js +1 -1
- package/Touchable/tests/useTouch-specs.js +5 -5
- package/Touchable/useTouch.js +7 -8
- package/Transition/Transition.js +16 -15
- package/Transition/tests/Transition-specs.js +9 -9
- package/ViewManager/Arranger.js +4 -4
- package/ViewManager/TransitionGroup.js +7 -7
- package/ViewManager/View.js +9 -9
- package/ViewManager/ViewManager.js +11 -10
- package/ViewManager/tests/ViewManager-specs.js +6 -6
- package/VirtualList/VirtualList.js +4 -4
- package/VirtualList/VirtualListBasic.js +67 -47
- package/VirtualList/tests/VirtualGridList-native-specs.js +5 -5
- package/VirtualList/tests/VirtualGridList-specs.js +16 -15
- package/VirtualList/tests/VirtualList-native-specs.js +164 -16
- package/VirtualList/tests/VirtualList-specs.js +16 -15
- package/internal/IdProvider/IdProvider.js +4 -4
- package/internal/IdProvider/Provider.js +3 -3
- package/internal/IdProvider/tests/IdProvider-specs.js +4 -4
- package/internal/IdProvider/tests/useId-specs.js +16 -8
- package/internal/Pure/Pure.js +9 -9
- package/internal/Pure/tests/Pure-specs.js +8 -8
- package/internal/localized-fonts/localized-fonts.js +3 -4
- package/package.json +6 -6
- package/resolution/ResolutionDecorator.js +71 -87
- package/resolution/index.js +2 -1
- package/resolution/tests/resolution-specs.js +7 -8
- package/useControlledState/tests/useControlledState-specs.js +3 -4
- package/useControlledState/useControlledState.js +3 -4
- package/useScroll/ScrollAnimator.js +3 -3
- package/useScroll/Scrollbar.js +5 -5
- package/useScroll/ScrollbarTrack.js +5 -5
- package/useScroll/scrollMotion.js +126 -0
- package/useScroll/tests/scrollMotion-specs.js +215 -0
- package/useScroll/tests/useScroll-specs.js +430 -9
- package/useScroll/useScroll.js +156 -92
package/Marquee/MarqueeBase.js
CHANGED
|
@@ -7,18 +7,19 @@ exports["default"] = exports.MarqueeBase = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("@enact/core/internal/prop-types"));
|
|
8
8
|
var _handle = require("@enact/core/handle");
|
|
9
9
|
var _kind = _interopRequireDefault(require("@enact/core/kind"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
11
|
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
11
12
|
var _react = require("react");
|
|
12
13
|
var _MarqueeModule = _interopRequireDefault(require("./Marquee.module.css"));
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _excluded = ["applyOffset", "children", "clientClassName", "clientRef", "clientStyle", "css", "duplicate", "onMarqueeComplete", "rtl"];
|
|
15
|
+
var _excluded = ["applyOffset", "children", "clientClassName", "clientRef", "clientStyle", "css", "duplicate", "duplicateRef", "measurerRef", "onMarqueeComplete", "orientation", "rootStyle", "rtl"];
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(
|
|
18
|
-
function _defineProperty(
|
|
19
|
-
function _toPropertyKey(
|
|
20
|
-
function _toPrimitive(t,
|
|
21
|
-
function _objectWithoutProperties(
|
|
18
|
+
function _objectSpread(r) { for (var t = 1; t < arguments.length; t++) { var o = null != arguments[t] ? arguments[t] : {}; t % 2 ? ownKeys(Object(o), !0).forEach(function (t) { _defineProperty(r, t, o[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : ownKeys(Object(o)).forEach(function (e) { Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e)); }); } return r; }
|
|
19
|
+
function _defineProperty(r, t, o) { return (t = _toPropertyKey(t)) in r ? Object.defineProperty(r, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = o, r; }
|
|
20
|
+
function _toPropertyKey(r) { var o = _toPrimitive(r, "string"); return "symbol" == typeof o ? o : o + ""; }
|
|
21
|
+
function _toPrimitive(t, e) { if ("object" != typeof t || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
22
|
+
function _objectWithoutProperties(t, r) { if (null == t) return {}; var o, n, i = _objectWithoutPropertiesLoose(t, r); if (Object.getOwnPropertySymbols) { var l = Object.getOwnPropertySymbols(t); for (n = 0; n < l.length; n++) o = l[n], -1 === r.indexOf(o) && {}.propertyIsEnumerable.call(t, o) && (i[o] = t[o]); } return i; }
|
|
22
23
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
23
24
|
var isEventSource = function isEventSource(ev) {
|
|
24
25
|
return ev.target === ev.currentTarget;
|
|
@@ -81,6 +82,13 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
81
82
|
* @public
|
|
82
83
|
*/
|
|
83
84
|
clientRef: _propTypes["default"].ref,
|
|
85
|
+
/**
|
|
86
|
+
* Visible height, in pixels, when `orientation` is `'vertical'`.
|
|
87
|
+
*
|
|
88
|
+
* @type {Number}
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
clipHeight: _propTypes2["default"].number,
|
|
84
92
|
/**
|
|
85
93
|
* Customizes the component by mapping the supplied collection of CSS class names to the
|
|
86
94
|
* corresponding internal elements and states of this component.
|
|
@@ -89,8 +97,10 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
89
97
|
*
|
|
90
98
|
* * `marquee` - The root component class
|
|
91
99
|
* * `animate` - Applied to the inner content node when the text is animating
|
|
100
|
+
* * `content` - The content node of a vertical marquee
|
|
92
101
|
* * `spacing` - The spacing node used between the repeated content
|
|
93
102
|
* * `text` - The inner content node
|
|
103
|
+
* * `vertical` - The root modifier for a vertical marquee
|
|
94
104
|
* * `willAnimate` - Applied to the inner content node shortly before animation
|
|
95
105
|
*
|
|
96
106
|
* @type {Object}
|
|
@@ -106,6 +116,28 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
106
116
|
* @public
|
|
107
117
|
*/
|
|
108
118
|
distance: _propTypes2["default"].number,
|
|
119
|
+
/**
|
|
120
|
+
* Called with the duplicate content node used by a vertical marquee.
|
|
121
|
+
*
|
|
122
|
+
* @type {Object|Function}
|
|
123
|
+
* @private
|
|
124
|
+
*/
|
|
125
|
+
duplicateRef: _propTypes["default"].ref,
|
|
126
|
+
/**
|
|
127
|
+
* Number of text lines that stay visible when `orientation` is `'vertical'`.
|
|
128
|
+
*
|
|
129
|
+
* @type {Number}
|
|
130
|
+
* @default 3
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
maxLines: _propTypes2["default"].number,
|
|
134
|
+
/**
|
|
135
|
+
* Called with the hidden measurer used by a vertical marquee.
|
|
136
|
+
*
|
|
137
|
+
* @type {Object|Function}
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
140
|
+
measurerRef: _propTypes["default"].ref,
|
|
109
141
|
/**
|
|
110
142
|
* Called when the marquee completes its animation
|
|
111
143
|
*
|
|
@@ -113,6 +145,14 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
113
145
|
* @public
|
|
114
146
|
*/
|
|
115
147
|
onMarqueeComplete: _propTypes2["default"].func,
|
|
148
|
+
/**
|
|
149
|
+
* Direction the marquee scrolls.
|
|
150
|
+
*
|
|
151
|
+
* @type {('horizontal'|'vertical')}
|
|
152
|
+
* @default 'horizontal'
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
orientation: _propTypes2["default"].oneOf(['horizontal', 'vertical']),
|
|
116
156
|
/**
|
|
117
157
|
* Text overflow setting. Either `'clip'` or `'ellipsis'`
|
|
118
158
|
*
|
|
@@ -156,6 +196,8 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
156
196
|
willAnimate: _propTypes2["default"].bool
|
|
157
197
|
},
|
|
158
198
|
defaultProps: {
|
|
199
|
+
maxLines: 3,
|
|
200
|
+
orientation: 'horizontal',
|
|
159
201
|
spacing: 0,
|
|
160
202
|
rtl: false,
|
|
161
203
|
willAnimate: false
|
|
@@ -188,7 +230,9 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
188
230
|
root: root
|
|
189
231
|
}).observe(node);
|
|
190
232
|
},
|
|
191
|
-
onMarqueeComplete: (0, _handle.handle)((0, _handle.forProp)('animating', true), isEventSource,
|
|
233
|
+
onMarqueeComplete: (0, _handle.handle)((0, _handle.forProp)('animating', true), isEventSource, function (ev, props) {
|
|
234
|
+
return !(props.orientation === 'vertical' && ev.propertyName && ev.propertyName !== 'transform');
|
|
235
|
+
}, _handle.stop, (0, _handle.forwardCustom)('onMarqueeComplete'))
|
|
192
236
|
},
|
|
193
237
|
computed: {
|
|
194
238
|
'aria-label': function ariaLabel(_ref2) {
|
|
@@ -218,10 +262,23 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
218
262
|
var alignment = _ref4.alignment,
|
|
219
263
|
animating = _ref4.animating,
|
|
220
264
|
distance = _ref4.distance,
|
|
265
|
+
orientation = _ref4.orientation,
|
|
221
266
|
overflow = _ref4.overflow,
|
|
222
267
|
rtl = _ref4.rtl,
|
|
223
268
|
spacing = _ref4.spacing,
|
|
224
269
|
speed = _ref4.speed;
|
|
270
|
+
if (orientation === 'vertical') {
|
|
271
|
+
var verticalStyle = {};
|
|
272
|
+
if (animating && distance > 0 && speed > 0) {
|
|
273
|
+
verticalStyle.transform = "translateY(".concat(-distance, "px)");
|
|
274
|
+
verticalStyle.transitionDuration = "".concat(distance / speed, "s");
|
|
275
|
+
} else {
|
|
276
|
+
verticalStyle.transform = 'translateY(0)';
|
|
277
|
+
verticalStyle.transitionDuration = '0s';
|
|
278
|
+
}
|
|
279
|
+
return verticalStyle;
|
|
280
|
+
}
|
|
281
|
+
|
|
225
282
|
// If the components content directionality doesn't match the context, we need to set it
|
|
226
283
|
// inline
|
|
227
284
|
var direction = rtl ? 'rtl' : 'ltr';
|
|
@@ -241,31 +298,87 @@ var MarqueeBase = exports.MarqueeBase = (0, _kind["default"])({
|
|
|
241
298
|
}
|
|
242
299
|
return style;
|
|
243
300
|
},
|
|
244
|
-
|
|
245
|
-
var
|
|
246
|
-
|
|
301
|
+
rootStyle: function rootStyle(_ref5) {
|
|
302
|
+
var clipHeight = _ref5.clipHeight,
|
|
303
|
+
maxLines = _ref5.maxLines,
|
|
304
|
+
orientation = _ref5.orientation,
|
|
305
|
+
spacing = _ref5.spacing;
|
|
306
|
+
if (orientation !== 'vertical') return null;
|
|
307
|
+
var style = {
|
|
308
|
+
'--vertical-marquee-lines': maxLines,
|
|
309
|
+
'--vertical-marquee-spacing': spacing || 0
|
|
310
|
+
};
|
|
311
|
+
if (clipHeight > 0) {
|
|
312
|
+
style.maxHeight = "".concat(clipHeight, "px");
|
|
313
|
+
}
|
|
314
|
+
return style;
|
|
315
|
+
},
|
|
316
|
+
duplicate: function duplicate(_ref6) {
|
|
317
|
+
var distance = _ref6.distance,
|
|
318
|
+
willAnimate = _ref6.willAnimate;
|
|
247
319
|
return willAnimate && distance > 0;
|
|
248
320
|
}
|
|
249
321
|
},
|
|
250
|
-
render: function render(
|
|
251
|
-
var applyOffset =
|
|
252
|
-
children =
|
|
253
|
-
clientClassName =
|
|
254
|
-
clientRef =
|
|
255
|
-
clientStyle =
|
|
256
|
-
css =
|
|
257
|
-
duplicate =
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
322
|
+
render: function render(_ref7) {
|
|
323
|
+
var applyOffset = _ref7.applyOffset,
|
|
324
|
+
children = _ref7.children,
|
|
325
|
+
clientClassName = _ref7.clientClassName,
|
|
326
|
+
clientRef = _ref7.clientRef,
|
|
327
|
+
clientStyle = _ref7.clientStyle,
|
|
328
|
+
css = _ref7.css,
|
|
329
|
+
duplicate = _ref7.duplicate,
|
|
330
|
+
duplicateRef = _ref7.duplicateRef,
|
|
331
|
+
measurerRef = _ref7.measurerRef,
|
|
332
|
+
onMarqueeComplete = _ref7.onMarqueeComplete,
|
|
333
|
+
orientation = _ref7.orientation,
|
|
334
|
+
rootStyle = _ref7.rootStyle,
|
|
335
|
+
rtl = _ref7.rtl,
|
|
336
|
+
rest = _objectWithoutProperties(_ref7, _excluded);
|
|
261
337
|
delete rest.alignment;
|
|
262
338
|
delete rest.animating;
|
|
339
|
+
delete rest.clipHeight;
|
|
263
340
|
delete rest.distance;
|
|
341
|
+
delete rest.maxLines;
|
|
264
342
|
delete rest.onMarqueeComplete;
|
|
265
343
|
delete rest.overflow;
|
|
266
344
|
delete rest.spacing;
|
|
267
345
|
delete rest.speed;
|
|
268
346
|
delete rest.willAnimate;
|
|
347
|
+
if (orientation === 'vertical') {
|
|
348
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({}, rest), {}, {
|
|
349
|
+
className: (0, _classnames["default"])(rest.className, css.vertical),
|
|
350
|
+
"data-vertical-marquee": true,
|
|
351
|
+
style: rootStyle,
|
|
352
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
353
|
+
className: clientClassName,
|
|
354
|
+
"data-vertical-marquee-track": true,
|
|
355
|
+
onTransitionEnd: onMarqueeComplete,
|
|
356
|
+
style: clientStyle,
|
|
357
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
358
|
+
className: css.content,
|
|
359
|
+
"data-vertical-marquee-content": true,
|
|
360
|
+
ref: clientRef,
|
|
361
|
+
children: children
|
|
362
|
+
}), duplicate ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
363
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
364
|
+
className: css.spacing
|
|
365
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
366
|
+
"aria-hidden": true,
|
|
367
|
+
className: css.content,
|
|
368
|
+
"data-vertical-marquee-content": true,
|
|
369
|
+
inert: true,
|
|
370
|
+
ref: duplicateRef
|
|
371
|
+
})]
|
|
372
|
+
}) : null]
|
|
373
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
374
|
+
"aria-hidden": true,
|
|
375
|
+
className: css.measurer,
|
|
376
|
+
"data-vertical-marquee-measurer": true,
|
|
377
|
+
inert: true,
|
|
378
|
+
ref: measurerRef
|
|
379
|
+
})]
|
|
380
|
+
}));
|
|
381
|
+
}
|
|
269
382
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, rest), {}, {
|
|
270
383
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
271
384
|
className: clientClassName,
|
|
@@ -16,10 +16,10 @@ var _useMarqueeController2 = require("./useMarqueeController");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
-
function _objectSpread(
|
|
20
|
-
function _defineProperty(
|
|
21
|
-
function _toPropertyKey(
|
|
22
|
-
function _toPrimitive(t,
|
|
19
|
+
function _objectSpread(r) { for (var t = 1; t < arguments.length; t++) { var o = null != arguments[t] ? arguments[t] : {}; t % 2 ? ownKeys(Object(o), !0).forEach(function (t) { _defineProperty(r, t, o[t]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : ownKeys(Object(o)).forEach(function (e) { Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e)); }); } return r; }
|
|
20
|
+
function _defineProperty(r, t, o) { return (t = _toPropertyKey(t)) in r ? Object.defineProperty(r, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = o, r; }
|
|
21
|
+
function _toPropertyKey(r) { var o = _toPrimitive(r, "string"); return "symbol" == typeof o ? o : o + ""; }
|
|
22
|
+
function _toPrimitive(t, e) { if ("object" != typeof t || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
23
23
|
* Default configuration parameters for {@link ui/Marquee.MarqueeController}.
|
|
24
24
|
*
|
|
25
25
|
* @type {Object}
|