mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
committed by
Nathan Walker
parent
527c70b465
commit
726ef9fd8f
@@ -1,5 +1,5 @@
|
||||
import { Color } from '../../color';
|
||||
import { Length } from './style-properties';
|
||||
import { Length, zeroLength } from './style-properties';
|
||||
|
||||
export interface CSSShadow {
|
||||
inset: boolean;
|
||||
@@ -49,8 +49,11 @@ export function parseCSSShadow(value: string): CSSShadow {
|
||||
.filter((n) => n !== 'inset')
|
||||
.filter((n) => n !== colorRaw)
|
||||
.map((val) => {
|
||||
console.log(val);
|
||||
return Length.parse(val);
|
||||
try {
|
||||
return Length.parse(val);
|
||||
} catch (err) {
|
||||
return zeroLength;
|
||||
}
|
||||
});
|
||||
const [offsetX, offsetY, blurRadius, spreadRadius] = nums;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user