(value)
| 266 | */ |
| 267 | |
| 268 | export function isLinearGradientColor(value) { |
| 269 | return isObject(value) && |
| 270 | objectHasProperty(value, 'linearGradientStart') && |
| 271 | objectHasProperty(value, 'linearGradientEnd') && |
| 272 | objectHasProperty(value, 'linearGradientColorStops') && |
| 273 | isNumber(value.linearGradientStart) && |
| 274 | isNumber(value.linearGradientEnd) && |
| 275 | isArray(value.linearGradientColorStops) && |
| 276 | value.linearGradientColorStops.length === 2; |
| 277 | } |
| 278 | |
| 279 | export function getMarkerObject(obj) { |
| 280 | while (obj.parent !== null) { |
no test coverage detected