UNPKG

@tralves/shadowed-label

Version:
9 lines 488 B
import { Utils } from '@nativescript/core'; import { ShadowedLabelCommon, textShadowProperty } from './common'; export class ShadowedLabel extends ShadowedLabelCommon { [textShadowProperty.setNative](value) { const toDevicePixels = Utils.layout.toDevicePixels; this.nativeViewProtected.setShadowLayer(toDevicePixels(value.blurRadius), toDevicePixels(value.offsetX), toDevicePixels(value.offsetY), value.color.android); } } //# sourceMappingURL=index.android.js.map