@nativescript-community/ui-label 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-label",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "Alternative to the built-in NativeScript Label but with better performance and additional features such as HTML rendering and more.",
5
5
  "main": "./label",
6
6
  "sideEffects": false,
@@ -34,5 +34,5 @@
34
34
  "dependencies": {
35
35
  "@nativescript-community/text": "^1.5.45"
36
36
  },
37
- "gitHead": "9d46fcda157e980cd11b48ee9db5daf8d24d3d37"
37
+ "gitHead": "6de8016493b10e9fad780c66b6c9a04f74159f71"
38
38
  }
@@ -196,7 +196,7 @@ public class NSLabel extends TextView {
196
196
  @Override
197
197
  public void setTypeface(Typeface value) {
198
198
  super.setTypeface(value);
199
- if (Build.VERSION.SDK_INT < 28 && lineHeight >= 0) {
199
+ if (Build.VERSION.SDK_INT < 28 && lineHeight > 0) {
200
200
  float fontHeight = getPaint().getFontMetrics(null);
201
201
  setLineSpacing(lineHeight - fontHeight, 1.0f);
202
202
  }
package/references.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference path="./typings/DTCoreText.ios.d.ts" />
@@ -1,23 +0,0 @@
1
- declare var DTDefaultTextAlignment: string;
2
- declare var DTDefaultFontStyle: string;
3
- declare var DTIgnoreLinkStyleOption: string;
4
- declare var DTDefaultFontFamily: string;
5
- declare var DTUseiOS6Attributes: string;
6
- declare var DTDocumentPreserveTrailingSpaces: string;
7
- declare var DTDefaultLineBreakMode: string;
8
- declare var NSTextSizeMultiplierDocumentOption: string;
9
- declare var kCTLineBreakByWordWrapping: string;
10
- declare var kCTLeftTextAlignment: string;
11
- declare var NSAttributedStringEnumerationReverse: number;
12
-
13
-
14
- declare namespace DTCoreTextFontDescriptor {
15
- function asyncPreloadFontLookupTable()
16
- }
17
-
18
- declare interface NSAttributedString {
19
- initWithHTMLDataOptionsDocumentAttributes(data, options, attr);
20
- }
21
- declare interface NSMutableAttributedString {
22
- initWithHTMLDataOptionsDocumentAttributes(data, options, attr);
23
- }
@@ -1,11 +0,0 @@
1
- declare module com {
2
- export module lsjwzh {
3
- export module widget {
4
- export module text {
5
- export class FastTextView extends globalAndroid.view.View {
6
-
7
- }
8
- }
9
- }
10
- }
11
- }