@tralves/shadowed-label
Version:
A NativeScript Label that supports text shadow.
9 lines • 488 B
JavaScript
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