x_ite 11.5.8 → 11.5.10
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/README.md +13 -8
- package/dist/assets/components/AnnotationComponent.js +2 -2
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +2 -2
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +2 -2
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +8 -8
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +4 -4
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +2 -2
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +6 -6
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +2 -2
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +5 -42
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +4 -4
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +18 -8
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +2 -2
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +229 -117
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +192 -156
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +145 -69
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +3 -3
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +7 -11
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/assets/lib/draco_decoder_gltf.js +1 -1
- package/dist/assets/lib/libktx.js +1 -1
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +55386 -55338
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +55464 -55416
- package/dist/x_ite.zip +0 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* X_ITE v11.5.
|
|
2
|
-
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.5.
|
|
1
|
+
/* X_ITE v11.5.10 */
|
|
2
|
+
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.5.10")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ "use strict";
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
@@ -776,7 +776,7 @@ Object .assign (X3DTextGeometry .prototype,
|
|
|
776
776
|
this .minorAlignment .assign (this .bearing);
|
|
777
777
|
break;
|
|
778
778
|
case Text_TextAlignment .FIRST:
|
|
779
|
-
this .minorAlignment .set (0
|
|
779
|
+
this .minorAlignment .set (0);
|
|
780
780
|
break;
|
|
781
781
|
case Text_TextAlignment .MIDDLE:
|
|
782
782
|
this .minorAlignment .set (0, size .y / 2 - max .y);
|
|
@@ -1359,8 +1359,8 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, Text_X3DTextGeom
|
|
|
1359
1359
|
}
|
|
1360
1360
|
else
|
|
1361
1361
|
{
|
|
1362
|
-
min .set (0
|
|
1363
|
-
max .set (0
|
|
1362
|
+
min .set (0);
|
|
1363
|
+
max .set (0);
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
1366
|
const extents = glyphCache .extents = { };
|
|
@@ -13611,7 +13611,8 @@ Hinting.prototype.exec = function(glyph, ppem) {
|
|
|
13611
13611
|
fpgmState = this._fpgmState = new State("fpgm", font.tables.fpgm);
|
|
13612
13612
|
fpgmState.funcs = [];
|
|
13613
13613
|
fpgmState.font = font;
|
|
13614
|
-
if (false)
|
|
13614
|
+
if (false) // removed by dead control flow
|
|
13615
|
+
{}
|
|
13615
13616
|
try {
|
|
13616
13617
|
exec(fpgmState);
|
|
13617
13618
|
} catch (e) {
|
|
@@ -13633,7 +13634,8 @@ Hinting.prototype.exec = function(glyph, ppem) {
|
|
|
13633
13634
|
} else {
|
|
13634
13635
|
prepState.cvt = [];
|
|
13635
13636
|
}
|
|
13636
|
-
if (false)
|
|
13637
|
+
if (false) // removed by dead control flow
|
|
13638
|
+
{}
|
|
13637
13639
|
try {
|
|
13638
13640
|
exec(prepState);
|
|
13639
13641
|
} catch (e) {
|
|
@@ -13665,7 +13667,8 @@ execGlyph = function(glyph, prepState) {
|
|
|
13665
13667
|
State.prototype = prepState;
|
|
13666
13668
|
if (!components) {
|
|
13667
13669
|
state = new State("glyf", glyph.instructions);
|
|
13668
|
-
if (false)
|
|
13670
|
+
if (false) // removed by dead control flow
|
|
13671
|
+
{}
|
|
13669
13672
|
execComponent(glyph, state, xScale, yScale);
|
|
13670
13673
|
gZone = state.gZone;
|
|
13671
13674
|
} else {
|
|
@@ -13676,7 +13679,8 @@ execGlyph = function(glyph, prepState) {
|
|
|
13676
13679
|
const c = components[i];
|
|
13677
13680
|
const cg = font.glyphs.get(c.glyphIndex);
|
|
13678
13681
|
state = new State("glyf", cg.instructions);
|
|
13679
|
-
if (false)
|
|
13682
|
+
if (false) // removed by dead control flow
|
|
13683
|
+
{}
|
|
13680
13684
|
execComponent(cg, state, xScale, yScale);
|
|
13681
13685
|
const dx = Math.round(c.dx * xScale);
|
|
13682
13686
|
const dy = Math.round(c.dy * yScale);
|
|
@@ -13702,7 +13706,8 @@ execGlyph = function(glyph, prepState) {
|
|
|
13702
13706
|
new HPoint(0, 0),
|
|
13703
13707
|
new HPoint(Math.round(glyph.advanceWidth * xScale), 0)
|
|
13704
13708
|
);
|
|
13705
|
-
if (false)
|
|
13709
|
+
if (false) // removed by dead control flow
|
|
13710
|
+
{}
|
|
13706
13711
|
exec(state);
|
|
13707
13712
|
gZone.length -= 2;
|
|
13708
13713
|
}
|
|
@@ -13743,14 +13748,16 @@ execComponent = function(glyph, state, xScale, yScale) {
|
|
|
13743
13748
|
}
|
|
13744
13749
|
}
|
|
13745
13750
|
if (state.inhibitGridFit) return;
|
|
13746
|
-
if (false)
|
|
13751
|
+
if (false) // removed by dead control flow
|
|
13752
|
+
{}
|
|
13747
13753
|
gZone.push(
|
|
13748
13754
|
new HPoint(0, 0),
|
|
13749
13755
|
new HPoint(Math.round(glyph.advanceWidth * xScale), 0)
|
|
13750
13756
|
);
|
|
13751
13757
|
exec(state);
|
|
13752
13758
|
gZone.length -= 2;
|
|
13753
|
-
if (false)
|
|
13759
|
+
if (false) // removed by dead control flow
|
|
13760
|
+
{}
|
|
13754
13761
|
};
|
|
13755
13762
|
exec = function(state) {
|
|
13756
13763
|
let prog = state.prog;
|
|
@@ -13758,7 +13765,8 @@ exec = function(state) {
|
|
|
13758
13765
|
const pLen = prog.length;
|
|
13759
13766
|
let ins;
|
|
13760
13767
|
for (state.ip = 0; state.ip < pLen; state.ip++) {
|
|
13761
|
-
if (false)
|
|
13768
|
+
if (false) // removed by dead control flow
|
|
13769
|
+
{}
|
|
13762
13770
|
ins = instructionTable[prog[state.ip]];
|
|
13763
13771
|
if (!ins) {
|
|
13764
13772
|
throw new Error(
|
|
@@ -13799,15 +13807,18 @@ function skip(state, handleElse) {
|
|
|
13799
13807
|
state.ip = ip;
|
|
13800
13808
|
}
|
|
13801
13809
|
function SVTCA(v, state) {
|
|
13802
|
-
if (false)
|
|
13810
|
+
if (false) // removed by dead control flow
|
|
13811
|
+
{}
|
|
13803
13812
|
state.fv = state.pv = state.dpv = v;
|
|
13804
13813
|
}
|
|
13805
13814
|
function SPVTCA(v, state) {
|
|
13806
|
-
if (false)
|
|
13815
|
+
if (false) // removed by dead control flow
|
|
13816
|
+
{}
|
|
13807
13817
|
state.pv = state.dpv = v;
|
|
13808
13818
|
}
|
|
13809
13819
|
function SFVTCA(v, state) {
|
|
13810
|
-
if (false)
|
|
13820
|
+
if (false) // removed by dead control flow
|
|
13821
|
+
{}
|
|
13811
13822
|
state.fv = v;
|
|
13812
13823
|
}
|
|
13813
13824
|
function SPVTL(a, state) {
|
|
@@ -13816,7 +13827,8 @@ function SPVTL(a, state) {
|
|
|
13816
13827
|
const p1i = stack.pop();
|
|
13817
13828
|
const p2 = state.z2[p2i];
|
|
13818
13829
|
const p1 = state.z1[p1i];
|
|
13819
|
-
if (false)
|
|
13830
|
+
if (false) // removed by dead control flow
|
|
13831
|
+
{}
|
|
13820
13832
|
let dx;
|
|
13821
13833
|
let dy;
|
|
13822
13834
|
if (!a) {
|
|
@@ -13834,7 +13846,8 @@ function SFVTL(a, state) {
|
|
|
13834
13846
|
const p1i = stack.pop();
|
|
13835
13847
|
const p2 = state.z2[p2i];
|
|
13836
13848
|
const p1 = state.z1[p1i];
|
|
13837
|
-
if (false)
|
|
13849
|
+
if (false) // removed by dead control flow
|
|
13850
|
+
{}
|
|
13838
13851
|
let dx;
|
|
13839
13852
|
let dy;
|
|
13840
13853
|
if (!a) {
|
|
@@ -13850,33 +13863,38 @@ function SPVFS(state) {
|
|
|
13850
13863
|
const stack = state.stack;
|
|
13851
13864
|
const y = stack.pop();
|
|
13852
13865
|
const x = stack.pop();
|
|
13853
|
-
if (false)
|
|
13866
|
+
if (false) // removed by dead control flow
|
|
13867
|
+
{}
|
|
13854
13868
|
state.pv = state.dpv = getUnitVector(x, y);
|
|
13855
13869
|
}
|
|
13856
13870
|
function SFVFS(state) {
|
|
13857
13871
|
const stack = state.stack;
|
|
13858
13872
|
const y = stack.pop();
|
|
13859
13873
|
const x = stack.pop();
|
|
13860
|
-
if (false)
|
|
13874
|
+
if (false) // removed by dead control flow
|
|
13875
|
+
{}
|
|
13861
13876
|
state.fv = getUnitVector(x, y);
|
|
13862
13877
|
}
|
|
13863
13878
|
function GPV(state) {
|
|
13864
13879
|
const stack = state.stack;
|
|
13865
13880
|
const pv = state.pv;
|
|
13866
|
-
if (false)
|
|
13881
|
+
if (false) // removed by dead control flow
|
|
13882
|
+
{}
|
|
13867
13883
|
stack.push(pv.x * 16384);
|
|
13868
13884
|
stack.push(pv.y * 16384);
|
|
13869
13885
|
}
|
|
13870
13886
|
function GFV(state) {
|
|
13871
13887
|
const stack = state.stack;
|
|
13872
13888
|
const fv = state.fv;
|
|
13873
|
-
if (false)
|
|
13889
|
+
if (false) // removed by dead control flow
|
|
13890
|
+
{}
|
|
13874
13891
|
stack.push(fv.x * 16384);
|
|
13875
13892
|
stack.push(fv.y * 16384);
|
|
13876
13893
|
}
|
|
13877
13894
|
function SFVTPV(state) {
|
|
13878
13895
|
state.fv = state.pv;
|
|
13879
|
-
if (false)
|
|
13896
|
+
if (false) // removed by dead control flow
|
|
13897
|
+
{}
|
|
13880
13898
|
}
|
|
13881
13899
|
function ISECT(state) {
|
|
13882
13900
|
const stack = state.stack;
|
|
@@ -13892,7 +13910,8 @@ function ISECT(state) {
|
|
|
13892
13910
|
const pb0 = z1[pb0i];
|
|
13893
13911
|
const pb1 = z1[pb1i];
|
|
13894
13912
|
const p = state.z2[pi];
|
|
13895
|
-
if (false)
|
|
13913
|
+
if (false) // removed by dead control flow
|
|
13914
|
+
{}
|
|
13896
13915
|
const x1 = pa0.x;
|
|
13897
13916
|
const y1 = pa0.y;
|
|
13898
13917
|
const x2 = pa1.x;
|
|
@@ -13909,19 +13928,23 @@ function ISECT(state) {
|
|
|
13909
13928
|
}
|
|
13910
13929
|
function SRP0(state) {
|
|
13911
13930
|
state.rp0 = state.stack.pop();
|
|
13912
|
-
if (false)
|
|
13931
|
+
if (false) // removed by dead control flow
|
|
13932
|
+
{}
|
|
13913
13933
|
}
|
|
13914
13934
|
function SRP1(state) {
|
|
13915
13935
|
state.rp1 = state.stack.pop();
|
|
13916
|
-
if (false)
|
|
13936
|
+
if (false) // removed by dead control flow
|
|
13937
|
+
{}
|
|
13917
13938
|
}
|
|
13918
13939
|
function SRP2(state) {
|
|
13919
13940
|
state.rp2 = state.stack.pop();
|
|
13920
|
-
if (false)
|
|
13941
|
+
if (false) // removed by dead control flow
|
|
13942
|
+
{}
|
|
13921
13943
|
}
|
|
13922
13944
|
function SZP0(state) {
|
|
13923
13945
|
const n = state.stack.pop();
|
|
13924
|
-
if (false)
|
|
13946
|
+
if (false) // removed by dead control flow
|
|
13947
|
+
{}
|
|
13925
13948
|
state.zp0 = n;
|
|
13926
13949
|
switch (n) {
|
|
13927
13950
|
case 0:
|
|
@@ -13937,7 +13960,8 @@ function SZP0(state) {
|
|
|
13937
13960
|
}
|
|
13938
13961
|
function SZP1(state) {
|
|
13939
13962
|
const n = state.stack.pop();
|
|
13940
|
-
if (false)
|
|
13963
|
+
if (false) // removed by dead control flow
|
|
13964
|
+
{}
|
|
13941
13965
|
state.zp1 = n;
|
|
13942
13966
|
switch (n) {
|
|
13943
13967
|
case 0:
|
|
@@ -13953,7 +13977,8 @@ function SZP1(state) {
|
|
|
13953
13977
|
}
|
|
13954
13978
|
function SZP2(state) {
|
|
13955
13979
|
const n = state.stack.pop();
|
|
13956
|
-
if (false)
|
|
13980
|
+
if (false) // removed by dead control flow
|
|
13981
|
+
{}
|
|
13957
13982
|
state.zp2 = n;
|
|
13958
13983
|
switch (n) {
|
|
13959
13984
|
case 0:
|
|
@@ -13969,7 +13994,8 @@ function SZP2(state) {
|
|
|
13969
13994
|
}
|
|
13970
13995
|
function SZPS(state) {
|
|
13971
13996
|
const n = state.stack.pop();
|
|
13972
|
-
if (false)
|
|
13997
|
+
if (false) // removed by dead control flow
|
|
13998
|
+
{}
|
|
13973
13999
|
state.zp0 = state.zp1 = state.zp2 = n;
|
|
13974
14000
|
switch (n) {
|
|
13975
14001
|
case 0:
|
|
@@ -13985,97 +14011,115 @@ function SZPS(state) {
|
|
|
13985
14011
|
}
|
|
13986
14012
|
function SLOOP(state) {
|
|
13987
14013
|
state.loop = state.stack.pop();
|
|
13988
|
-
if (false)
|
|
14014
|
+
if (false) // removed by dead control flow
|
|
14015
|
+
{}
|
|
13989
14016
|
}
|
|
13990
14017
|
function RTG(state) {
|
|
13991
|
-
if (false)
|
|
14018
|
+
if (false) // removed by dead control flow
|
|
14019
|
+
{}
|
|
13992
14020
|
state.round = roundToGrid;
|
|
13993
14021
|
}
|
|
13994
14022
|
function RTHG(state) {
|
|
13995
|
-
if (false)
|
|
14023
|
+
if (false) // removed by dead control flow
|
|
14024
|
+
{}
|
|
13996
14025
|
state.round = roundToHalfGrid;
|
|
13997
14026
|
}
|
|
13998
14027
|
function SMD(state) {
|
|
13999
14028
|
const d = state.stack.pop();
|
|
14000
|
-
if (false)
|
|
14029
|
+
if (false) // removed by dead control flow
|
|
14030
|
+
{}
|
|
14001
14031
|
state.minDis = d / 64;
|
|
14002
14032
|
}
|
|
14003
14033
|
function ELSE(state) {
|
|
14004
|
-
if (false)
|
|
14034
|
+
if (false) // removed by dead control flow
|
|
14035
|
+
{}
|
|
14005
14036
|
skip(state, false);
|
|
14006
14037
|
}
|
|
14007
14038
|
function JMPR(state) {
|
|
14008
14039
|
const o = state.stack.pop();
|
|
14009
|
-
if (false)
|
|
14040
|
+
if (false) // removed by dead control flow
|
|
14041
|
+
{}
|
|
14010
14042
|
state.ip += o - 1;
|
|
14011
14043
|
}
|
|
14012
14044
|
function SCVTCI(state) {
|
|
14013
14045
|
const n = state.stack.pop();
|
|
14014
|
-
if (false)
|
|
14046
|
+
if (false) // removed by dead control flow
|
|
14047
|
+
{}
|
|
14015
14048
|
state.cvCutIn = n / 64;
|
|
14016
14049
|
}
|
|
14017
14050
|
function DUP(state) {
|
|
14018
14051
|
const stack = state.stack;
|
|
14019
|
-
if (false)
|
|
14052
|
+
if (false) // removed by dead control flow
|
|
14053
|
+
{}
|
|
14020
14054
|
stack.push(stack[stack.length - 1]);
|
|
14021
14055
|
}
|
|
14022
14056
|
function POP(state) {
|
|
14023
|
-
if (false)
|
|
14057
|
+
if (false) // removed by dead control flow
|
|
14058
|
+
{}
|
|
14024
14059
|
state.stack.pop();
|
|
14025
14060
|
}
|
|
14026
14061
|
function CLEAR(state) {
|
|
14027
|
-
if (false)
|
|
14062
|
+
if (false) // removed by dead control flow
|
|
14063
|
+
{}
|
|
14028
14064
|
state.stack.length = 0;
|
|
14029
14065
|
}
|
|
14030
14066
|
function SWAP(state) {
|
|
14031
14067
|
const stack = state.stack;
|
|
14032
14068
|
const a = stack.pop();
|
|
14033
14069
|
const b = stack.pop();
|
|
14034
|
-
if (false)
|
|
14070
|
+
if (false) // removed by dead control flow
|
|
14071
|
+
{}
|
|
14035
14072
|
stack.push(a);
|
|
14036
14073
|
stack.push(b);
|
|
14037
14074
|
}
|
|
14038
14075
|
function DEPTH(state) {
|
|
14039
14076
|
const stack = state.stack;
|
|
14040
|
-
if (false)
|
|
14077
|
+
if (false) // removed by dead control flow
|
|
14078
|
+
{}
|
|
14041
14079
|
stack.push(stack.length);
|
|
14042
14080
|
}
|
|
14043
14081
|
function LOOPCALL(state) {
|
|
14044
14082
|
const stack = state.stack;
|
|
14045
14083
|
const fn = stack.pop();
|
|
14046
14084
|
const c = stack.pop();
|
|
14047
|
-
if (false)
|
|
14085
|
+
if (false) // removed by dead control flow
|
|
14086
|
+
{}
|
|
14048
14087
|
const cip = state.ip;
|
|
14049
14088
|
const cprog = state.prog;
|
|
14050
14089
|
state.prog = state.funcs[fn];
|
|
14051
14090
|
for (let i = 0; i < c; i++) {
|
|
14052
14091
|
exec(state);
|
|
14053
|
-
if (false)
|
|
14092
|
+
if (false) // removed by dead control flow
|
|
14093
|
+
{}
|
|
14054
14094
|
}
|
|
14055
14095
|
state.ip = cip;
|
|
14056
14096
|
state.prog = cprog;
|
|
14057
14097
|
}
|
|
14058
14098
|
function CALL(state) {
|
|
14059
14099
|
const fn = state.stack.pop();
|
|
14060
|
-
if (false)
|
|
14100
|
+
if (false) // removed by dead control flow
|
|
14101
|
+
{}
|
|
14061
14102
|
const cip = state.ip;
|
|
14062
14103
|
const cprog = state.prog;
|
|
14063
14104
|
state.prog = state.funcs[fn];
|
|
14064
14105
|
exec(state);
|
|
14065
14106
|
state.ip = cip;
|
|
14066
14107
|
state.prog = cprog;
|
|
14067
|
-
if (false)
|
|
14108
|
+
if (false) // removed by dead control flow
|
|
14109
|
+
{}
|
|
14068
14110
|
}
|
|
14069
14111
|
function CINDEX(state) {
|
|
14070
14112
|
const stack = state.stack;
|
|
14071
14113
|
const k = stack.pop();
|
|
14072
|
-
if (false)
|
|
14114
|
+
if (false) // removed by dead control flow
|
|
14115
|
+
{}
|
|
14073
14116
|
stack.push(stack[stack.length - k]);
|
|
14074
14117
|
}
|
|
14075
14118
|
function MINDEX(state) {
|
|
14076
14119
|
const stack = state.stack;
|
|
14077
14120
|
const k = stack.pop();
|
|
14078
|
-
if (false)
|
|
14121
|
+
if (false) // removed by dead control flow
|
|
14122
|
+
{}
|
|
14079
14123
|
stack.push(stack.splice(stack.length - k, 1)[0]);
|
|
14080
14124
|
}
|
|
14081
14125
|
function FDEF(state) {
|
|
@@ -14085,7 +14129,8 @@ function FDEF(state) {
|
|
|
14085
14129
|
let ip = state.ip;
|
|
14086
14130
|
const fn = stack.pop();
|
|
14087
14131
|
const ipBegin = ip;
|
|
14088
|
-
if (false)
|
|
14132
|
+
if (false) // removed by dead control flow
|
|
14133
|
+
{}
|
|
14089
14134
|
while (prog[++ip] !== 45) ;
|
|
14090
14135
|
state.ip = ip;
|
|
14091
14136
|
state.funcs[fn] = prog.slice(ipBegin + 1, ip);
|
|
@@ -14095,7 +14140,8 @@ function MDAP(round, state) {
|
|
|
14095
14140
|
const p = state.z0[pi];
|
|
14096
14141
|
const fv = state.fv;
|
|
14097
14142
|
const pv = state.pv;
|
|
14098
|
-
if (false)
|
|
14143
|
+
if (false) // removed by dead control flow
|
|
14144
|
+
{}
|
|
14099
14145
|
let d = pv.distance(p, HPZero);
|
|
14100
14146
|
if (round) d = state.round(d);
|
|
14101
14147
|
fv.setRelative(p, HPZero, d, pv);
|
|
@@ -14108,7 +14154,8 @@ function IUP(v, state) {
|
|
|
14108
14154
|
let cp;
|
|
14109
14155
|
let pp;
|
|
14110
14156
|
let np;
|
|
14111
|
-
if (false)
|
|
14157
|
+
if (false) // removed by dead control flow
|
|
14158
|
+
{}
|
|
14112
14159
|
for (let i = 0; i < pLen; i++) {
|
|
14113
14160
|
cp = z2[i];
|
|
14114
14161
|
if (v.touched(cp)) continue;
|
|
@@ -14135,7 +14182,8 @@ function SHP(a, state) {
|
|
|
14135
14182
|
const d = pv.distance(rp, rp, false, true);
|
|
14136
14183
|
fv.setRelative(p, p, d, pv);
|
|
14137
14184
|
fv.touch(p);
|
|
14138
|
-
if (false)
|
|
14185
|
+
if (false) // removed by dead control flow
|
|
14186
|
+
{}
|
|
14139
14187
|
}
|
|
14140
14188
|
state.loop = 1;
|
|
14141
14189
|
}
|
|
@@ -14148,7 +14196,8 @@ function SHC(a, state) {
|
|
|
14148
14196
|
const ci = stack.pop();
|
|
14149
14197
|
const sp = state.z2[state.contours[ci]];
|
|
14150
14198
|
let p = sp;
|
|
14151
|
-
if (false)
|
|
14199
|
+
if (false) // removed by dead control flow
|
|
14200
|
+
{}
|
|
14152
14201
|
const d = pv.distance(rp, rp, false, true);
|
|
14153
14202
|
do {
|
|
14154
14203
|
if (p !== rp) fv.setRelative(p, p, d, pv);
|
|
@@ -14162,7 +14211,8 @@ function SHZ(a, state) {
|
|
|
14162
14211
|
const fv = state.fv;
|
|
14163
14212
|
const pv = state.pv;
|
|
14164
14213
|
const e = stack.pop();
|
|
14165
|
-
if (false)
|
|
14214
|
+
if (false) // removed by dead control flow
|
|
14215
|
+
{}
|
|
14166
14216
|
let z;
|
|
14167
14217
|
switch (e) {
|
|
14168
14218
|
case 0:
|
|
@@ -14191,7 +14241,8 @@ function SHPIX(state) {
|
|
|
14191
14241
|
while (loop--) {
|
|
14192
14242
|
const pi = stack.pop();
|
|
14193
14243
|
const p = z2[pi];
|
|
14194
|
-
if (false)
|
|
14244
|
+
if (false) // removed by dead control flow
|
|
14245
|
+
{}
|
|
14195
14246
|
fv.setRelative(p, p, d);
|
|
14196
14247
|
fv.touch(p);
|
|
14197
14248
|
}
|
|
@@ -14210,7 +14261,8 @@ function IP(state) {
|
|
|
14210
14261
|
while (loop--) {
|
|
14211
14262
|
const pi = stack.pop();
|
|
14212
14263
|
const p = z2[pi];
|
|
14213
|
-
if (false)
|
|
14264
|
+
if (false) // removed by dead control flow
|
|
14265
|
+
{}
|
|
14214
14266
|
fv.interpolate(p, rp1, rp2, pv);
|
|
14215
14267
|
fv.touch(p);
|
|
14216
14268
|
}
|
|
@@ -14226,7 +14278,8 @@ function MSIRP(a, state) {
|
|
|
14226
14278
|
const pv = state.pv;
|
|
14227
14279
|
fv.setRelative(p, rp0, d, pv);
|
|
14228
14280
|
fv.touch(p);
|
|
14229
|
-
if (false)
|
|
14281
|
+
if (false) // removed by dead control flow
|
|
14282
|
+
{}
|
|
14230
14283
|
state.rp1 = state.rp0;
|
|
14231
14284
|
state.rp2 = pi;
|
|
14232
14285
|
if (a) state.rp0 = pi;
|
|
@@ -14242,14 +14295,16 @@ function ALIGNRP(state) {
|
|
|
14242
14295
|
while (loop--) {
|
|
14243
14296
|
const pi = stack.pop();
|
|
14244
14297
|
const p = z1[pi];
|
|
14245
|
-
if (false)
|
|
14298
|
+
if (false) // removed by dead control flow
|
|
14299
|
+
{}
|
|
14246
14300
|
fv.setRelative(p, rp0, 0, pv);
|
|
14247
14301
|
fv.touch(p);
|
|
14248
14302
|
}
|
|
14249
14303
|
state.loop = 1;
|
|
14250
14304
|
}
|
|
14251
14305
|
function RTDG(state) {
|
|
14252
|
-
if (false)
|
|
14306
|
+
if (false) // removed by dead control flow
|
|
14307
|
+
{}
|
|
14253
14308
|
state.round = roundToDoubleGrid;
|
|
14254
14309
|
}
|
|
14255
14310
|
function MIAP(round, state) {
|
|
@@ -14260,7 +14315,8 @@ function MIAP(round, state) {
|
|
|
14260
14315
|
const fv = state.fv;
|
|
14261
14316
|
const pv = state.pv;
|
|
14262
14317
|
let cv = state.cvt[n];
|
|
14263
|
-
if (false)
|
|
14318
|
+
if (false) // removed by dead control flow
|
|
14319
|
+
{}
|
|
14264
14320
|
let d = pv.distance(p, HPZero);
|
|
14265
14321
|
if (round) {
|
|
14266
14322
|
if (Math.abs(d - cv) < state.cvCutIn) d = cv;
|
|
@@ -14279,7 +14335,8 @@ function NPUSHB(state) {
|
|
|
14279
14335
|
let ip = state.ip;
|
|
14280
14336
|
const stack = state.stack;
|
|
14281
14337
|
const n = prog[++ip];
|
|
14282
|
-
if (false)
|
|
14338
|
+
if (false) // removed by dead control flow
|
|
14339
|
+
{}
|
|
14283
14340
|
for (let i = 0; i < n; i++) stack.push(prog[++ip]);
|
|
14284
14341
|
state.ip = ip;
|
|
14285
14342
|
}
|
|
@@ -14288,7 +14345,8 @@ function NPUSHW(state) {
|
|
|
14288
14345
|
const prog = state.prog;
|
|
14289
14346
|
const stack = state.stack;
|
|
14290
14347
|
const n = prog[++ip];
|
|
14291
|
-
if (false)
|
|
14348
|
+
if (false) // removed by dead control flow
|
|
14349
|
+
{}
|
|
14292
14350
|
for (let i = 0; i < n; i++) {
|
|
14293
14351
|
let w = prog[++ip] << 8 | prog[++ip];
|
|
14294
14352
|
if (w & 32768) w = -((w ^ 65535) + 1);
|
|
@@ -14302,14 +14360,16 @@ function WS(state) {
|
|
|
14302
14360
|
if (!store) store = state.store = [];
|
|
14303
14361
|
const v = stack.pop();
|
|
14304
14362
|
const l = stack.pop();
|
|
14305
|
-
if (false)
|
|
14363
|
+
if (false) // removed by dead control flow
|
|
14364
|
+
{}
|
|
14306
14365
|
store[l] = v;
|
|
14307
14366
|
}
|
|
14308
14367
|
function RS(state) {
|
|
14309
14368
|
const stack = state.stack;
|
|
14310
14369
|
const store = state.store;
|
|
14311
14370
|
const l = stack.pop();
|
|
14312
|
-
if (false)
|
|
14371
|
+
if (false) // removed by dead control flow
|
|
14372
|
+
{}
|
|
14313
14373
|
const v = store && store[l] || 0;
|
|
14314
14374
|
stack.push(v);
|
|
14315
14375
|
}
|
|
@@ -14317,20 +14377,23 @@ function WCVTP(state) {
|
|
|
14317
14377
|
const stack = state.stack;
|
|
14318
14378
|
const v = stack.pop();
|
|
14319
14379
|
const l = stack.pop();
|
|
14320
|
-
if (false)
|
|
14380
|
+
if (false) // removed by dead control flow
|
|
14381
|
+
{}
|
|
14321
14382
|
state.cvt[l] = v / 64;
|
|
14322
14383
|
}
|
|
14323
14384
|
function RCVT(state) {
|
|
14324
14385
|
const stack = state.stack;
|
|
14325
14386
|
const cvte = stack.pop();
|
|
14326
|
-
if (false)
|
|
14387
|
+
if (false) // removed by dead control flow
|
|
14388
|
+
{}
|
|
14327
14389
|
stack.push(state.cvt[cvte] * 64);
|
|
14328
14390
|
}
|
|
14329
14391
|
function GC(a, state) {
|
|
14330
14392
|
const stack = state.stack;
|
|
14331
14393
|
const pi = stack.pop();
|
|
14332
14394
|
const p = state.z2[pi];
|
|
14333
|
-
if (false)
|
|
14395
|
+
if (false) // removed by dead control flow
|
|
14396
|
+
{}
|
|
14334
14397
|
stack.push(state.dpv.distance(p, HPZero, a, false) * 64);
|
|
14335
14398
|
}
|
|
14336
14399
|
function MD(a, state) {
|
|
@@ -14340,101 +14403,118 @@ function MD(a, state) {
|
|
|
14340
14403
|
const p2 = state.z1[pi2];
|
|
14341
14404
|
const p1 = state.z0[pi1];
|
|
14342
14405
|
const d = state.dpv.distance(p1, p2, a, a);
|
|
14343
|
-
if (false)
|
|
14406
|
+
if (false) // removed by dead control flow
|
|
14407
|
+
{}
|
|
14344
14408
|
state.stack.push(Math.round(d * 64));
|
|
14345
14409
|
}
|
|
14346
14410
|
function MPPEM(state) {
|
|
14347
|
-
if (false)
|
|
14411
|
+
if (false) // removed by dead control flow
|
|
14412
|
+
{}
|
|
14348
14413
|
state.stack.push(state.ppem);
|
|
14349
14414
|
}
|
|
14350
14415
|
function FLIPON(state) {
|
|
14351
|
-
if (false)
|
|
14416
|
+
if (false) // removed by dead control flow
|
|
14417
|
+
{}
|
|
14352
14418
|
state.autoFlip = true;
|
|
14353
14419
|
}
|
|
14354
14420
|
function LT(state) {
|
|
14355
14421
|
const stack = state.stack;
|
|
14356
14422
|
const e2 = stack.pop();
|
|
14357
14423
|
const e1 = stack.pop();
|
|
14358
|
-
if (false)
|
|
14424
|
+
if (false) // removed by dead control flow
|
|
14425
|
+
{}
|
|
14359
14426
|
stack.push(e1 < e2 ? 1 : 0);
|
|
14360
14427
|
}
|
|
14361
14428
|
function LTEQ(state) {
|
|
14362
14429
|
const stack = state.stack;
|
|
14363
14430
|
const e2 = stack.pop();
|
|
14364
14431
|
const e1 = stack.pop();
|
|
14365
|
-
if (false)
|
|
14432
|
+
if (false) // removed by dead control flow
|
|
14433
|
+
{}
|
|
14366
14434
|
stack.push(e1 <= e2 ? 1 : 0);
|
|
14367
14435
|
}
|
|
14368
14436
|
function GT(state) {
|
|
14369
14437
|
const stack = state.stack;
|
|
14370
14438
|
const e2 = stack.pop();
|
|
14371
14439
|
const e1 = stack.pop();
|
|
14372
|
-
if (false)
|
|
14440
|
+
if (false) // removed by dead control flow
|
|
14441
|
+
{}
|
|
14373
14442
|
stack.push(e1 > e2 ? 1 : 0);
|
|
14374
14443
|
}
|
|
14375
14444
|
function GTEQ(state) {
|
|
14376
14445
|
const stack = state.stack;
|
|
14377
14446
|
const e2 = stack.pop();
|
|
14378
14447
|
const e1 = stack.pop();
|
|
14379
|
-
if (false)
|
|
14448
|
+
if (false) // removed by dead control flow
|
|
14449
|
+
{}
|
|
14380
14450
|
stack.push(e1 >= e2 ? 1 : 0);
|
|
14381
14451
|
}
|
|
14382
14452
|
function EQ(state) {
|
|
14383
14453
|
const stack = state.stack;
|
|
14384
14454
|
const e2 = stack.pop();
|
|
14385
14455
|
const e1 = stack.pop();
|
|
14386
|
-
if (false)
|
|
14456
|
+
if (false) // removed by dead control flow
|
|
14457
|
+
{}
|
|
14387
14458
|
stack.push(e2 === e1 ? 1 : 0);
|
|
14388
14459
|
}
|
|
14389
14460
|
function NEQ(state) {
|
|
14390
14461
|
const stack = state.stack;
|
|
14391
14462
|
const e2 = stack.pop();
|
|
14392
14463
|
const e1 = stack.pop();
|
|
14393
|
-
if (false)
|
|
14464
|
+
if (false) // removed by dead control flow
|
|
14465
|
+
{}
|
|
14394
14466
|
stack.push(e2 !== e1 ? 1 : 0);
|
|
14395
14467
|
}
|
|
14396
14468
|
function ODD(state) {
|
|
14397
14469
|
const stack = state.stack;
|
|
14398
14470
|
const n = stack.pop();
|
|
14399
|
-
if (false)
|
|
14471
|
+
if (false) // removed by dead control flow
|
|
14472
|
+
{}
|
|
14400
14473
|
stack.push(Math.trunc(n) & 1 ? 1 : 0);
|
|
14401
14474
|
}
|
|
14402
14475
|
function EVEN(state) {
|
|
14403
14476
|
const stack = state.stack;
|
|
14404
14477
|
const n = stack.pop();
|
|
14405
|
-
if (false)
|
|
14478
|
+
if (false) // removed by dead control flow
|
|
14479
|
+
{}
|
|
14406
14480
|
stack.push(Math.trunc(n) & 1 ? 0 : 1);
|
|
14407
14481
|
}
|
|
14408
14482
|
function IF(state) {
|
|
14409
14483
|
let test = state.stack.pop();
|
|
14410
14484
|
let ins;
|
|
14411
|
-
if (false)
|
|
14485
|
+
if (false) // removed by dead control flow
|
|
14486
|
+
{}
|
|
14412
14487
|
if (!test) {
|
|
14413
14488
|
skip(state, true);
|
|
14414
|
-
if (false)
|
|
14489
|
+
if (false) // removed by dead control flow
|
|
14490
|
+
{}
|
|
14415
14491
|
}
|
|
14416
14492
|
}
|
|
14417
14493
|
function EIF(state) {
|
|
14418
|
-
if (false)
|
|
14494
|
+
if (false) // removed by dead control flow
|
|
14495
|
+
{}
|
|
14419
14496
|
}
|
|
14420
14497
|
function AND(state) {
|
|
14421
14498
|
const stack = state.stack;
|
|
14422
14499
|
const e2 = stack.pop();
|
|
14423
14500
|
const e1 = stack.pop();
|
|
14424
|
-
if (false)
|
|
14501
|
+
if (false) // removed by dead control flow
|
|
14502
|
+
{}
|
|
14425
14503
|
stack.push(e2 && e1 ? 1 : 0);
|
|
14426
14504
|
}
|
|
14427
14505
|
function OR(state) {
|
|
14428
14506
|
const stack = state.stack;
|
|
14429
14507
|
const e2 = stack.pop();
|
|
14430
14508
|
const e1 = stack.pop();
|
|
14431
|
-
if (false)
|
|
14509
|
+
if (false) // removed by dead control flow
|
|
14510
|
+
{}
|
|
14432
14511
|
stack.push(e2 || e1 ? 1 : 0);
|
|
14433
14512
|
}
|
|
14434
14513
|
function NOT(state) {
|
|
14435
14514
|
const stack = state.stack;
|
|
14436
14515
|
const e = stack.pop();
|
|
14437
|
-
if (false)
|
|
14516
|
+
if (false) // removed by dead control flow
|
|
14517
|
+
{}
|
|
14438
14518
|
stack.push(e ? 0 : 1);
|
|
14439
14519
|
}
|
|
14440
14520
|
function DELTAP123(b, state) {
|
|
@@ -14446,7 +14526,8 @@ function DELTAP123(b, state) {
|
|
|
14446
14526
|
const base = state.deltaBase + (b - 1) * 16;
|
|
14447
14527
|
const ds = state.deltaShift;
|
|
14448
14528
|
const z0 = state.z0;
|
|
14449
|
-
if (false)
|
|
14529
|
+
if (false) // removed by dead control flow
|
|
14530
|
+
{}
|
|
14450
14531
|
for (let i = 0; i < n; i++) {
|
|
14451
14532
|
const pi = stack.pop();
|
|
14452
14533
|
const arg = stack.pop();
|
|
@@ -14454,7 +14535,8 @@ function DELTAP123(b, state) {
|
|
|
14454
14535
|
if (appem !== ppem) continue;
|
|
14455
14536
|
let mag = (arg & 15) - 8;
|
|
14456
14537
|
if (mag >= 0) mag++;
|
|
14457
|
-
if (false)
|
|
14538
|
+
if (false) // removed by dead control flow
|
|
14539
|
+
{}
|
|
14458
14540
|
const p = z0[pi];
|
|
14459
14541
|
fv.setRelative(p, p, mag * ds, pv);
|
|
14460
14542
|
}
|
|
@@ -14462,78 +14544,90 @@ function DELTAP123(b, state) {
|
|
|
14462
14544
|
function SDB(state) {
|
|
14463
14545
|
const stack = state.stack;
|
|
14464
14546
|
const n = stack.pop();
|
|
14465
|
-
if (false)
|
|
14547
|
+
if (false) // removed by dead control flow
|
|
14548
|
+
{}
|
|
14466
14549
|
state.deltaBase = n;
|
|
14467
14550
|
}
|
|
14468
14551
|
function SDS(state) {
|
|
14469
14552
|
const stack = state.stack;
|
|
14470
14553
|
const n = stack.pop();
|
|
14471
|
-
if (false)
|
|
14554
|
+
if (false) // removed by dead control flow
|
|
14555
|
+
{}
|
|
14472
14556
|
state.deltaShift = Math.pow(0.5, n);
|
|
14473
14557
|
}
|
|
14474
14558
|
function ADD(state) {
|
|
14475
14559
|
const stack = state.stack;
|
|
14476
14560
|
const n2 = stack.pop();
|
|
14477
14561
|
const n1 = stack.pop();
|
|
14478
|
-
if (false)
|
|
14562
|
+
if (false) // removed by dead control flow
|
|
14563
|
+
{}
|
|
14479
14564
|
stack.push(n1 + n2);
|
|
14480
14565
|
}
|
|
14481
14566
|
function SUB(state) {
|
|
14482
14567
|
const stack = state.stack;
|
|
14483
14568
|
const n2 = stack.pop();
|
|
14484
14569
|
const n1 = stack.pop();
|
|
14485
|
-
if (false)
|
|
14570
|
+
if (false) // removed by dead control flow
|
|
14571
|
+
{}
|
|
14486
14572
|
stack.push(n1 - n2);
|
|
14487
14573
|
}
|
|
14488
14574
|
function DIV(state) {
|
|
14489
14575
|
const stack = state.stack;
|
|
14490
14576
|
const n2 = stack.pop();
|
|
14491
14577
|
const n1 = stack.pop();
|
|
14492
|
-
if (false)
|
|
14578
|
+
if (false) // removed by dead control flow
|
|
14579
|
+
{}
|
|
14493
14580
|
stack.push(n1 * 64 / n2);
|
|
14494
14581
|
}
|
|
14495
14582
|
function MUL(state) {
|
|
14496
14583
|
const stack = state.stack;
|
|
14497
14584
|
const n2 = stack.pop();
|
|
14498
14585
|
const n1 = stack.pop();
|
|
14499
|
-
if (false)
|
|
14586
|
+
if (false) // removed by dead control flow
|
|
14587
|
+
{}
|
|
14500
14588
|
stack.push(n1 * n2 / 64);
|
|
14501
14589
|
}
|
|
14502
14590
|
function ABS(state) {
|
|
14503
14591
|
const stack = state.stack;
|
|
14504
14592
|
const n = stack.pop();
|
|
14505
|
-
if (false)
|
|
14593
|
+
if (false) // removed by dead control flow
|
|
14594
|
+
{}
|
|
14506
14595
|
stack.push(Math.abs(n));
|
|
14507
14596
|
}
|
|
14508
14597
|
function NEG(state) {
|
|
14509
14598
|
const stack = state.stack;
|
|
14510
14599
|
let n = stack.pop();
|
|
14511
|
-
if (false)
|
|
14600
|
+
if (false) // removed by dead control flow
|
|
14601
|
+
{}
|
|
14512
14602
|
stack.push(-n);
|
|
14513
14603
|
}
|
|
14514
14604
|
function FLOOR(state) {
|
|
14515
14605
|
const stack = state.stack;
|
|
14516
14606
|
const n = stack.pop();
|
|
14517
|
-
if (false)
|
|
14607
|
+
if (false) // removed by dead control flow
|
|
14608
|
+
{}
|
|
14518
14609
|
stack.push(Math.floor(n / 64) * 64);
|
|
14519
14610
|
}
|
|
14520
14611
|
function CEILING(state) {
|
|
14521
14612
|
const stack = state.stack;
|
|
14522
14613
|
const n = stack.pop();
|
|
14523
|
-
if (false)
|
|
14614
|
+
if (false) // removed by dead control flow
|
|
14615
|
+
{}
|
|
14524
14616
|
stack.push(Math.ceil(n / 64) * 64);
|
|
14525
14617
|
}
|
|
14526
14618
|
function ROUND(dt, state) {
|
|
14527
14619
|
const stack = state.stack;
|
|
14528
14620
|
const n = stack.pop();
|
|
14529
|
-
if (false)
|
|
14621
|
+
if (false) // removed by dead control flow
|
|
14622
|
+
{}
|
|
14530
14623
|
stack.push(state.round(n / 64) * 64);
|
|
14531
14624
|
}
|
|
14532
14625
|
function WCVTF(state) {
|
|
14533
14626
|
const stack = state.stack;
|
|
14534
14627
|
const v = stack.pop();
|
|
14535
14628
|
const l = stack.pop();
|
|
14536
|
-
if (false)
|
|
14629
|
+
if (false) // removed by dead control flow
|
|
14630
|
+
{}
|
|
14537
14631
|
state.cvt[l] = v * state.ppem / state.font.unitsPerEm;
|
|
14538
14632
|
}
|
|
14539
14633
|
function DELTAC123(b, state) {
|
|
@@ -14542,7 +14636,8 @@ function DELTAC123(b, state) {
|
|
|
14542
14636
|
const ppem = state.ppem;
|
|
14543
14637
|
const base = state.deltaBase + (b - 1) * 16;
|
|
14544
14638
|
const ds = state.deltaShift;
|
|
14545
|
-
if (false)
|
|
14639
|
+
if (false) // removed by dead control flow
|
|
14640
|
+
{}
|
|
14546
14641
|
for (let i = 0; i < n; i++) {
|
|
14547
14642
|
const c = stack.pop();
|
|
14548
14643
|
const arg = stack.pop();
|
|
@@ -14551,13 +14646,15 @@ function DELTAC123(b, state) {
|
|
|
14551
14646
|
let mag = (arg & 15) - 8;
|
|
14552
14647
|
if (mag >= 0) mag++;
|
|
14553
14648
|
const delta = mag * ds;
|
|
14554
|
-
if (false)
|
|
14649
|
+
if (false) // removed by dead control flow
|
|
14650
|
+
{}
|
|
14555
14651
|
state.cvt[c] += delta;
|
|
14556
14652
|
}
|
|
14557
14653
|
}
|
|
14558
14654
|
function SROUND(state) {
|
|
14559
14655
|
let n = state.stack.pop();
|
|
14560
|
-
if (false)
|
|
14656
|
+
if (false) // removed by dead control flow
|
|
14657
|
+
{}
|
|
14561
14658
|
state.round = roundSuper;
|
|
14562
14659
|
let period;
|
|
14563
14660
|
switch (n & 192) {
|
|
@@ -14596,7 +14693,8 @@ function SROUND(state) {
|
|
|
14596
14693
|
}
|
|
14597
14694
|
function S45ROUND(state) {
|
|
14598
14695
|
let n = state.stack.pop();
|
|
14599
|
-
if (false)
|
|
14696
|
+
if (false) // removed by dead control flow
|
|
14697
|
+
{}
|
|
14600
14698
|
state.round = roundSuper;
|
|
14601
14699
|
let period;
|
|
14602
14700
|
switch (n & 192) {
|
|
@@ -14634,20 +14732,24 @@ function S45ROUND(state) {
|
|
|
14634
14732
|
else state.srThreshold = (n / 8 - 0.5) * period;
|
|
14635
14733
|
}
|
|
14636
14734
|
function ROFF(state) {
|
|
14637
|
-
if (false)
|
|
14735
|
+
if (false) // removed by dead control flow
|
|
14736
|
+
{}
|
|
14638
14737
|
state.round = roundOff;
|
|
14639
14738
|
}
|
|
14640
14739
|
function RUTG(state) {
|
|
14641
|
-
if (false)
|
|
14740
|
+
if (false) // removed by dead control flow
|
|
14741
|
+
{}
|
|
14642
14742
|
state.round = roundUpToGrid;
|
|
14643
14743
|
}
|
|
14644
14744
|
function RDTG(state) {
|
|
14645
|
-
if (false)
|
|
14745
|
+
if (false) // removed by dead control flow
|
|
14746
|
+
{}
|
|
14646
14747
|
state.round = roundDownToGrid;
|
|
14647
14748
|
}
|
|
14648
14749
|
function SCANCTRL(state) {
|
|
14649
14750
|
const n = state.stack.pop();
|
|
14650
|
-
if (false)
|
|
14751
|
+
if (false) // removed by dead control flow
|
|
14752
|
+
{}
|
|
14651
14753
|
}
|
|
14652
14754
|
function SDPVTL(a, state) {
|
|
14653
14755
|
const stack = state.stack;
|
|
@@ -14655,7 +14757,8 @@ function SDPVTL(a, state) {
|
|
|
14655
14757
|
const p1i = stack.pop();
|
|
14656
14758
|
const p2 = state.z2[p2i];
|
|
14657
14759
|
const p1 = state.z1[p1i];
|
|
14658
|
-
if (false)
|
|
14760
|
+
if (false) // removed by dead control flow
|
|
14761
|
+
{}
|
|
14659
14762
|
let dx;
|
|
14660
14763
|
let dy;
|
|
14661
14764
|
if (!a) {
|
|
@@ -14671,7 +14774,8 @@ function GETINFO(state) {
|
|
|
14671
14774
|
const stack = state.stack;
|
|
14672
14775
|
const sel = stack.pop();
|
|
14673
14776
|
let r = 0;
|
|
14674
|
-
if (false)
|
|
14777
|
+
if (false) // removed by dead control flow
|
|
14778
|
+
{}
|
|
14675
14779
|
if (sel & 1) r = 35;
|
|
14676
14780
|
if (sel & 32) r |= 4096;
|
|
14677
14781
|
stack.push(r);
|
|
@@ -14681,7 +14785,8 @@ function ROLL(state) {
|
|
|
14681
14785
|
const a = stack.pop();
|
|
14682
14786
|
const b = stack.pop();
|
|
14683
14787
|
const c = stack.pop();
|
|
14684
|
-
if (false)
|
|
14788
|
+
if (false) // removed by dead control flow
|
|
14789
|
+
{}
|
|
14685
14790
|
stack.push(b);
|
|
14686
14791
|
stack.push(a);
|
|
14687
14792
|
stack.push(c);
|
|
@@ -14690,24 +14795,28 @@ function MAX(state) {
|
|
|
14690
14795
|
const stack = state.stack;
|
|
14691
14796
|
const e2 = stack.pop();
|
|
14692
14797
|
const e1 = stack.pop();
|
|
14693
|
-
if (false)
|
|
14798
|
+
if (false) // removed by dead control flow
|
|
14799
|
+
{}
|
|
14694
14800
|
stack.push(Math.max(e1, e2));
|
|
14695
14801
|
}
|
|
14696
14802
|
function MIN(state) {
|
|
14697
14803
|
const stack = state.stack;
|
|
14698
14804
|
const e2 = stack.pop();
|
|
14699
14805
|
const e1 = stack.pop();
|
|
14700
|
-
if (false)
|
|
14806
|
+
if (false) // removed by dead control flow
|
|
14807
|
+
{}
|
|
14701
14808
|
stack.push(Math.min(e1, e2));
|
|
14702
14809
|
}
|
|
14703
14810
|
function SCANTYPE(state) {
|
|
14704
14811
|
const n = state.stack.pop();
|
|
14705
|
-
if (false)
|
|
14812
|
+
if (false) // removed by dead control flow
|
|
14813
|
+
{}
|
|
14706
14814
|
}
|
|
14707
14815
|
function INSTCTRL(state) {
|
|
14708
14816
|
const s = state.stack.pop();
|
|
14709
14817
|
let v = state.stack.pop();
|
|
14710
|
-
if (false)
|
|
14818
|
+
if (false) // removed by dead control flow
|
|
14819
|
+
{}
|
|
14711
14820
|
switch (s) {
|
|
14712
14821
|
case 1:
|
|
14713
14822
|
state.inhibitGridFit = !!v;
|
|
@@ -14723,7 +14832,8 @@ function PUSHB(n, state) {
|
|
|
14723
14832
|
const stack = state.stack;
|
|
14724
14833
|
const prog = state.prog;
|
|
14725
14834
|
let ip = state.ip;
|
|
14726
|
-
if (false)
|
|
14835
|
+
if (false) // removed by dead control flow
|
|
14836
|
+
{}
|
|
14727
14837
|
for (let i = 0; i < n; i++) stack.push(prog[++ip]);
|
|
14728
14838
|
state.ip = ip;
|
|
14729
14839
|
}
|
|
@@ -14731,7 +14841,8 @@ function PUSHW(n, state) {
|
|
|
14731
14841
|
let ip = state.ip;
|
|
14732
14842
|
const prog = state.prog;
|
|
14733
14843
|
const stack = state.stack;
|
|
14734
|
-
if (false)
|
|
14844
|
+
if (false) // removed by dead control flow
|
|
14845
|
+
{}
|
|
14735
14846
|
for (let i = 0; i < n; i++) {
|
|
14736
14847
|
let w = prog[++ip] << 8 | prog[++ip];
|
|
14737
14848
|
if (w & 32768) w = -((w ^ 65535) + 1);
|
|
@@ -14764,7 +14875,8 @@ function MDRP_MIRP(indirect, setRp0, keepD, ro, dt, state) {
|
|
|
14764
14875
|
if (ro) d = state.round(d);
|
|
14765
14876
|
fv.setRelative(p, rp, sign * d, pv);
|
|
14766
14877
|
fv.touch(p);
|
|
14767
|
-
if (false)
|
|
14878
|
+
if (false) // removed by dead control flow
|
|
14879
|
+
{}
|
|
14768
14880
|
state.rp1 = state.rp0;
|
|
14769
14881
|
state.rp2 = pi;
|
|
14770
14882
|
if (setRp0) state.rp0 = pi;
|