UNPKG

nativescript-shadowed-label

Version:
20 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var shadowed_label_common_1 = require("./shadowed-label.common"); var ShadowedLabel = (function (_super) { __extends(ShadowedLabel, _super); function ShadowedLabel() { return _super !== null && _super.apply(this, arguments) || this; } ShadowedLabel.prototype[shadowed_label_common_1.textShadowProperty.setNative] = function (value) { this.nativeTextViewProtected.layer.shadowOpacity = 1; this.nativeTextViewProtected.layer.shadowRadius = value.blurRadius; this.nativeTextViewProtected.layer.shadowColor = value.color.ios.CGColor; this.nativeTextViewProtected.layer.shadowOffset = CGSizeMake(value.offsetX, value.offsetY); this.nativeTextViewProtected.layer.shouldRasterize = true; this.nativeTextViewProtected.layer.masksToBounds = false; }; return ShadowedLabel; }(shadowed_label_common_1.ShadowedLabel)); exports.ShadowedLabel = ShadowedLabel; //# sourceMappingURL=shadowed-label.ios.js.map