@nativescript-community/ui-label 1.2.15 → 1.2.18

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.18](https://github.com/nativescript-community/ui-label/compare/v1.2.17...v1.2.18) (2023-01-17)
7
+
8
+ **Note:** Version bump only for package @nativescript-community/ui-label
9
+
10
+ ## [1.2.17](https://github.com/nativescript-community/ui-label/compare/v1.2.16...v1.2.17) (2023-01-12)
11
+
12
+ **Note:** Version bump only for package @nativescript-community/ui-label
13
+
14
+ ## [1.2.16](https://github.com/nativescript-community/ui-label/compare/v1.2.15...v1.2.16) (2022-12-01)
15
+
16
+ **Note:** Version bump only for package @nativescript-community/ui-label
17
+
6
18
  ## [1.2.15](https://github.com/nativescript-community/ui-label/compare/v1.2.14...v1.2.15) (2022-11-21)
7
19
 
8
20
  **Note:** Version bump only for package @nativescript-community/ui-label
@@ -282,7 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
282
294
 
283
295
  ## [1.0.41](https://github.com/nativescript-community/ui-label/compare/v1.0.40...v1.0.41) (2020-07-26)
284
296
 
285
- **Note:** Version bump only for package nativescript-htmllabel
297
+ **Note:** Version bump only for package @nativescript-community/ui-label
286
298
 
287
299
  ## [1.0.40](https://github.com/nativescript-community/ui-label/compare/v1.0.39...v1.0.40) (2020-07-26)
288
300
 
@@ -310,7 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
310
322
 
311
323
  ## [1.0.36](https://github.com/nativescript-community/ui-label/compare/v1.0.35...v1.0.36) (2020-05-21)
312
324
 
313
- **Note:** Version bump only for package nativescript-htmllabel
325
+ **Note:** Version bump only for package @nativescript-community/ui-label
314
326
 
315
327
  ## [1.0.35](https://github.com/nativescript-community/ui-label/compare/v1.0.34...v1.0.35) (2020-05-21)
316
328
 
@@ -320,11 +332,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
320
332
 
321
333
  ## [1.0.34](https://github.com/nativescript-community/ui-label/compare/v1.0.33...v1.0.34) (2020-05-21)
322
334
 
323
- **Note:** Version bump only for package nativescript-htmllabel
335
+ **Note:** Version bump only for package @nativescript-community/ui-label
324
336
 
325
337
  ## [1.0.33](https://github.com/nativescript-community/ui-label/compare/v1.0.32...v1.0.33) (2020-05-21)
326
338
 
327
- **Note:** Version bump only for package nativescript-htmllabel
339
+ **Note:** Version bump only for package @nativescript-community/ui-label
328
340
 
329
341
  ## [1.0.32](https://github.com/nativescript-community/ui-label/compare/v1.0.31...v1.0.32) (2020-05-10)
330
342
 
@@ -352,7 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
352
364
 
353
365
  ## [1.0.28](https://github.com/nativescript-community/ui-label/compare/v1.0.27...v1.0.28) (2020-04-29)
354
366
 
355
- **Note:** Version bump only for package nativescript-htmllabel
367
+ **Note:** Version bump only for package @nativescript-community/ui-label
356
368
 
357
369
  ## [1.0.27](https://github.com/nativescript-community/ui-label/compare/v1.0.26...v1.0.27) (2020-03-30)
358
370
 
@@ -368,19 +380,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
368
380
 
369
381
  ## [1.0.25](https://github.com/nativescript-community/ui-label/compare/v1.0.24...v1.0.25) (2020-03-04)
370
382
 
371
- **Note:** Version bump only for package nativescript-htmllabel
383
+ **Note:** Version bump only for package @nativescript-community/ui-label
372
384
 
373
385
  ## [1.0.24](https://github.com/nativescript-community/ui-label/compare/v1.0.23...v1.0.24) (2020-03-04)
374
386
 
375
- **Note:** Version bump only for package nativescript-htmllabel
387
+ **Note:** Version bump only for package @nativescript-community/ui-label
376
388
 
377
389
  ## [1.0.23](https://github.com/nativescript-community/ui-label/compare/v1.0.22...v1.0.23) (2020-03-02)
378
390
 
379
- **Note:** Version bump only for package nativescript-htmllabel
391
+ **Note:** Version bump only for package @nativescript-community/ui-label
380
392
 
381
393
  ## [1.0.22](https://github.com/nativescript-community/ui-label/compare/v1.0.21...v1.0.22) (2020-02-27)
382
394
 
383
- **Note:** Version bump only for package nativescript-htmllabel
395
+ **Note:** Version bump only for package @nativescript-community/ui-label
384
396
 
385
397
  ## [1.0.21](https://github.com/nativescript-community/ui-label/compare/v1.0.20...v1.0.21) (2020-02-26)
386
398
 
@@ -390,11 +402,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
390
402
 
391
403
  ## [1.0.20](https://github.com/nativescript-community/ui-label/compare/v1.0.19...v1.0.20) (2020-02-17)
392
404
 
393
- **Note:** Version bump only for package nativescript-htmllabel
405
+ **Note:** Version bump only for package @nativescript-community/ui-label
394
406
 
395
407
  ## [1.0.19](https://github.com/nativescript-community/ui-label/compare/v1.0.18...v1.0.19) (2020-02-17)
396
408
 
397
- **Note:** Version bump only for package nativescript-htmllabel
409
+ **Note:** Version bump only for package @nativescript-community/ui-label
398
410
 
399
411
  ## [1.0.18](https://github.com/nativescript-community/ui-label/compare/v1.0.17...v1.0.18) (2020-02-14)
400
412
 
@@ -416,35 +428,35 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
416
428
 
417
429
  ## [1.0.15](https://github.com/nativescript-community/ui-label/compare/v1.0.14...v1.0.15) (2020-02-07)
418
430
 
419
- **Note:** Version bump only for package nativescript-htmllabel
431
+ **Note:** Version bump only for package @nativescript-community/ui-label
420
432
 
421
433
  ## [1.0.14](https://github.com/nativescript-community/ui-label/compare/v1.0.13...v1.0.14) (2019-10-18)
422
434
 
423
- **Note:** Version bump only for package nativescript-htmllabel
435
+ **Note:** Version bump only for package @nativescript-community/ui-label
424
436
 
425
437
  ## [1.0.13](https://github.com/nativescript-community/ui-label/compare/v1.0.12...v1.0.13) (2019-10-16)
426
438
 
427
- **Note:** Version bump only for package nativescript-htmllabel
439
+ **Note:** Version bump only for package @nativescript-community/ui-label
428
440
 
429
441
  ## [1.0.12](https://github.com/nativescript-community/ui-label/compare/v1.0.11...v1.0.12) (2019-10-16)
430
442
 
431
- **Note:** Version bump only for package nativescript-htmllabel
443
+ **Note:** Version bump only for package @nativescript-community/ui-label
432
444
 
433
445
  ## [1.0.11](https://github.com/nativescript-community/ui-label/compare/v1.0.10...v1.0.11) (2019-08-22)
434
446
 
435
- **Note:** Version bump only for package nativescript-htmllabel
447
+ **Note:** Version bump only for package @nativescript-community/ui-label
436
448
 
437
449
  ## [1.0.10](https://github.com/nativescript-community/ui-label/compare/v1.0.9...v1.0.10) (2019-08-02)
438
450
 
439
- **Note:** Version bump only for package nativescript-htmllabel
451
+ **Note:** Version bump only for package @nativescript-community/ui-label
440
452
 
441
453
  ## [1.0.9](https://github.com/nativescript-community/ui-label/compare/v1.0.8...v1.0.9) (2019-07-29)
442
454
 
443
- **Note:** Version bump only for package nativescript-htmllabel
455
+ **Note:** Version bump only for package @nativescript-community/ui-label
444
456
 
445
457
  ## [1.0.8](https://github.com/nativescript-community/ui-label/compare/v1.0.7...v1.0.8) (2019-07-12)
446
458
 
447
- **Note:** Version bump only for package nativescript-htmllabel
459
+ **Note:** Version bump only for package @nativescript-community/ui-label
448
460
 
449
461
  ## 1.0.7 (2019-07-12)
450
462
 
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # NativeScript Label widget
2
2
 
3
- [![npm downloads](https://img.shields.io/npm/dm/nativescript-htmllabel.svg)](https://www.npmjs.com/package/nativescript-htmllabel)
4
- [![npm downloads](https://img.shields.io/npm/dt/nativescript-htmllabel.svg)](https://www.npmjs.com/package/nativescript-htmllabel)
5
- [![npm](https://img.shields.io/npm/v/nativescript-htmllabel.svg)](https://www.npmjs.com/package/nativescript-htmllabel)
3
+ [![npm downloads](https://img.shields.io/npm/dm/@nativescript-community/ui-label.svg)](https://www.npmjs.com/package/@nativescript-community/ui-label)
4
+ [![npm downloads](https://img.shields.io/npm/dt/@nativescript-community/ui-label.svg)](https://www.npmjs.com/package/@nativescript-community/ui-label)
5
+ [![npm](https://img.shields.io/npm/v/@nativescript-community/ui-label.svg)](https://www.npmjs.com/package/@nativescript-community/ui-label)
6
6
 
7
7
  A NativeScript Label widget. It is a direct replacement for the {N} Label widget.
8
8
 
@@ -12,7 +12,7 @@ Run the following command from the root of your project:
12
12
 
13
13
  `tns plugin add @nativescript-community/ui-label`
14
14
 
15
- This command automatically installs the necessary files, as well as stores nativescript-htmllabel as a dependency in your project's package.json file.
15
+ This command automatically installs the necessary files, as well as stores nativescript-community/ui-label as a dependency in your project's package.json file.
16
16
 
17
17
  ## Configuration
18
18
 
package/label-common.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { cssProperty, init } from '@nativescript-community/text';
2
2
  import { CSSType, Color, CssProperty, Property, Style, Label as TNLabel, booleanConverter, fontInternalProperty } from '@nativescript/core';
3
- import { layout } from '@nativescript/core/utils/utils';
3
+ import { Utils } from '@nativescript/core';
4
4
  // declare module '@nativescript/core/ui/text-base/formatted-string' {
5
5
  // interface FormattedString {
6
6
  // addPropertyChangeHandler(span: Span);
@@ -141,7 +141,7 @@ export const maxFontSizeProperty = new CssProperty({
141
141
  maxFontSizeProperty.register(Style);
142
142
  function parseDIPs(value) {
143
143
  if (value.indexOf('px') !== -1) {
144
- return layout.toDeviceIndependentPixels(parseFloat(value.replace('px', '').trim()));
144
+ return Utils.layout.toDeviceIndependentPixels(parseFloat(value.replace('px', '').trim()));
145
145
  }
146
146
  else {
147
147
  return parseFloat(value.replace('dip', '').trim());
@@ -2,7 +2,7 @@ import { VerticalTextAlignment } from '@nativescript-community/text';
2
2
  import { CoreTypes, FormattedString, Property, PropertyChangeData, View } from '@nativescript/core';
3
3
  import { Color } from '@nativescript/core/color';
4
4
  import { CSSShadow } from '@nativescript/core/ui/styling/css-shadow';
5
- import { FontStyle, FontWeight } from '@nativescript/core/ui/styling/font';
5
+ import { FontStyleType, FontWeightType } from '@nativescript/core/ui/styling/font';
6
6
  import { Label as LabelViewDefinition, LineBreak } from './label';
7
7
  export { createNativeAttributedString, enableIOSDTCoreText } from '@nativescript-community/text';
8
8
  export * from './label-common';
@@ -32,8 +32,8 @@ declare abstract class LabelBase extends View implements LabelViewDefinition {
32
32
  _setTappableState(value: boolean): void;
33
33
  fontFamily: string;
34
34
  fontSize: number;
35
- fontStyle: FontStyle;
36
- fontWeight: FontWeight;
35
+ fontStyle: FontStyleType;
36
+ fontWeight: FontWeightType;
37
37
  letterSpacing: number;
38
38
  lineHeight: number;
39
39
  lineBreak: LineBreak;
package/label.android.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { LightFormattedString, createNativeAttributedString, cssProperty, overrideSpanAndFormattedStringEnabled, verticalTextAlignmentProperty } from '@nativescript-community/text';
2
- import { CSSType, Device, FormattedString, Observable, Property, Span, View, booleanConverter, profile } from '@nativescript/core';
2
+ import { CSSType, Device, FormattedString, Observable, Property, Span, Utils, View, booleanConverter, profile } from '@nativescript/core';
3
3
  import { Color } from '@nativescript/core/color';
4
4
  import { Font } from '@nativescript/core/ui/styling/font';
5
5
  import { Length, colorProperty, fontInternalProperty, fontSizeProperty, paddingBottomProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty } from '@nativescript/core/ui/styling/style-properties';
6
6
  import { letterSpacingProperty, lineHeightProperty, textAlignmentProperty, textDecorationProperty, textTransformProperty, whiteSpaceProperty } from '@nativescript/core/ui/text-base';
7
7
  import { maxLinesProperty } from '@nativescript/core/ui/text-base/text-base-common';
8
8
  import lazy from '@nativescript/core/utils/lazy';
9
- import { layout } from '@nativescript/core/utils/utils';
10
9
  import { autoFontSizeProperty, lineBreakProperty, selectableProperty, textShadowProperty } from './label-common';
11
10
  export { createNativeAttributedString, enableIOSDTCoreText } from '@nativescript-community/text';
12
11
  export * from './label-common';
@@ -391,11 +390,11 @@ export class Label extends LabelBase {
391
390
  }
392
391
  [lineHeightProperty.setNative](value) {
393
392
  if (sdkVersion() >= 28) {
394
- this.nativeTextViewProtected.setLineHeight(value * layout.getDisplayDensity());
393
+ this.nativeTextViewProtected.setLineHeight(value * Utils.layout.getDisplayDensity());
395
394
  }
396
395
  else {
397
396
  const fontHeight = this.nativeTextViewProtected.getPaint().getFontMetricsInt(null);
398
- this.nativeTextViewProtected.setLineSpacing(value * layout.getDisplayDensity() - fontHeight, 1);
397
+ this.nativeTextViewProtected.setLineSpacing(value * Utils.layout.getDisplayDensity() - fontHeight, 1);
399
398
  }
400
399
  }
401
400
  [fontInternalProperty.setNative](value) {
@@ -403,7 +402,7 @@ export class Label extends LabelBase {
403
402
  this.nativeTextViewProtected.setTypeface(androidFont);
404
403
  if (this.lineHeight && sdkVersion() < 28) {
405
404
  const fontHeight = this.nativeTextViewProtected.getPaint().getFontMetricsInt(null);
406
- this.nativeTextViewProtected.setLineSpacing(this.lineHeight * layout.getDisplayDensity() - fontHeight, 1);
405
+ this.nativeTextViewProtected.setLineSpacing(this.lineHeight * Utils.layout.getDisplayDensity() - fontHeight, 1);
407
406
  }
408
407
  }
409
408
  [textDecorationProperty.setNative](value) {
package/label.ios.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var _a, _b, _c, _d;
2
2
  import { createNativeAttributedString, verticalTextAlignmentProperty } from '@nativescript-community/text';
3
- import { Color, Font, Span, View } from '@nativescript/core';
3
+ import { Color, Font, Span, Utils, View } from '@nativescript/core';
4
4
  import { borderBottomWidthProperty, borderLeftWidthProperty, borderRightWidthProperty, borderTopWidthProperty, fontInternalProperty, paddingBottomProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty } from '@nativescript/core/ui/styling/style-properties';
5
5
  import { formattedTextProperty, letterSpacingProperty, lineHeightProperty, whiteSpaceProperty } from '@nativescript/core/ui/text-base';
6
6
  import { maxLinesProperty } from '@nativescript/core/ui/text-base/text-base-common';
7
+ import { iOSNativeHelper } from '@nativescript/core/utils';
7
8
  import { isNullOrUndefined, isString } from '@nativescript/core/utils/types';
8
- import { iOSNativeHelper, layout } from '@nativescript/core/utils/utils';
9
9
  import { LabelBase, autoFontSizeProperty, htmlProperty, lineBreakProperty, linkColorProperty, linkUnderlineProperty, needFormattedStringComputation, selectableProperty, textShadowProperty } from './label-common';
10
10
  export { createNativeAttributedString, enableIOSDTCoreText } from '@nativescript-community/text';
11
11
  export * from './label-common';
@@ -177,15 +177,14 @@ export class Label extends LabelBase {
177
177
  return result.height;
178
178
  }
179
179
  updateTextContainerInset(applyVerticalTextAlignment = true) {
180
- var _e, _f;
181
180
  const tv = this.nativeTextViewProtected;
182
- const top = layout.toDeviceIndependentPixels(this.effectivePaddingTop + this.effectiveBorderTopWidth);
183
- const right = layout.toDeviceIndependentPixels(this.effectivePaddingRight + this.effectiveBorderRightWidth);
184
- const bottom = layout.toDeviceIndependentPixels(this.effectivePaddingBottom + this.effectiveBorderBottomWidth);
185
- const left = layout.toDeviceIndependentPixels(this.effectivePaddingLeft + this.effectiveBorderLeftWidth);
181
+ const top = Utils.layout.toDeviceIndependentPixels(this.effectivePaddingTop + this.effectiveBorderTopWidth);
182
+ const right = Utils.layout.toDeviceIndependentPixels(this.effectivePaddingRight + this.effectiveBorderRightWidth);
183
+ const bottom = Utils.layout.toDeviceIndependentPixels(this.effectivePaddingBottom + this.effectiveBorderBottomWidth);
184
+ const left = Utils.layout.toDeviceIndependentPixels(this.effectivePaddingLeft + this.effectiveBorderLeftWidth);
186
185
  if (!applyVerticalTextAlignment ||
187
186
  !this.verticalTextAlignment ||
188
- (((_e = tv.text) === null || _e === void 0 ? void 0 : _e.length) === 0 && ((_f = tv.attributedText) === null || _f === void 0 ? void 0 : _f.length) === 0)) {
187
+ (tv.text?.length === 0 && tv.attributedText?.length === 0)) {
189
188
  tv.textContainerInset = {
190
189
  top,
191
190
  left,
@@ -244,28 +243,28 @@ export class Label extends LabelBase {
244
243
  onMeasure(widthMeasureSpec, heightMeasureSpec) {
245
244
  const nativeView = this.nativeTextViewProtected;
246
245
  if (nativeView) {
247
- const width = layout.getMeasureSpecSize(widthMeasureSpec);
248
- const widthMode = layout.getMeasureSpecMode(widthMeasureSpec);
249
- const height = layout.getMeasureSpecSize(heightMeasureSpec);
250
- const heightMode = layout.getMeasureSpecMode(heightMeasureSpec);
246
+ const width = Utils.layout.getMeasureSpecSize(widthMeasureSpec);
247
+ const widthMode = Utils.layout.getMeasureSpecMode(widthMeasureSpec);
248
+ const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
249
+ const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
251
250
  let resetFont;
252
251
  if (this.autoFontSize) {
253
- const finiteWidth = widthMode === layout.EXACTLY;
254
- const finiteHeight = heightMode === layout.EXACTLY;
252
+ const finiteWidth = widthMode === Utils.layout.EXACTLY;
253
+ const finiteHeight = heightMode === Utils.layout.EXACTLY;
255
254
  if (!finiteWidth || !finiteHeight) {
256
255
  resetFont = this.updateAutoFontSize({
257
256
  textView: nativeView,
258
- width: layout.toDeviceIndependentPixels(width),
259
- height: layout.toDeviceIndependentPixels(height),
257
+ width: Utils.layout.toDeviceIndependentPixels(width),
258
+ height: Utils.layout.toDeviceIndependentPixels(height),
260
259
  onlyMeasure: true
261
260
  });
262
261
  }
263
262
  }
264
- const desiredSize = layout.measureNativeView(nativeView, width, widthMode, height, heightMode);
263
+ const desiredSize = Utils.layout.measureNativeView(nativeView, width, widthMode, height, heightMode);
265
264
  if (!this.formattedText && !this.html && resetFont) {
266
265
  nativeView.font = resetFont;
267
266
  }
268
- const labelWidth = widthMode === layout.AT_MOST ? Math.min(desiredSize.width, width) : desiredSize.width;
267
+ const labelWidth = widthMode === Utils.layout.AT_MOST ? Math.min(desiredSize.width, width) : desiredSize.width;
269
268
  // const labelHeight = heightMode === layout.AT_MOST ? Math.min(desiredSize.height, height) : desiredSize.height;
270
269
  const measureWidth = Math.max(labelWidth, this.effectiveMinWidth);
271
270
  const measureHeight = Math.max(desiredSize.height, this.effectiveMinHeight);
@@ -288,6 +287,12 @@ export class Label extends LabelBase {
288
287
  }
289
288
  }
290
289
  textViewShouldInteractWithURLInRangeInteraction(textView, url, characterRange, interaction) {
290
+ if (!this.formattedText?.spans) {
291
+ if (url) {
292
+ this.notify({ eventName: Span.linkTapEvent, link: url?.toString() });
293
+ }
294
+ return false;
295
+ }
291
296
  for (let i = 0, spanStart = 0, length = this.formattedText.spans.length; i < length; i++) {
292
297
  const span = this.formattedText.spans.getItem(i);
293
298
  const text = span.text;
@@ -301,7 +306,7 @@ export class Label extends LabelBase {
301
306
  const span = this.formattedText.spans.getItem(i);
302
307
  if (span && span.tappable) {
303
308
  // if the span is found and tappable emit the linkTap event
304
- span.notify({ eventName: Span.linkTapEvent, link: url === null || url === void 0 ? void 0 : url.toString() });
309
+ span.notify({ eventName: Span.linkTapEvent, link: url?.toString() });
305
310
  }
306
311
  break;
307
312
  }
@@ -316,7 +321,7 @@ export class Label extends LabelBase {
316
321
  else {
317
322
  const font = this.nativeViewProtected.font;
318
323
  if (!fontSize) {
319
- fontSize = this.fontSize || (font === null || font === void 0 ? void 0 : font.pointSize) || 17;
324
+ fontSize = this.fontSize || font?.pointSize || 17;
320
325
  }
321
326
  const fontWeight = this.style.fontWeight;
322
327
  const familyName = this.style.fontFamily || (this.style.fontInternal && this.style.fontInternal.fontFamily) || undefined;
@@ -324,7 +329,7 @@ export class Label extends LabelBase {
324
329
  text: this.html,
325
330
  fontSize,
326
331
  familyName,
327
- fontWeight,
332
+ fontWeight: fontWeight,
328
333
  // color: this.color,
329
334
  letterSpacing: this.letterSpacing,
330
335
  lineHeight: this.lineHeight,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-label",
3
- "version": "1.2.15",
3
+ "version": "1.2.18",
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.9"
36
36
  },
37
- "gitHead": "98ae1f7d0175445bd4110458f2d52fac8d471271"
37
+ "gitHead": "ae294ad826343d7d82fae189b32a95f9ad14b4af"
38
38
  }
@@ -0,0 +1 @@
1
+ /// <reference path="./typings/DTCoreText.ios.d.ts" />
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,11 @@
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
+ }