@awayjs/scene 0.13.224 → 0.13.233
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/bundle/awayjs-scene.umd.js +874 -392
- package/bundle/awayjs-scene.umd.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map +1 -1
- package/bundle/awayjs-scene.umd.min.js.map.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/Settings.d.ts +3 -0
- package/dist/lib/Settings.d.ts.map +1 -1
- package/dist/lib/Settings.js +17 -2
- package/dist/lib/display/DisplayObjectContainer.d.ts +1 -0
- package/dist/lib/display/DisplayObjectContainer.d.ts.map +1 -1
- package/dist/lib/display/DisplayObjectContainer.js +4 -2
- package/dist/lib/display/TextField.d.ts +36 -5
- package/dist/lib/display/TextField.d.ts.map +1 -1
- package/dist/lib/display/TextField.js +227 -138
- package/dist/lib/image/SceneImage2D.d.ts.map +1 -1
- package/dist/lib/image/SceneImage2D.js +35 -8
- package/dist/lib/managers/MouseManager.js +1 -1
- package/dist/lib/text/FNTGenerator.d.ts +5 -4
- package/dist/lib/text/FNTGenerator.d.ts.map +1 -1
- package/dist/lib/text/FNTGenerator.js +15 -11
- package/dist/lib/text/FNTGeneratorCanvas.d.ts +23 -0
- package/dist/lib/text/FNTGeneratorCanvas.d.ts.map +1 -0
- package/dist/lib/text/FNTGeneratorCanvas.js +205 -0
- package/dist/lib/text/FNTGeneratrorBase.d.ts +8 -0
- package/dist/lib/text/FNTGeneratrorBase.d.ts.map +1 -0
- package/dist/lib/text/FNTGeneratrorBase.js +7 -0
- package/dist/lib/text/TesselatedFontChar.d.ts +6 -4
- package/dist/lib/text/TesselatedFontChar.d.ts.map +1 -1
- package/dist/lib/text/TesselatedFontChar.js +8 -3
- package/dist/lib/text/TesselatedFontTable.d.ts +19 -3
- package/dist/lib/text/TesselatedFontTable.d.ts.map +1 -1
- package/dist/lib/text/TesselatedFontTable.js +339 -225
- package/dist/lib/text/TextShape.d.ts +6 -3
- package/dist/lib/text/TextShape.d.ts.map +1 -1
- package/dist/lib/text/TextShape.js +27 -2
- package/index.ts +1 -1
- package/lib/Settings.ts +23 -3
- package/lib/display/DisplayObjectContainer.ts +4 -2
- package/lib/display/TextField.ts +317 -145
- package/lib/image/SceneImage2D.ts +84 -9
- package/lib/managers/MouseManager.ts +1 -1
- package/lib/text/FNTGenerator.ts +5 -7
- package/lib/text/FNTGeneratorCanvas.ts +288 -0
- package/lib/text/FNTGeneratrorBase.ts +11 -0
- package/lib/text/TesselatedFontChar.ts +8 -12
- package/lib/text/TesselatedFontTable.ts +438 -255
- package/lib/text/TextShape.ts +30 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { DisplayObjectContainer } from '../display/DisplayObjectContainer';
|
|
|
5
5
|
import { DisplayObject } from '../display/DisplayObject';
|
|
6
6
|
import { Billboard } from '../display/Billboard';
|
|
7
7
|
import { Settings } from '../Settings';
|
|
8
|
-
import { Point, PerspectiveProjection, CoordinateSystem, Vector3D, Transform, ColorUtils } from '@awayjs/core';
|
|
8
|
+
import { Rectangle, Point, PerspectiveProjection, CoordinateSystem, Vector3D, Transform, ColorUtils } from '@awayjs/core';
|
|
9
9
|
import { Stage, BitmapImage2D, _Stage_BitmapImage2D, BlendMode } from '@awayjs/stage';
|
|
10
10
|
import { DefaultRenderer, RenderGroup, Style } from '@awayjs/renderer';
|
|
11
11
|
// empty matrix for transform reset
|
|
@@ -217,6 +217,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
217
217
|
//setup the projection
|
|
218
218
|
SceneImage2D._renderer.disableClear = true;
|
|
219
219
|
SceneImage2D._renderer.view.backgroundAlpha = 0;
|
|
220
|
+
SceneImage2D._renderer.view.backgroundColor = 0x0;
|
|
220
221
|
SceneImage2D._renderer.view.projection = projection;
|
|
221
222
|
SceneImage2D._renderer.view.projection.transform = new Transform();
|
|
222
223
|
SceneImage2D._renderer.view.projection.transform.scaleTo(1, -1, 1);
|
|
@@ -239,6 +240,7 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
239
240
|
//setup the projection
|
|
240
241
|
SceneImage2D._billboardRenderer.disableClear = true;
|
|
241
242
|
SceneImage2D._billboardRenderer.view.backgroundAlpha = 0;
|
|
243
|
+
SceneImage2D._billboardRenderer.view.backgroundColor = 0x0;
|
|
242
244
|
SceneImage2D._billboardRenderer.view.projection = projection;
|
|
243
245
|
SceneImage2D._billboardRenderer.view.projection.transform = new Transform();
|
|
244
246
|
SceneImage2D._billboardRenderer.view.projection.transform.moveTo(0, 0, -1000);
|
|
@@ -395,7 +397,18 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
395
397
|
this.fillRect(this._rect, this._initalFillColor);
|
|
396
398
|
this._initalFillColor = null;
|
|
397
399
|
}
|
|
398
|
-
|
|
400
|
+
var compositeSource = source;
|
|
401
|
+
// merge alpha with source
|
|
402
|
+
if (alphaBitmapData) {
|
|
403
|
+
compositeSource = this._stage.filterManager.popTemp(source.width, source.height);
|
|
404
|
+
//this._stage.filterManager.copyPixels(source, compositeSource, source.rect, source.rect.topLeft);
|
|
405
|
+
this._stage.filterManager.copyPixels(alphaBitmapData, compositeSource, new Rectangle(alphaPoint.x, alphaPoint.y, sourceRect.width, sourceRect.height), new Point(0, 0));
|
|
406
|
+
this._stage.filterManager.copyPixels(source, compositeSource, source.rect, new Point(0, 0), true, 'alpha_back');
|
|
407
|
+
}
|
|
408
|
+
this._stage.filterManager.copyPixels(compositeSource, this, sourceRect, destPoint, mergeAlpha);
|
|
409
|
+
if (alphaBitmapData) {
|
|
410
|
+
this._stage.filterManager.pushTemp(compositeSource);
|
|
411
|
+
}
|
|
399
412
|
this._imageDataDirty = true;
|
|
400
413
|
};
|
|
401
414
|
SceneImage2D.prototype.threshold = function (source, sourceRect, destPoint, operation, threshold, color, mask, copySource) {
|
|
@@ -515,16 +528,23 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
515
528
|
this.fillRect(this._rect, this._initalFillColor);
|
|
516
529
|
this._initalFillColor = null;
|
|
517
530
|
}
|
|
531
|
+
var stage = this._stage;
|
|
532
|
+
var mappedBlend = SceneImage2D._mapSupportedBlendMode(blendMode);
|
|
533
|
+
var supportNativeBlend = !blendMode || mappedBlend !== BlendMode.LAYER || blendMode == BlendMode.LAYER;
|
|
534
|
+
var useTmp = (!supportNativeBlend || this === source);
|
|
535
|
+
var target = useTmp ?
|
|
536
|
+
stage.filterManager.popTemp(this.width, this.height, false)
|
|
537
|
+
: this;
|
|
518
538
|
var renderer = SceneImage2D._billboardRenderer;
|
|
519
539
|
var root = SceneImage2D._billboardRoot;
|
|
520
540
|
var billboard = SceneImage2D._billboard;
|
|
521
541
|
billboard.sampler.smooth = smoothing;
|
|
522
|
-
renderer.disableClear =
|
|
523
|
-
renderer.view.target =
|
|
524
|
-
renderer.view.projection.scale = 1000 /
|
|
542
|
+
renderer.disableClear = !useTmp;
|
|
543
|
+
renderer.view.target = target;
|
|
544
|
+
renderer.view.projection.scale = 1000 / target.height;
|
|
525
545
|
billboard.material.style.image = source;
|
|
526
546
|
// not all blend modes can be used for rendering
|
|
527
|
-
billboard.material.blendMode = SceneImage2D._mapSupportedBlendMode(blendMode);
|
|
547
|
+
billboard.material.blendMode = !useTmp ? SceneImage2D._mapSupportedBlendMode(blendMode) : BlendMode.LAYER;
|
|
528
548
|
billboard.material.useColorTransform = !!colorTransform;
|
|
529
549
|
if (matrix) {
|
|
530
550
|
var m = root.transform.matrix3D;
|
|
@@ -534,17 +554,22 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
534
554
|
m._rawData[4] = matrix.c;
|
|
535
555
|
m._rawData[5] = -matrix.d;
|
|
536
556
|
m._rawData[12] = matrix.tx;
|
|
537
|
-
m._rawData[13] =
|
|
557
|
+
m._rawData[13] = target.height - matrix.ty;
|
|
538
558
|
root.transform.invalidateComponents();
|
|
539
559
|
}
|
|
540
560
|
else {
|
|
541
561
|
root.transform.rotateTo(0, 0, 0);
|
|
542
562
|
root.transform.scaleTo(1, -1, 1);
|
|
543
|
-
root.transform.moveTo(0,
|
|
563
|
+
root.transform.moveTo(0, target.height, 0);
|
|
544
564
|
}
|
|
545
565
|
root.transform.colorTransform = colorTransform;
|
|
546
566
|
//render
|
|
547
567
|
renderer.render();
|
|
568
|
+
//
|
|
569
|
+
if (useTmp) {
|
|
570
|
+
stage.filterManager.copyPixels(target, this, this.rect, TMP_POINT, true, blendMode);
|
|
571
|
+
stage.filterManager.pushTemp(target);
|
|
572
|
+
}
|
|
548
573
|
};
|
|
549
574
|
SceneImage2D.prototype._drawAsDisplay = function (source, matrix, colorTransform, blendMode, _clipRect, _smoothing) {
|
|
550
575
|
if (blendMode === void 0) { blendMode = ''; }
|
|
@@ -623,6 +648,8 @@ var SceneImage2D = /** @class */ (function (_super) {
|
|
|
623
648
|
renderer.view.height = this.height;
|
|
624
649
|
var sourceNode = rootNode.addChildAt(source, 0);
|
|
625
650
|
sourceNode.transformDisabled = true;
|
|
651
|
+
// color transform should be enabled!
|
|
652
|
+
sourceNode.colorTransformDisabled = false;
|
|
626
653
|
root.transform.colorTransform = colorTransform;
|
|
627
654
|
// anyway we not support this =))
|
|
628
655
|
root.blendMode = SceneImage2D._mapSupportedBlendMode(blendMode);
|
|
@@ -630,7 +630,7 @@ var MouseManager = /** @class */ (function () {
|
|
|
630
630
|
};
|
|
631
631
|
MouseManager.prototype.queueDispatch = function (event, sourceEvent) {
|
|
632
632
|
// Store event to be dispatched later.
|
|
633
|
-
event.delta = (sourceEvent instanceof WheelEvent) ? sourceEvent.deltaY : 0;
|
|
633
|
+
event.delta = (sourceEvent instanceof WheelEvent) ? -3 * sourceEvent.deltaY / 100 : 0;
|
|
634
634
|
event.ctrlKey = sourceEvent.ctrlKey;
|
|
635
635
|
event.altKey = sourceEvent.altKey;
|
|
636
636
|
event.shiftKey = sourceEvent.shiftKey;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Font } from './Font';
|
|
2
|
-
|
|
2
|
+
import { Stage, BitmapImage2D } from '@awayjs/stage';
|
|
3
|
+
import { FNTGeneratorBase } from './FNTGeneratrorBase';
|
|
4
|
+
export declare class FNTGenerator extends FNTGeneratorBase {
|
|
3
5
|
private _root;
|
|
4
6
|
private _renderer;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
generate(font: Font, maxSize: number, fontSize: number, padding: number): any;
|
|
7
|
+
constructor(stage: Stage);
|
|
8
|
+
generate(font: Font, maxSize: number, fontSize: number, padding: number): BitmapImage2D[];
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=FNTGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FNTGenerator.d.ts","sourceRoot":"","sources":["../../../lib/text/FNTGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"FNTGenerator.d.ts","sourceRoot":"","sources":["../../../lib/text/FNTGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,qBAAa,YAAa,SAAQ,gBAAgB;IACjD,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,SAAS,CAAkB;gBAEvB,KAAK,EAAE,KAAK;IAwBjB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE;CAuDhG"}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { PerspectiveProjection, CoordinateSystem, Transform, Vector3D } from '@awayjs/core';
|
|
2
3
|
import { BitmapImage2D } from '@awayjs/stage';
|
|
3
4
|
import { DefaultRenderer, RenderGroup } from '@awayjs/renderer';
|
|
4
5
|
import { DisplayObjectContainer } from '../display/DisplayObjectContainer';
|
|
5
6
|
import { BasicPartition, NodePool, View } from '@awayjs/view';
|
|
6
7
|
import { Sprite } from '../display/Sprite';
|
|
7
|
-
|
|
8
|
+
import { FNTGeneratorBase } from './FNTGeneratrorBase';
|
|
9
|
+
var FNTGenerator = /** @class */ (function (_super) {
|
|
10
|
+
__extends(FNTGenerator, _super);
|
|
8
11
|
function FNTGenerator(stage) {
|
|
9
|
-
|
|
12
|
+
var _this = _super.call(this, stage) || this;
|
|
10
13
|
//create the projection
|
|
11
14
|
var projection = new PerspectiveProjection();
|
|
12
15
|
projection.coordinateSystem = CoordinateSystem.RIGHT_HANDED;
|
|
13
16
|
projection.originX = -1;
|
|
14
17
|
projection.originY = 1;
|
|
15
18
|
//create the view
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
_this._root = new DisplayObjectContainer();
|
|
20
|
+
_this._renderer = RenderGroup
|
|
18
21
|
.getInstance(new View(projection, stage, null, null, null, true), DefaultRenderer)
|
|
19
|
-
.getRenderer(NodePool.getRootNode(
|
|
22
|
+
.getRenderer(NodePool.getRootNode(_this._root, BasicPartition).partition);
|
|
20
23
|
//setup the projection
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
_this._renderer.view.projection = projection;
|
|
25
|
+
_this._renderer.view.projection.transform = new Transform();
|
|
26
|
+
_this._renderer.view.projection.transform.moveTo(0, 0, -1000);
|
|
27
|
+
_this._renderer.view.projection.transform.lookAt(new Vector3D());
|
|
28
|
+
_this._renderer.renderableSorter = null; //new RenderableSort2D();
|
|
29
|
+
return _this;
|
|
26
30
|
}
|
|
27
31
|
FNTGenerator.prototype.generate = function (font, maxSize, fontSize, padding) {
|
|
28
32
|
var outputBitmap;
|
|
@@ -64,5 +68,5 @@ var FNTGenerator = /** @class */ (function () {
|
|
|
64
68
|
return outputBitmaps;
|
|
65
69
|
};
|
|
66
70
|
return FNTGenerator;
|
|
67
|
-
}());
|
|
71
|
+
}(FNTGeneratorBase));
|
|
68
72
|
export { FNTGenerator };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FNTGeneratorBase } from './FNTGeneratrorBase';
|
|
2
|
+
import { Font } from './Font';
|
|
3
|
+
import { BitmapImage2D, Stage } from '@awayjs/stage';
|
|
4
|
+
export declare class FNTGeneratorCanvas extends FNTGeneratorBase {
|
|
5
|
+
private static getCanvasContext;
|
|
6
|
+
private static freeCanvasContext;
|
|
7
|
+
private static transformChar;
|
|
8
|
+
private static sortPatches;
|
|
9
|
+
private static render;
|
|
10
|
+
/**
|
|
11
|
+
* Debug mode.
|
|
12
|
+
* Prevent OffscreenCanvas and prevent canvas clear.
|
|
13
|
+
* Store canvas
|
|
14
|
+
*/
|
|
15
|
+
debug: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Store canvas used for caching. Only in debug mode
|
|
18
|
+
*/
|
|
19
|
+
canvas: HTMLCanvasElement;
|
|
20
|
+
constructor(stage: Stage, debug?: boolean);
|
|
21
|
+
generate(font: Font, size: number, fontSize: number, padding: number): BitmapImage2D[];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=FNTGeneratorCanvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FNTGeneratorCanvas.d.ts","sourceRoot":"","sources":["../../../lib/text/FNTGeneratorCanvas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAqCrD,qBAAa,kBAAmB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAe/B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAUhC,OAAO,CAAC,MAAM,CAAC,aAAa;IA+D5B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,MAAM;IAyGrB;;;;OAIG;IACI,KAAK,EAAE,OAAO,CAAS;IAE9B;;OAEG;IACI,MAAM,EAAE,iBAAiB,CAAC;gBAErB,KAAK,EAAE,KAAK,EAAE,KAAK,UAAQ;IAMhC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE;CAgC7F"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { FNTGeneratorBase } from './FNTGeneratrorBase';
|
|
3
|
+
import { BitmapImage2D } from '@awayjs/stage';
|
|
4
|
+
import { Rectangle } from '@awayjs/core';
|
|
5
|
+
import { GraphicsPathCommand } from '@awayjs/graphics';
|
|
6
|
+
var Bounds = /** @class */ (function () {
|
|
7
|
+
function Bounds() {
|
|
8
|
+
this.left = Number.MAX_VALUE;
|
|
9
|
+
this.right = Number.MIN_VALUE;
|
|
10
|
+
this.top = Number.MAX_VALUE;
|
|
11
|
+
this.bottom = Number.MIN_VALUE;
|
|
12
|
+
}
|
|
13
|
+
Bounds.prototype.grown = function (x, y) {
|
|
14
|
+
if (x < this.left)
|
|
15
|
+
this.left = x;
|
|
16
|
+
if (x > this.right)
|
|
17
|
+
this.right = x;
|
|
18
|
+
if (y < this.top)
|
|
19
|
+
this.top = y;
|
|
20
|
+
if (y > this.bottom)
|
|
21
|
+
this.bottom = y;
|
|
22
|
+
};
|
|
23
|
+
Bounds.prototype.toRect = function () {
|
|
24
|
+
return new Rectangle(this.left, this.top, this.right - this.left, this.bottom - this.top);
|
|
25
|
+
};
|
|
26
|
+
return Bounds;
|
|
27
|
+
}());
|
|
28
|
+
var FNTGeneratorCanvas = /** @class */ (function (_super) {
|
|
29
|
+
__extends(FNTGeneratorCanvas, _super);
|
|
30
|
+
function FNTGeneratorCanvas(stage, debug) {
|
|
31
|
+
if (debug === void 0) { debug = false; }
|
|
32
|
+
var _this = _super.call(this, stage) || this;
|
|
33
|
+
/**
|
|
34
|
+
* Debug mode.
|
|
35
|
+
* Prevent OffscreenCanvas and prevent canvas clear.
|
|
36
|
+
* Store canvas
|
|
37
|
+
*/
|
|
38
|
+
_this.debug = false;
|
|
39
|
+
_this.debug = debug;
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
FNTGeneratorCanvas.getCanvasContext = function (width, height, debug) {
|
|
43
|
+
if (width === void 0) { width = 100; }
|
|
44
|
+
if (height === void 0) { height = 100; }
|
|
45
|
+
if (debug === void 0) { debug = false; }
|
|
46
|
+
var canvas = ('OffscreenCanvas' in self && !debug)
|
|
47
|
+
? new self.OffscreenCanvas(width, height)
|
|
48
|
+
: document.createElement('canvas');
|
|
49
|
+
canvas.width = width;
|
|
50
|
+
canvas.height = height;
|
|
51
|
+
return canvas.getContext('2d', { desynchronized: true, alpha: true });
|
|
52
|
+
};
|
|
53
|
+
FNTGeneratorCanvas.freeCanvasContext = function (ctx) {
|
|
54
|
+
if (ctx.canvas instanceof self.OffscreenCanvas) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
// safari bug with canvas leaks
|
|
58
|
+
ctx.canvas.width = 0;
|
|
59
|
+
ctx.canvas.height = 0;
|
|
60
|
+
};
|
|
61
|
+
FNTGeneratorCanvas.transformChar = function (char) {
|
|
62
|
+
var fillData = char.fill_data_path;
|
|
63
|
+
// empty command
|
|
64
|
+
if (fillData.commands[0].length === 0 && fillData.commands.length === 1) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
var path = new Path2D();
|
|
68
|
+
var box = new Bounds();
|
|
69
|
+
for (var i = 0; i < fillData.commands.length; i++) {
|
|
70
|
+
var data = fillData.data[i];
|
|
71
|
+
var commands = fillData.commands[i];
|
|
72
|
+
var pointer = 0;
|
|
73
|
+
for (var _i = 0, commands_1 = commands; _i < commands_1.length; _i++) {
|
|
74
|
+
var command = commands_1[_i];
|
|
75
|
+
switch (command) {
|
|
76
|
+
case GraphicsPathCommand.MOVE_TO: {
|
|
77
|
+
// flash path in twips, transform it
|
|
78
|
+
var px = data[pointer++] / 20;
|
|
79
|
+
var py = data[pointer++] / 20;
|
|
80
|
+
box.grown(px, py);
|
|
81
|
+
path.moveTo(px, py);
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
case GraphicsPathCommand.LINE_TO: {
|
|
85
|
+
var px = data[pointer++] / 20;
|
|
86
|
+
var py = data[pointer++] / 20;
|
|
87
|
+
box.grown(px, py);
|
|
88
|
+
path.lineTo(px, py);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case GraphicsPathCommand.CURVE_TO: {
|
|
92
|
+
var cx = data[pointer++] / 20;
|
|
93
|
+
var cy = data[pointer++] / 20;
|
|
94
|
+
var dx = data[pointer++] / 20;
|
|
95
|
+
var dy = data[pointer++] / 20;
|
|
96
|
+
box.grown(cx, cy);
|
|
97
|
+
box.grown(dx, dy);
|
|
98
|
+
path.quadraticCurveTo(cx, cy, dx, dy);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//path.closePath();
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
path: path,
|
|
106
|
+
char: char,
|
|
107
|
+
rect: box.toRect(),
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
FNTGeneratorCanvas.sortPatches = function (a, b) {
|
|
111
|
+
return a.rect.height - b.rect.height;
|
|
112
|
+
};
|
|
113
|
+
FNTGeneratorCanvas.render = function (table, context, size, fontSize, padding) {
|
|
114
|
+
if (fontSize === void 0) { fontSize = 0; }
|
|
115
|
+
if (padding === void 0) { padding = 0; }
|
|
116
|
+
var chars = table.get_font_chars();
|
|
117
|
+
var patches = [];
|
|
118
|
+
var doublePad = padding * 2;
|
|
119
|
+
var totalArea = 0;
|
|
120
|
+
var scale = 1;
|
|
121
|
+
for (var _i = 0, chars_1 = chars; _i < chars_1.length; _i++) {
|
|
122
|
+
var char = chars_1[_i];
|
|
123
|
+
var path = FNTGeneratorCanvas.transformChar(char);
|
|
124
|
+
if (!path) {
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
totalArea += (doublePad + path.rect.width) * (doublePad + path.rect.height);
|
|
128
|
+
patches.push(path);
|
|
129
|
+
}
|
|
130
|
+
patches.sort(FNTGeneratorCanvas.sortPatches);
|
|
131
|
+
// TODO compute valid scale when fontSize is 0
|
|
132
|
+
if (fontSize) {
|
|
133
|
+
table.initFontSize(fontSize);
|
|
134
|
+
scale = /* 20 * table._size_multiply **/ size / table.get_font_em_size();
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Render glyphs onto canvas
|
|
138
|
+
* We will render glyphs as white and background as black transparent
|
|
139
|
+
*/
|
|
140
|
+
context.save();
|
|
141
|
+
context.clearRect(0, 0, size, size);
|
|
142
|
+
context.fillStyle = '#fff';
|
|
143
|
+
var tx = padding;
|
|
144
|
+
var ty = padding;
|
|
145
|
+
var maxHeight = 0;
|
|
146
|
+
// pack glyph based on size
|
|
147
|
+
for (var _a = 0, patches_1 = patches; _a < patches_1.length; _a++) {
|
|
148
|
+
var path = patches_1[_a];
|
|
149
|
+
if (!path.path) {
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
// if overflow - jump next location
|
|
153
|
+
if (tx + path.rect.width + doublePad >= size / scale) {
|
|
154
|
+
tx = padding;
|
|
155
|
+
ty += maxHeight + doublePad;
|
|
156
|
+
maxHeight = 0;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @todo Support multiple channel table data
|
|
160
|
+
*/
|
|
161
|
+
if (ty + path.rect.height > size / scale) {
|
|
162
|
+
console.warn('[FNTGeneratorCanvas] Font image overflow, font will corrupted!');
|
|
163
|
+
}
|
|
164
|
+
maxHeight = Math.max(path.rect.height, maxHeight);
|
|
165
|
+
context.setTransform(scale, 0, 0, scale, (tx - path.rect.x) * scale, (ty - path.rect.y) * scale);
|
|
166
|
+
context.fill(path.path);
|
|
167
|
+
//context.strokeRect(path.rect.x,path.rect.y, path.rect.width, path.rect.height);
|
|
168
|
+
path.char.fnt_rect = new Rectangle((path.rect.x) / path.char.char_width, (path.rect.y) / table.get_font_em_size(), path.rect.width / path.char.char_width, path.rect.height / table.get_font_em_size());
|
|
169
|
+
path.char.fnt_uv = new Rectangle(tx * scale / size, ty * scale / size, path.rect.width * scale / size, path.rect.height * scale / size);
|
|
170
|
+
/*
|
|
171
|
+
path.char.fnt_uv = new Rectangle(
|
|
172
|
+
(tx - path.rect.x) * scale / size,
|
|
173
|
+
1 - (ty - path.rect.y) * scale / scale,
|
|
174
|
+
path.rect.width * scale / size,
|
|
175
|
+
path.rect.height * scale / size
|
|
176
|
+
);*/
|
|
177
|
+
path.char.fnt_channel = 0;
|
|
178
|
+
tx += path.rect.width + doublePad;
|
|
179
|
+
}
|
|
180
|
+
context.restore();
|
|
181
|
+
};
|
|
182
|
+
FNTGeneratorCanvas.prototype.generate = function (font, size, fontSize, padding) {
|
|
183
|
+
var context = FNTGeneratorCanvas.getCanvasContext(size, size, this.debug);
|
|
184
|
+
var bitmaps = [];
|
|
185
|
+
for (var key in font.font_styles) {
|
|
186
|
+
var table = font.font_styles[key];
|
|
187
|
+
// render table in context
|
|
188
|
+
FNTGeneratorCanvas.render(table, context, size, fontSize, padding);
|
|
189
|
+
var data = context.getImageData(0, 0, size, size);
|
|
190
|
+
var image = new BitmapImage2D(size, size, true, 0, true, this._stage);
|
|
191
|
+
image.setPixels(new Rectangle(0, 0, size, size), data.data);
|
|
192
|
+
bitmaps.push(image);
|
|
193
|
+
table.addFNTChannel(image);
|
|
194
|
+
}
|
|
195
|
+
if (!this.debug) {
|
|
196
|
+
FNTGeneratorCanvas.freeCanvasContext(context);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
this.canvas = context.canvas;
|
|
200
|
+
}
|
|
201
|
+
return bitmaps;
|
|
202
|
+
};
|
|
203
|
+
return FNTGeneratorCanvas;
|
|
204
|
+
}(FNTGeneratorBase));
|
|
205
|
+
export { FNTGeneratorCanvas };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Stage, BitmapImage2D } from '@awayjs/stage';
|
|
2
|
+
import { Font } from './Font';
|
|
3
|
+
export declare abstract class FNTGeneratorBase {
|
|
4
|
+
protected _stage: Stage;
|
|
5
|
+
constructor(_stage: Stage);
|
|
6
|
+
abstract generate(font: Font, maxSize: number, fontSize: number, padding: number): BitmapImage2D[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=FNTGeneratrorBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FNTGeneratrorBase.d.ts","sourceRoot":"","sources":["../../../lib/text/FNTGeneratrorBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,8BAAsB,gBAAgB;IAEpC,SAAS,CAAC,MAAM,EAAE,KAAK;gBAAb,MAAM,EAAE,KAAK;aAIR,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE;CACzG"}
|
|
@@ -28,6 +28,9 @@ import { Rectangle } from '@awayjs/core';
|
|
|
28
28
|
* property description.</p>
|
|
29
29
|
*/
|
|
30
30
|
export declare class TesselatedFontChar {
|
|
31
|
+
fill_data: AttributesBuffer;
|
|
32
|
+
stroke_data: AttributesBuffer;
|
|
33
|
+
fill_data_path: GraphicsPath;
|
|
31
34
|
/**
|
|
32
35
|
* The width of the char
|
|
33
36
|
*/
|
|
@@ -38,11 +41,10 @@ export declare class TesselatedFontChar {
|
|
|
38
41
|
fnt_uv: Rectangle;
|
|
39
42
|
fnt_channel: number;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
44
|
+
* What is scale was used for generating last tesselation
|
|
45
|
+
* Used for reduce a vertices count
|
|
42
46
|
*/
|
|
43
|
-
|
|
44
|
-
fill_data: AttributesBuffer;
|
|
45
|
-
fill_data_path: GraphicsPath;
|
|
47
|
+
lastTesselatedScale: number;
|
|
46
48
|
/**
|
|
47
49
|
* the char_codes that this geom has kerning set for
|
|
48
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TesselatedFontChar.d.ts","sourceRoot":"","sources":["../../../lib/text/TesselatedFontChar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"TesselatedFontChar.d.ts","sourceRoot":"","sources":["../../../lib/text/TesselatedFontChar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,kBAAkB;IA6BtB,SAAS,EAAE,gBAAgB;IAC3B,WAAW,EAAE,gBAAgB;IAC7B,cAAc,EAAE,YAAY;IA7BpC;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,MAAM,CAAK;IAE/B;;;OAGG;IACI,mBAAmB,EAAE,MAAM,CAAK;IAEvC;;OAEG;IACI,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAI;IAC1C;;OAEG;IACI,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAI;gBAG/B,SAAS,GAAE,gBAAuB,EAClC,WAAW,GAAE,gBAAuB,EACpC,cAAc,GAAE,YAAmB;IAIpC,OAAO;CAed"}
|
|
@@ -29,7 +29,15 @@ var TesselatedFontChar = /** @class */ (function () {
|
|
|
29
29
|
if (fill_data === void 0) { fill_data = null; }
|
|
30
30
|
if (stroke_data === void 0) { stroke_data = null; }
|
|
31
31
|
if (fill_data_path === void 0) { fill_data_path = null; }
|
|
32
|
+
this.fill_data = fill_data;
|
|
33
|
+
this.stroke_data = stroke_data;
|
|
34
|
+
this.fill_data_path = fill_data_path;
|
|
32
35
|
this.fnt_channel = 0;
|
|
36
|
+
/**
|
|
37
|
+
* What is scale was used for generating last tesselation
|
|
38
|
+
* Used for reduce a vertices count
|
|
39
|
+
*/
|
|
40
|
+
this.lastTesselatedScale = 0;
|
|
33
41
|
/**
|
|
34
42
|
* the char_codes that this geom has kerning set for
|
|
35
43
|
*/
|
|
@@ -38,9 +46,6 @@ var TesselatedFontChar = /** @class */ (function () {
|
|
|
38
46
|
* the kerning values per char_code
|
|
39
47
|
*/
|
|
40
48
|
this.kerningValues = [];
|
|
41
|
-
this.fill_data = fill_data;
|
|
42
|
-
this.stroke_data = stroke_data;
|
|
43
|
-
this.fill_data_path = fill_data_path;
|
|
44
49
|
}
|
|
45
50
|
TesselatedFontChar.prototype.dispose = function () {
|
|
46
51
|
if (this.stroke_data) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssetBase, Point } from '@awayjs/core';
|
|
2
|
-
import { AttributesBuffer, BitmapImage2D } from '@awayjs/stage';
|
|
2
|
+
import { AttributesBuffer, BitmapImage2D, Stage } from '@awayjs/stage';
|
|
3
3
|
import { GraphicsPath, Shape } from '@awayjs/graphics';
|
|
4
4
|
import { TesselatedFontChar } from './TesselatedFontChar';
|
|
5
5
|
import { IFontTable } from './IFontTable';
|
|
@@ -42,7 +42,7 @@ export declare class TesselatedFontTable extends AssetBase implements IFontTable
|
|
|
42
42
|
constructor(opentype_font?: any);
|
|
43
43
|
addFNTChannel(mat: BitmapImage2D): void;
|
|
44
44
|
getGlyphCount(): number;
|
|
45
|
-
|
|
45
|
+
generateFNTData(stage: Stage): void;
|
|
46
46
|
generateFNTTextures(padding: number, fontSize: number, texSize: number): Shape[];
|
|
47
47
|
getRatio(size: number): number;
|
|
48
48
|
hasChar(char_code: string): boolean;
|
|
@@ -72,9 +72,25 @@ export declare class TesselatedFontTable extends AssetBase implements IFontTable
|
|
|
72
72
|
set_font_em_size(font_em_size: number): void;
|
|
73
73
|
buildTextLineFromIndices(field: TextField, format: TextFormat, x: number, y: number, indices: number[], advance: number[]): Point;
|
|
74
74
|
fillTextRun(tf: TextField, format: TextFormat, startWord: number, wordCnt: number): void;
|
|
75
|
+
private _cacheKey;
|
|
76
|
+
/**
|
|
77
|
+
* Query shape from TextField cache
|
|
78
|
+
* @param tf
|
|
79
|
+
* @param format
|
|
80
|
+
* @param channel - FNT channel, -1 for regular font
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
private _queryShape;
|
|
84
|
+
/**
|
|
85
|
+
* Fill text run but use FNT Texture.
|
|
86
|
+
*/
|
|
87
|
+
fillTextRunFNT(tf: TextField, format: TextFormat, startWord: number, wordCnt: number): void;
|
|
88
|
+
private _emitCharFNT;
|
|
75
89
|
createPointGlyph_9679(): TesselatedFontChar;
|
|
76
|
-
|
|
90
|
+
private getCharOpenType;
|
|
91
|
+
getChar(name: string | number, tesselation?: boolean): TesselatedFontChar;
|
|
77
92
|
setChar(name: string, char_width: number, fills_data?: AttributesBuffer, stroke_data?: AttributesBuffer, uses_curves?: boolean, glyph_idx?: number, fill_data_path?: GraphicsPath): void;
|
|
93
|
+
private roundTo;
|
|
78
94
|
private _fillBuffer;
|
|
79
95
|
}
|
|
80
96
|
//# sourceMappingURL=TesselatedFontTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TesselatedFontTable.d.ts","sourceRoot":"","sources":["../../../lib/text/TesselatedFontTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,KAAK,EAAyC,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAgB,gBAAgB,EAAoC,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"TesselatedFontTable.d.ts","sourceRoot":"","sources":["../../../lib/text/TesselatedFontTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,KAAK,EAAyC,MAAM,cAAc,CAAC;AAE/F,OAAO,EAAgB,gBAAgB,EAAoC,aAAa,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIvH,OAAO,EAAE,YAAY,EAAE,KAAK,EAAgE,MAAM,kBAAkB,CAAC;AAIrH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAoBjD;;;;;;;;GAQG;AACH,qBAAa,mBAAoB,SAAQ,SAAU,YAAW,UAAU;IACvE,OAAc,SAAS,EAAE,MAAM,CAAiC;IAChE,OAAc,aAAa,SAAM;IAE1B,IAAI,EAAE,GAAG,CAAC;IAEJ,eAAe,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IAEpC,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,SAAS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