|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
472 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.getZIndexFromUnknown = getZIndexFromUnknown;
|
|---|
| 7 | var _isWellBehavedNumber = require("../util/isWellBehavedNumber");
|
|---|
| 8 | function getZIndexFromUnknown(input, defaultZIndex) {
|
|---|
| 9 | if (input && typeof input === 'object' && 'zIndex' in input && typeof input.zIndex === 'number' && (0, _isWellBehavedNumber.isWellBehavedNumber)(input.zIndex)) {
|
|---|
| 10 | return input.zIndex;
|
|---|
| 11 | }
|
|---|
| 12 | return defaultZIndex;
|
|---|
| 13 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.