@awayjs/scene 0.13.223 → 0.13.232

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.
Files changed (50) hide show
  1. package/bundle/awayjs-scene.umd.js +879 -417
  2. package/bundle/awayjs-scene.umd.js.map +1 -1
  3. package/bundle/awayjs-scene.umd.min.js.map +1 -1
  4. package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/lib/Settings.d.ts +3 -0
  7. package/dist/lib/Settings.d.ts.map +1 -1
  8. package/dist/lib/Settings.js +14 -0
  9. package/dist/lib/display/DisplayObjectContainer.d.ts +1 -0
  10. package/dist/lib/display/DisplayObjectContainer.d.ts.map +1 -1
  11. package/dist/lib/display/DisplayObjectContainer.js +4 -2
  12. package/dist/lib/display/TextField.d.ts +36 -5
  13. package/dist/lib/display/TextField.d.ts.map +1 -1
  14. package/dist/lib/display/TextField.js +227 -138
  15. package/dist/lib/image/SceneImage2D.d.ts.map +1 -1
  16. package/dist/lib/image/SceneImage2D.js +35 -8
  17. package/dist/lib/managers/MouseManager.d.ts +1 -1
  18. package/dist/lib/managers/MouseManager.d.ts.map +1 -1
  19. package/dist/lib/managers/MouseManager.js +9 -29
  20. package/dist/lib/text/FNTGenerator.d.ts +5 -4
  21. package/dist/lib/text/FNTGenerator.d.ts.map +1 -1
  22. package/dist/lib/text/FNTGenerator.js +15 -11
  23. package/dist/lib/text/FNTGeneratorCanvas.d.ts +23 -0
  24. package/dist/lib/text/FNTGeneratorCanvas.d.ts.map +1 -0
  25. package/dist/lib/text/FNTGeneratorCanvas.js +205 -0
  26. package/dist/lib/text/FNTGeneratrorBase.d.ts +8 -0
  27. package/dist/lib/text/FNTGeneratrorBase.d.ts.map +1 -0
  28. package/dist/lib/text/FNTGeneratrorBase.js +7 -0
  29. package/dist/lib/text/TesselatedFontChar.d.ts +6 -4
  30. package/dist/lib/text/TesselatedFontChar.d.ts.map +1 -1
  31. package/dist/lib/text/TesselatedFontChar.js +8 -3
  32. package/dist/lib/text/TesselatedFontTable.d.ts +19 -3
  33. package/dist/lib/text/TesselatedFontTable.d.ts.map +1 -1
  34. package/dist/lib/text/TesselatedFontTable.js +339 -225
  35. package/dist/lib/text/TextShape.d.ts +6 -3
  36. package/dist/lib/text/TextShape.d.ts.map +1 -1
  37. package/dist/lib/text/TextShape.js +27 -2
  38. package/index.ts +1 -1
  39. package/lib/Settings.ts +20 -1
  40. package/lib/display/DisplayObjectContainer.ts +4 -2
  41. package/lib/display/TextField.ts +317 -145
  42. package/lib/image/SceneImage2D.ts +84 -9
  43. package/lib/managers/MouseManager.ts +11 -30
  44. package/lib/text/FNTGenerator.ts +5 -7
  45. package/lib/text/FNTGeneratorCanvas.ts +288 -0
  46. package/lib/text/FNTGeneratrorBase.ts +11 -0
  47. package/lib/text/TesselatedFontChar.ts +8 -12
  48. package/lib/text/TesselatedFontTable.ts +438 -255
  49. package/lib/text/TextShape.ts +30 -3
  50. package/package.json +1 -1
@@ -17,6 +17,54 @@ import { TextShape } from '../text/TextShape';
17
17
  import { HTMLTextProcessor } from '../text/HTMLTextProcessor';
18
18
  import { TextFormatAlign } from '../text/TextFormatAlign';
19
19
  import { MouseEvent } from '../events/MouseEvent';
20
+ import { Settings } from '../Settings';
21
+ var WordStore = /** @class */ (function () {
22
+ function WordStore(size) {
23
+ if (size === void 0) { size = 40; }
24
+ this.index = -1;
25
+ this.store = Array.from({ length: size }, function (e) { return ({
26
+ x: Infinity, y: Infinity, start: 0, width: 0, len: 0
27
+ }); });
28
+ }
29
+ WordStore.prototype.put = function (start, x, y, width, len) {
30
+ this.index++;
31
+ var word = this.store[this.index] || (this.store[this.index] = {});
32
+ word.start = start;
33
+ word.x = x;
34
+ word.y = y;
35
+ word.width = width;
36
+ word.len = len;
37
+ return word;
38
+ };
39
+ Object.defineProperty(WordStore.prototype, "last", {
40
+ get: function () {
41
+ return this.store[this.index];
42
+ },
43
+ enumerable: true,
44
+ configurable: true
45
+ });
46
+ Object.defineProperty(WordStore.prototype, "length", {
47
+ get: function () {
48
+ return this.index + 1;
49
+ },
50
+ set: function (v) {
51
+ this.index = v - 1;
52
+ },
53
+ enumerable: true,
54
+ configurable: true
55
+ });
56
+ WordStore.prototype.get = function (index) {
57
+ return this.store[index];
58
+ };
59
+ WordStore.prototype.free = function () {
60
+ this.index = -1;
61
+ };
62
+ WordStore.prototype.dispose = function () {
63
+ this.store = null;
64
+ this.index = 0;
65
+ };
66
+ return WordStore;
67
+ }());
20
68
  var MNEMOS = [
21
69
  {
22
70
  test: /'/g,
@@ -124,7 +172,20 @@ var TextField = /** @class */ (function (_super) {
124
172
  _this._selectionBeginIndex = 0;
125
173
  _this._selectionEndIndex = 0;
126
174
  _this._biggestLine = 0;
175
+ /**
176
+ * Renderable text, used for computing a glyphs
177
+ * @private
178
+ */
127
179
  _this._iText = '';
180
+ /**
181
+ * Place where is diff is begun to end
182
+ * @private
183
+ */
184
+ _this._iTextDiffStart = 0;
185
+ /**
186
+ * Original text passed to field
187
+ * @private
188
+ */
128
189
  _this._text = '';
129
190
  _this._iTextWoLineBreaks = ''; // _iText without line breaks
130
191
  _this.inMaskMode = false;
@@ -137,16 +198,13 @@ var TextField = /** @class */ (function (_super) {
137
198
  _this._shapesDirty = false;
138
199
  _this._textShapesDirty = false;
139
200
  _this.chars_codes = [];
140
- _this.chars_codes_prev = [];
141
201
  _this.chars_width = [];
142
202
  _this.tf_per_char = [];
143
- _this.tf_per_char_prev = [];
144
- // we use that for text appending to save verts count before last word verts are added to textShape.
145
- // Then on text append we clear last word verts because the word may be wrapped to next line
146
- _this.last_word_vertices_count = 0;
147
- _this.words = []; // stores offset and length and width for each word
203
+ // stores offset and length and width for each word
204
+ _this.words = new WordStore(10);
148
205
  _this._textRuns_formats = []; // stores textFormat for each textrun
149
- _this._textRuns_words = []; // stores words-offset, word-count and width for each textrun
206
+ // stores words-offset, word-count and width for each textrun
207
+ _this._textRuns_words = [];
150
208
  _this._paragraph_textRuns_indices = []; // stores textFormat for each textrun
151
209
  _this._maxWidthLine = 0;
152
210
  _this._labelData = null;
@@ -567,12 +625,10 @@ var TextField = /** @class */ (function (_super) {
567
625
  this._graphics.endFill();
568
626
  };
569
627
  TextField.prototype.getTextShapeForIdentifierAndFormat = function (id, format) {
570
- if (this.textShapes.hasOwnProperty(id)) {
628
+ if (this.textShapes[id]) {
571
629
  return this.textShapes[id];
572
630
  }
573
- this.textShapes[id] = new TextShape();
574
- this.textShapes[id].format = format;
575
- return this.textShapes[id];
631
+ return (this.textShapes[id] = new TextShape(format, id));
576
632
  };
577
633
  Object.defineProperty(TextField.prototype, "autoSize", {
578
634
  get: function () {
@@ -941,14 +997,19 @@ var TextField = /** @class */ (function (_super) {
941
997
  return this._scrollV;
942
998
  },
943
999
  set: function (value) {
944
- if (Math.floor(value) == this._scrollV)
1000
+ var rounded = Math.round(value);
1001
+ if (rounded === this._scrollV)
945
1002
  return;
946
- this._scrollV = Math.floor(value);
1003
+ this._scrollV = rounded;
947
1004
  if (this._scrollV > this._maxScrollV)
948
1005
  this._scrollV = this._maxScrollV;
1006
+ if (this._scrollV <= 0) {
1007
+ this._scrollV = 0;
1008
+ }
949
1009
  if (!this.textChild) {
950
1010
  return;
951
1011
  }
1012
+ // unsafe
952
1013
  this.textChild.y = -this.lines_start_y[this._scrollV];
953
1014
  },
954
1015
  enumerable: true,
@@ -1024,12 +1085,6 @@ var TextField = /** @class */ (function (_super) {
1024
1085
  return;
1025
1086
  this._labelData = null;
1026
1087
  this._text = value;
1027
- /*
1028
- for (let i = 0; i < this._text.length; i++) {
1029
- const charCode = this._text.charCodeAt(i);
1030
- if (this._text)
1031
- console.log("charcodes", this._text[i], this._text.charCodeAt(i));
1032
- }*/
1033
1088
  if (value != '' && ((value.charCodeAt(value.length - 1) == 13) || (value.charCodeAt(value.length - 1) == 10))) {
1034
1089
  value = value.slice(0, value.length - 1);
1035
1090
  }
@@ -1386,6 +1441,7 @@ var TextField = /** @class */ (function (_super) {
1386
1441
  if (this._labelData) {
1387
1442
  this._labelData = null;
1388
1443
  }
1444
+ this._resetParagraph();
1389
1445
  this._clearTextShapes();
1390
1446
  this._textFormat = null;
1391
1447
  };
@@ -1409,20 +1465,10 @@ var TextField = /** @class */ (function (_super) {
1409
1465
  // a whitespace is considered as a word
1410
1466
  if (this._textDirty) {
1411
1467
  this._positionsDirty = true;
1412
- this.chars_codes_prev = Array.from(this.chars_codes);
1413
- this.tf_per_char_prev = Array.from(this.tf_per_char);
1414
- // we do not use last word since last word may changed.
1415
- // For example "Hello w" and "Hello world" both have 3 words but the last word actually changed
1416
- this._words_amount_prev = this.words.length;
1417
- this.chars_codes.length = 0;
1418
- this.chars_width.length = 0;
1468
+ this._lastWordsCount = this.words.length;
1419
1469
  this.char_positions_x.length = 0;
1420
1470
  this.char_positions_y.length = 0;
1421
- this.tf_per_char.length = 0;
1422
1471
  this.words.length = 0;
1423
- this._textRuns_words.length = 0;
1424
- this._textRuns_formats.length = 0;
1425
- this._paragraph_textRuns_indices.length = 0;
1426
1472
  this.lines_wordStartIndices.length = 0;
1427
1473
  this.lines_wordEndIndices.length = 0;
1428
1474
  this.lines_start_y.length = 0;
@@ -1439,10 +1485,7 @@ var TextField = /** @class */ (function (_super) {
1439
1485
  // todo: cleanup usage of _textFormats vs _textFormats
1440
1486
  if (!this._textFormat && this._textFormats.length > 0)
1441
1487
  this._textFormat = this._textFormats[0];
1442
- if (this._iText != '' && this._textFormat != null) {
1443
- //console.log("textlength", this.text.toString().length, this.text.toString());
1444
- this.buildParagraphs();
1445
- }
1488
+ this.buildParagraphs();
1446
1489
  //console.log("TextField buildParagraph", this.id, this._iText);
1447
1490
  //console.log("TextField buildParagraph", this.id, this._autoSize);
1448
1491
  //console.log("TextField buildParagraph", this.id, this._wordWrap);
@@ -1488,18 +1531,6 @@ var TextField = /** @class */ (function (_super) {
1488
1531
  // in this step, the text-shapes are cleared,
1489
1532
  // the data for new text-shapes is collected from the font-tables
1490
1533
  // and the new text-shapes are created and assigned to the graphics
1491
- if (this._textShapesDirty) {
1492
- // do nothing
1493
- }
1494
- else if (this.chars_codes_prev.length == 0) {
1495
- // do nothing
1496
- }
1497
- else if (this.chars_codes_prev.length > this.chars_codes.length) {
1498
- this._textShapesDirty = true;
1499
- }
1500
- else if (this.chars_codes_prev[0] !== this.chars_codes[0]) {
1501
- this._textShapesDirty = true;
1502
- }
1503
1534
  if (this._glyphsDirty) {
1504
1535
  //console.log("TextField buildGlyphs", this.id, this.words);
1505
1536
  if (this._labelData) {
@@ -1541,14 +1572,66 @@ var TextField = /** @class */ (function (_super) {
1541
1572
  }
1542
1573
  this.text = paste;
1543
1574
  };
1575
+ TextField.prototype._resetParagraph = function () {
1576
+ this._textShapesDirty = this._textShapesDirty || this.chars_codes.length > 0;
1577
+ this.tf_per_char.length = 0;
1578
+ this.chars_width.length = 0;
1579
+ this.chars_codes.length = 0;
1580
+ this._paragraph_textRuns_indices.length = 0;
1581
+ this._textRuns_formats.length = 0;
1582
+ this._textRuns_words.length = 0;
1583
+ };
1544
1584
  TextField.prototype.buildParagraphs = function () {
1545
- var thisText = this._iText.toString();
1546
- var f_len = this._textFormatsIdx.length;
1585
+ if (!this._textDirty) {
1586
+ return;
1587
+ }
1588
+ // clear paragraph data when clear
1589
+ if (this._iText === '' || !this._textFormat) {
1590
+ this._resetParagraph();
1591
+ return;
1592
+ }
1593
+ var paragraphIndex = 0;
1594
+ var formatIndex = 0;
1595
+ var wordIndex = 0;
1596
+ var charCodeIndex = 0;
1597
+ // track char mutations between new and older.
1598
+ var codeChanges = 0;
1547
1599
  var linewidth = 0;
1548
1600
  var c_start = 0;
1549
- this._paragraph_textRuns_indices[this._paragraph_textRuns_indices.length] = this._textRuns_formats.length;
1601
+ var thisText = this._iText;
1602
+ var formatsCount = this._textFormatsIdx.length;
1603
+ var paragraphIndices = this._paragraph_textRuns_indices;
1604
+ var textRunFormats = this._textRuns_formats;
1605
+ var textRunWords = this._textRuns_words;
1606
+ var charCodes = this.chars_codes;
1607
+ var charTextFormats = this.tf_per_char;
1608
+ var charWidths = this.chars_width;
1609
+ var pushParagraph = function (formatIndex) {
1610
+ paragraphIndices[paragraphIndex] = formatIndex;
1611
+ paragraphIndex++;
1612
+ };
1613
+ var pushFormat = function (format, updateParagraph) {
1614
+ if (updateParagraph === void 0) { updateParagraph = false; }
1615
+ updateParagraph && pushParagraph(formatIndex);
1616
+ textRunFormats[formatIndex++] = format;
1617
+ return format;
1618
+ };
1619
+ var pushRunEntry = function (word) {
1620
+ textRunWords[wordIndex++] = word;
1621
+ return word;
1622
+ };
1623
+ var pushCharData = function (code, tf, width) {
1624
+ codeChanges += +(code !== charCodes[charCodeIndex]);
1625
+ codeChanges += +(tf !== charTextFormats[charCodeIndex]);
1626
+ codeChanges += +(width !== charWidths[charCodeIndex]);
1627
+ charCodes[charCodeIndex] = code;
1628
+ charTextFormats[charCodeIndex] = tf;
1629
+ charWidths[charCodeIndex] = width;
1630
+ charCodeIndex++;
1631
+ };
1632
+ pushParagraph(formatIndex);
1550
1633
  // loop over all textFormats
1551
- for (var f = 0; f < f_len; f++) {
1634
+ for (var f = 0; f < formatsCount; f++) {
1552
1635
  var word_cnt = 0;
1553
1636
  var whitespace_cnt = 0;
1554
1637
  var startNewWord = true;
@@ -1556,11 +1639,16 @@ var TextField = /** @class */ (function (_super) {
1556
1639
  var maxLineWidth = this._width - (tf.indent + tf.leftMargin + tf.rightMargin);
1557
1640
  tf.font_table.initFontSize(tf.size);
1558
1641
  // if that is last format then it goes till the end of text:
1559
- var c_end = (f === f_len - 1) ? thisText.length : this._textFormatsIdx[f];
1642
+ var c_end = (f === formatsCount - 1) ? thisText.length : this._textFormatsIdx[f];
1560
1643
  if (c_end > c_start) {
1561
1644
  // create a new textrun
1562
- this._textRuns_formats[this._textRuns_formats.length] = tf;
1563
- this._textRuns_words[this._textRuns_words.length] = this.words.length;
1645
+ pushFormat(tf);
1646
+ var run = pushRunEntry({
1647
+ start: this.words.length,
1648
+ count: 0,
1649
+ width: 0,
1650
+ space: 0
1651
+ });
1564
1652
  // loop over all chars for this format
1565
1653
  //console.log("textrun tf = ", tf);
1566
1654
  for (var c = c_start; c < c_end; c++) {
@@ -1584,17 +1672,17 @@ var TextField = /** @class */ (function (_super) {
1584
1672
  }
1585
1673
  var isLineBreak = char_code === 10 /* LF */;
1586
1674
  if (isLineBreak) {
1587
- this._textRuns_words[this._textRuns_words.length] = word_cnt;
1588
- this._textRuns_words[this._textRuns_words.length] = linewidth;
1589
- this._textRuns_words[this._textRuns_words.length] = whitespace_cnt;
1590
- this._paragraph_textRuns_indices[this._paragraph_textRuns_indices.length] =
1591
- this._textRuns_formats.length;
1675
+ run.count = word_cnt;
1676
+ run.width = linewidth;
1677
+ run.space = whitespace_cnt;
1592
1678
  // create a new textrun
1593
- this._textRuns_formats[this._textRuns_formats.length] = tf;
1594
- this._textRuns_words[this._textRuns_words.length] = this.words.length;
1595
- // this.chars_codes[this.chars_codes.length] = 55;
1596
- // this.chars_width[this.chars_width.length] = 0;
1597
- // this.tf_per_char[this.tf_per_char.length] = tf;
1679
+ pushFormat(tf, true);
1680
+ run = pushRunEntry({
1681
+ start: this.words.length,
1682
+ count: 0,
1683
+ width: 0,
1684
+ space: 0
1685
+ });
1598
1686
  startNewWord = true;
1599
1687
  whitespace_cnt = 0;
1600
1688
  word_cnt = 0;
@@ -1604,8 +1692,6 @@ var TextField = /** @class */ (function (_super) {
1604
1692
  linewidth = 0;
1605
1693
  continue;
1606
1694
  }
1607
- this.chars_codes[this.chars_codes.length] = char_code;
1608
- this.tf_per_char[this.tf_per_char.length] = tf;
1609
1695
  var char_width = tf.font_table.getCharWidth(char_code.toString());
1610
1696
  var isSpace = char_code == 9 /* TAB */ || char_code == 32 /* SPACE */;
1611
1697
  // if this is a letter, and next char is no whitespace, we add the letterSpacing to the letter-width
@@ -1616,7 +1702,7 @@ var TextField = /** @class */ (function (_super) {
1616
1702
  }
1617
1703
  }
1618
1704
  linewidth += char_width;
1619
- this.chars_width[this.chars_width.length] = char_width;
1705
+ pushCharData(char_code, tf, char_width);
1620
1706
  // we create a new word if the char is either:
1621
1707
  // - first char of paragraph
1622
1708
  // - is a whitespace
@@ -1624,69 +1710,51 @@ var TextField = /** @class */ (function (_super) {
1624
1710
  if (isSpace) {
1625
1711
  //console.log("add WhiteSpace");
1626
1712
  whitespace_cnt++;
1627
- this.words[this.words.length] = this.chars_codes.length - 1; // index into chars
1628
- this.words[this.words.length] = 0; // x-position
1629
- this.words[this.words.length] = 0; // y-position
1630
- this.words[this.words.length] = char_width; // word width
1631
- this.words[this.words.length] = 1; // char count
1713
+ this.words.put(charCodeIndex - 1, 0, 0, char_width, 1);
1632
1714
  word_cnt++;
1633
1715
  // we also make sure to begin a new word for next char (could be whitespace again)
1634
1716
  startNewWord = true;
1635
1717
  }
1636
1718
  else {
1637
1719
  // no whitespace
1638
- if (this._autoSize == TextFieldAutoSize.NONE && this._wordWrap) {
1639
- if (this.words[this.words.length - 2] + char_width >= maxLineWidth) {
1720
+ if (word_cnt > 0 && this._autoSize == TextFieldAutoSize.NONE && this._wordWrap) {
1721
+ if (this.words.last.width + char_width >= maxLineWidth) {
1640
1722
  startNewWord = true;
1641
1723
  }
1642
1724
  }
1643
1725
  if (startNewWord) {
1644
1726
  //console.log("startNewWord");
1645
1727
  // create new word (either this is the first char, or the last char was whitespace)
1646
- this.words[this.words.length] = this.chars_codes.length - 1; // index into chars
1647
- this.words[this.words.length] = 0; // x-position
1648
- this.words[this.words.length] = 0; // y-position
1649
- this.words[this.words.length] = char_width; // word width
1650
- this.words[this.words.length] = 1; // char count
1728
+ this.words.put(charCodeIndex - 1, 0, 0, char_width, 1);
1651
1729
  word_cnt++;
1652
1730
  }
1653
1731
  else {
1654
1732
  // update-char length and width of active word.
1655
- this.words[this.words.length - 2] += char_width;
1656
- this.words[this.words.length - 1]++;
1733
+ this.words.last.width += char_width;
1734
+ this.words.last.len += 1;
1657
1735
  }
1658
1736
  startNewWord = false;
1659
1737
  }
1660
1738
  }
1661
- this._textRuns_words[this._textRuns_words.length] = word_cnt;
1662
- this._textRuns_words[this._textRuns_words.length] = linewidth;
1663
- this._textRuns_words[this._textRuns_words.length] = whitespace_cnt;
1739
+ run.count = word_cnt;
1740
+ run.width = linewidth;
1741
+ run.space = whitespace_cnt;
1664
1742
  if (this._maxWidthLine < linewidth) {
1665
1743
  this._maxWidthLine = linewidth;
1666
1744
  }
1667
1745
  }
1668
1746
  c_start = c_end;
1669
1747
  }
1670
- // run through all the chars to check if new text is just old text with some data appended
1671
- if (this.chars_codes_prev.length == 0) {
1672
- return;
1673
- }
1674
- else if (this.chars_codes_prev[0] !== this.chars_codes[0]) {
1675
- this._textShapesDirty = true;
1676
- return;
1677
- }
1678
- for (var c = this.chars_codes.length - 1; c >= 0; c--) {
1679
- var char_code = this.chars_codes[c];
1680
- var tf = this.tf_per_char_prev[c];
1681
- if (
1682
- // this.chars_codes_prev.length <= this.chars_codes.length &&
1683
- this.chars_codes_prev[c] &&
1684
- (this.chars_codes_prev[c] != char_code
1685
- || this.tf_per_char_prev[c]._style_name != tf._style_name)) {
1686
- this._textShapesDirty = true;
1687
- break;
1688
- }
1689
- }
1748
+ this._textShapesDirty = (this._textShapesDirty ||
1749
+ codeChanges > 0 ||
1750
+ charCodes.length !== charCodeIndex);
1751
+ // reduce paragraph count if will be greater that older
1752
+ paragraphIndices.length = paragraphIndex;
1753
+ textRunWords.length = wordIndex;
1754
+ textRunFormats.length = formatIndex;
1755
+ charCodes.length = charCodeIndex;
1756
+ charTextFormats.length = charCodeIndex;
1757
+ charWidths.length = charCodeIndex;
1690
1758
  };
1691
1759
  TextField.prototype.adjustPositionForAutoSize = function (newWidth) {
1692
1760
  var oldSize = this._width;
@@ -1757,12 +1825,12 @@ var TextField = /** @class */ (function (_super) {
1757
1825
  lines_heights[lines_heights.length - 1] = format.font_table.getLineHeight() + format.leading;
1758
1826
  }
1759
1827
  //console.log("process word positions for textrun", tr, "textruns", this._textRuns_words);
1760
- w_len = this._textRuns_words[(tr * 4)] + (this._textRuns_words[(tr * 4) + 1] * 5);
1761
- tr_length += this._textRuns_words[(tr * 4) + 2];
1828
+ w_len = this._textRuns_words[tr].start + this._textRuns_words[tr].count;
1829
+ tr_length += this._textRuns_words[tr].width;
1762
1830
  //console.log(this._textFieldWidth, tr_length, maxLineWidth);
1763
1831
  }
1764
1832
  this.lines_wordStartIndices[this.lines_wordStartIndices.length]
1765
- = this._textRuns_words[(this._paragraph_textRuns_indices[p] * 4)];
1833
+ = this._textRuns_words[this._paragraph_textRuns_indices[p]].start;
1766
1834
  this.lines_wordEndIndices[this.lines_wordEndIndices.length] = w_len;
1767
1835
  this.lines_width[this.lines_width.length] = 0;
1768
1836
  this.lines_numSpacesPerline[this.lines_numSpacesPerline.length] = 0;
@@ -1773,18 +1841,19 @@ var TextField = /** @class */ (function (_super) {
1773
1841
  format = this._textRuns_formats[tr];
1774
1842
  format.font_table.initFontSize(format.size);
1775
1843
  indent = format.indent;
1776
- w_len = this._textRuns_words[(tr * 4)] + (this._textRuns_words[(tr * 4) + 1] * 5);
1844
+ w_len = this._textRuns_words[tr].start + this._textRuns_words[tr].count;
1777
1845
  if (tr_length <= maxLineWidth || !this.wordWrap) {
1778
1846
  //if(tr_length<maxLineWidth || !this.wordWrap){
1779
1847
  // this must be a single textline
1780
1848
  //console.log("just add to line",(tr * 4) , w_len, this.words, this._textRuns_words);
1781
- for (w = this._textRuns_words[(tr * 4)]; w < w_len; w += 5) {
1782
- word_width = this.words[w + 3];
1849
+ for (w = this._textRuns_words[tr].start; w < w_len; w += 1) {
1850
+ var word = this.words.get(w);
1851
+ word_width = word.width;
1783
1852
  linelength += word_width;
1784
- this.lines_wordEndIndices[linecnt] = w + 5;
1853
+ this.lines_wordEndIndices[linecnt] = w + 1;
1785
1854
  this.lines_width[linecnt] += word_width;
1786
1855
  lines_formats[linecnt] = format;
1787
- if (this.chars_codes[this.words[w]] == 32 || this.chars_codes[this.words[w]] == 9) {
1856
+ if (this.chars_codes[word.start] == 32 || this.chars_codes[word.start] == 9) {
1788
1857
  this.lines_numSpacesPerline[linecnt] += 1;
1789
1858
  }
1790
1859
  }
@@ -1793,10 +1862,11 @@ var TextField = /** @class */ (function (_super) {
1793
1862
  //console.log("split lines");
1794
1863
  word_width = 0;
1795
1864
  indent = 0;
1796
- for (w = this._textRuns_words[(tr * 4)]; w < w_len; w += 5) {
1797
- word_width = this.words[w + 3];
1865
+ for (w = this._textRuns_words[tr].start; w < w_len; w += 1) {
1866
+ var word = this.words.get(w);
1867
+ word_width = word.width;
1798
1868
  var isSpace = false;
1799
- if (this.chars_codes[this.words[w]] == 32 || this.chars_codes[this.words[w]] == 9) {
1869
+ if (this.chars_codes[word.start] == 32 || this.chars_codes[word.start] == 9) {
1800
1870
  this.lines_numSpacesPerline[linecnt] += 1;
1801
1871
  isSpace = true;
1802
1872
  }
@@ -1804,14 +1874,14 @@ var TextField = /** @class */ (function (_super) {
1804
1874
  if (isSpace
1805
1875
  || (this.lines_width[linecnt] + word_width) <= (maxLineWidth - indent - (1 * format.font_table.getCharWidth('32')))
1806
1876
  || this.lines_width[linecnt] == 0) {
1807
- this.lines_wordEndIndices[linecnt] = w + 5;
1877
+ this.lines_wordEndIndices[linecnt] = w + 1;
1808
1878
  this.lines_width[linecnt] += word_width;
1809
1879
  lines_formats[linecnt] = format;
1810
1880
  }
1811
1881
  else {
1812
1882
  linecnt++;
1813
1883
  this.lines_wordStartIndices[linecnt] = w;
1814
- this.lines_wordEndIndices[linecnt] = w + 5;
1884
+ this.lines_wordEndIndices[linecnt] = w + 1;
1815
1885
  this.lines_width[linecnt] = word_width;
1816
1886
  this.lines_numSpacesPerline[linecnt] = 0;
1817
1887
  this.lines_height[this.lines_height.length] = lines_heights[lineHeightCnt];
@@ -1883,18 +1953,19 @@ var TextField = /** @class */ (function (_super) {
1883
1953
  this.lines_start_y[l] = offsety;
1884
1954
  this.lines_charIdx_start[l] = charCnt;
1885
1955
  var line_width = 0; //format.leftMargin + format.indent + format.rightMargin;
1886
- for (w = start_idx; w < end_idx; w += 5) {
1887
- this.words[w + 1] = offsetx;
1956
+ for (w = start_idx; w < end_idx; w += 1) {
1957
+ var word = this.words.get(w);
1958
+ word.x = offsetx;
1888
1959
  char_pos = 0;
1889
- start_idx = this.words[w];
1890
- c_len = start_idx + this.words[w + 4];
1960
+ start_idx = word.start;
1961
+ c_len = start_idx + word.len;
1891
1962
  var tf = this.tf_per_char[start_idx];
1892
1963
  tf.font_table.initFontSize(tf.size);
1893
1964
  //console.log("lineHeight", lineHeight);
1894
1965
  //console.log("lineHeight", tf.font_table.getLineHeight()+tf.leading);
1895
1966
  var diff = (lineHeight) - (tf.font_table.getLineHeight() + tf.leading);
1896
1967
  diff = ((diff > 0) ? diff - 2 : 0);
1897
- this.words[w + 2] = offsety + diff;
1968
+ word.y = offsety + diff;
1898
1969
  for (c = start_idx; c < c_len; c++) {
1899
1970
  this.char_positions_x[this.char_positions_x.length] = offsetx + char_pos;
1900
1971
  this.char_positions_y[this.char_positions_y.length] = offsety + diff;
@@ -2087,13 +2158,17 @@ var TextField = /** @class */ (function (_super) {
2087
2158
  if (this._textShapesDirty)
2088
2159
  this._clearTextShapes();
2089
2160
  for (var tr = 0; tr < tr_len; tr++) {
2090
- if (tr_words[(tr * 4) + 1] == 0) {
2161
+ var run = tr_words[tr];
2162
+ if (run.count == 0) {
2091
2163
  continue;
2092
2164
  // } else if (tr_words[(tr * 4)] + tr_words[(tr * 4) + 1] * 5 <= this._words_amount_prev) {
2093
2165
  // continue;
2094
2166
  }
2095
2167
  tr_formats[tr].font_table.initFontSize(tr_formats[tr].size);
2096
- tr_formats[tr].font_table.fillTextRun(this, tr_formats[tr], tr_words[(tr * 4)], tr_words[(tr * 4) + 1]);
2168
+ if (Settings.USE_UNSAFE_FNT) {
2169
+ tr_formats[tr].font_table.generateFNTData(null);
2170
+ }
2171
+ tr_formats[tr].font_table.fillTextRun(this, tr_formats[tr], run.start, run.count);
2097
2172
  }
2098
2173
  var textShape;
2099
2174
  for (var key in this.textShapes) {
@@ -2102,32 +2177,49 @@ var TextField = /** @class */ (function (_super) {
2102
2177
  continue;
2103
2178
  }
2104
2179
  var attr = new Float2Attributes(textShape.length / 2);
2105
- var buffer = new Float32Array(attr.attributesBuffer.buffer);
2180
+ var pos = new Float32Array(attr.attributesBuffer.buffer);
2181
+ var uvAttr = textShape.hasUV ? new Float2Attributes(textShape.length / 2) : null;
2182
+ var uvs = uvAttr ? new Float32Array(uvAttr.attributesBuffer.buffer) : null;
2183
+ //console.log('Build shape size:', textShape.length);
2106
2184
  var offset = 0;
2107
- for (var _i = 0, _a = textShape.verts; _i < _a.length; _i++) {
2108
- var chunk = _a[_i];
2109
- buffer.set(chunk, offset);
2185
+ for (var i = 0; i < textShape.verts.length; i++) {
2186
+ var chunk = textShape.verts[i];
2187
+ pos.set(chunk, offset);
2188
+ if (uvs) {
2189
+ uvs.set(textShape.uvs[i], offset);
2190
+ }
2110
2191
  offset += chunk.length;
2111
2192
  }
2193
+ // hack, merge buffer in single
2194
+ // this helps to avoid a lot of set in incremental filling
2195
+ // but anyway is slow
2196
+ textShape.length = 0;
2197
+ textShape.addChunk(pos, uvs);
2112
2198
  if (textShape.shape) {
2113
2199
  var element = textShape.shape.elements;
2114
- // there are bug with attribyte buffer, when add attr to exist
2115
- element.setPositions(buffer);
2200
+ // there are bug with attribute buffer, when add attr to exist
2201
+ element.setPositions(pos);
2202
+ if (uvs) {
2203
+ element.setUVs(uvs);
2204
+ }
2116
2205
  element.invalidate();
2117
2206
  attr.dispose();
2207
+ if (uvAttr) {
2208
+ uvAttr.dispose();
2209
+ }
2118
2210
  continue;
2119
2211
  }
2120
2212
  var color = this.getTextColorForTextFormat(textShape.format);
2121
- var alpha = ColorUtils.float32ColorToARGB(color)[0];
2122
- if (alpha == 0) {
2123
- alpha = 255;
2124
- }
2213
+ var alpha = ColorUtils.float32ColorToARGB(color)[0] || 255;
2125
2214
  textShape.elements = new TriangleElements();
2126
2215
  textShape.elements.setPositions(attr);
2216
+ if (uvAttr) {
2217
+ textShape.elements.setUVs(uvAttr);
2218
+ }
2127
2219
  textShape.elements.invalidate();
2128
2220
  textShape.shape = Shape.getShape(textShape.elements);
2129
2221
  // has BUG for QWOP, temporarily enable it (default)
2130
- textShape.shape.deepHitCheck = true;
2222
+ textShape.shape.deepHitCheck = false;
2131
2223
  textShape.shape.usages++;
2132
2224
  var sampler = new ImageSampler(false, true, true);
2133
2225
  textShape.shape.style = new Style();
@@ -3040,10 +3132,7 @@ var TextField = /** @class */ (function (_super) {
3040
3132
  };
3041
3133
  TextField.prototype._clearTextShapes = function () {
3042
3134
  this._textShapesDirty = false;
3043
- this.last_word_vertices_count = 0;
3044
- this.tf_per_char_prev.length = 0;
3045
- this.chars_codes_prev.length = 0;
3046
- this._words_amount_prev = 0;
3135
+ this._lastWordsCount = 0;
3047
3136
  if (this.targetGraphics)
3048
3137
  this.targetGraphics.clear();
3049
3138
  var textShape;
@@ -1 +1 @@
1
- {"version":3,"file":"SceneImage2D.d.ts","sourceRoot":"","sources":["../../../lib/image/SceneImage2D.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,EACN,cAAc,EACd,MAAM,EACN,SAAS,EACT,KAAK,EAML,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EACb,aAAa,EAIb,OAAO,EACP,MAAM,eAAe,CAAC;AAOvB;;GAEG;AACH,qBAAa,YAAa,SAAQ,aAAa;IAC9C,OAAc,SAAS,EAAE,MAAM,CAA0B;WAE3C,QAAQ,CACrB,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAE,OAAc,EAC1D,SAAS,GAAE,MAAmB,EAC9B,UAAU,GAAE,OAAc,EAAE,KAAK,GAAE,KAAY,EAAE,IAAI,UAAQ;WAqBhD,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAI/D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