Skip to content

Commit d1fbab8

Browse files
chore: Release v2.6.100 dist files
1 parent 7a4d724 commit d1fbab8

File tree

6 files changed

+172
-38
lines changed

6 files changed

+172
-38
lines changed

dist/xeokit-sdk.cjs.js

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
2-
* xeokit-sdk v2.6.99
3-
* Commit: 916f60d2984c01eda311e05589b978ba8b5ad37c
4-
* Built: 2025-12-09T13:35:07.666Z
2+
* xeokit-sdk v2.6.100
3+
* Commit: 7a4d724a55a508d0bb365f751ff9e10dddfe9af8
4+
* Built: 2025-12-12T13:41:47.433Z
55
*/
66

77
if (typeof window !== 'undefined') {
8-
window.__XEOKIT__ = { version: '2.6.99', commit: '916f60d2984c01eda311e05589b978ba8b5ad37c', built: '2025-12-09T13:35:07.666Z' };
8+
window.__XEOKIT__ = { version: '2.6.100', commit: '7a4d724a55a508d0bb365f751ff9e10dddfe9af8', built: '2025-12-12T13:41:47.433Z' };
99
}
1010

1111
'use strict';
@@ -2217,6 +2217,16 @@ const math = {
22172217
return a;
22182218
},
22192219

2220+
/**
2221+
* Returns true if the two 2-element vectors are the same.
2222+
* @param v1
2223+
* @param v2
2224+
* @returns {Boolean}
2225+
*/
2226+
compareVec2(v1, v2) {
2227+
return (v1[0] === v2[0] && v1[1] === v2[1]);
2228+
},
2229+
22202230
/**
22212231
* Returns true if the two 3-element vectors are the same.
22222232
* @param v1
@@ -2314,6 +2324,24 @@ const math = {
23142324
return dest;
23152325
},
23162326

2327+
/**
2328+
* Adds one two-element vector to another.
2329+
* @method addVec3
2330+
* @static
2331+
* @param {Array(Number)} u First vector
2332+
* @param {Array(Number)} v Second vector
2333+
* @param {Array(Number)} [dest] Destination vector
2334+
* @return {Array(Number)} dest if specified, u otherwise
2335+
*/
2336+
addVec2(u, v, dest) {
2337+
if (!dest) {
2338+
dest = u;
2339+
}
2340+
dest[0] = u[0] + v[0];
2341+
dest[1] = u[1] + v[1];
2342+
return dest;
2343+
},
2344+
23172345
/**
23182346
* Adds one three-element vector to another.
23192347
* @method addVec3
@@ -2468,8 +2496,26 @@ const math = {
24682496
},
24692497

24702498
/**
2471-
* Multiplies one three-element vector by another.
2472-
* @method mulVec3
2499+
* Multiplies one two-element vector by another.
2500+
* @method mulVec2
2501+
* @static
2502+
* @param {Array(Number)} u First vector
2503+
* @param {Array(Number)} v Second vector
2504+
* @param {Array(Number)} [dest] Destination vector
2505+
* @return {Array(Number)} dest if specified, u otherwise
2506+
*/
2507+
mulVec2(u, v, dest) {
2508+
if (!dest) {
2509+
dest = u;
2510+
}
2511+
dest[0] = u[0] * v[0];
2512+
dest[1] = u[1] * v[1];
2513+
return dest;
2514+
},
2515+
2516+
/**
2517+
* Multiplies one four-element vector by another.
2518+
* @method mulVec4
24732519
* @static
24742520
* @param {Array(Number)} u First vector
24752521
* @param {Array(Number)} v Second vector
@@ -25616,6 +25662,7 @@ class Texture2D {
2561625662
if (props.unpackAlignment !== undefined) {
2561725663
this.unpackAlignment = props.unpackAlignment;
2561825664
}
25665+
this.maxAnisotropy = props.maxAnisotropy;
2561925666
if (props.minFilter !== undefined) {
2562025667
this.minFilter = props.minFilter;
2562125668
}
@@ -25647,6 +25694,12 @@ class Texture2D {
2564725694

2564825695
const bak4 = gl.getParameter(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL); gl.pixelStorei(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL, gl.NONE);
2564925696

25697+
const anisoExt = this.maxAnisotropy && getExtension(gl, "EXT_texture_filter_anisotropic");
25698+
if (anisoExt) {
25699+
const max = gl.getParameter(anisoExt.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
25700+
gl.texParameterf(gl.TEXTURE_2D, anisoExt.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(max, this.maxAnisotropy));
25701+
}
25702+
2565025703
const minFilter = convertConstant(gl, this.minFilter);
2565125704
gl.texParameteri(this.target, gl.TEXTURE_MIN_FILTER, minFilter);
2565225705

@@ -26038,6 +26091,7 @@ class Texture extends Component {
2603826091
* @param {HTMLImageElement} [cfg.image=null] HTML Image object to load into this Texture. See the {@link Texture#image} property for more info.
2603926092
* @param {Number} [cfg.minFilter=LinearMipmapLinearFilter] How the texture is sampled when a texel covers less than one pixel.
2604026093
* Supported values are {@link LinearMipmapLinearFilter}, {@link LinearMipMapNearestFilter}, {@link NearestMipMapNearestFilter}, {@link NearestMipMapLinearFilter} and {@link LinearMipMapLinearFilter}.
26094+
* @param {Number} [cfg.maxAnisotropy=false] Max anisotropy to use for texture filtering (see EXT_texture_filter_anisotropic).
2604126095
* @param {Number} [cfg.magFilter=LinearFilter] How the texture is sampled when a texel covers more than one pixel. Supported values are {@link LinearFilter} and {@link NearestFilter}.
2604226096
* @param {Number} [cfg.wrapS=RepeatWrapping] Wrap parameter for texture coordinate *S*. Supported values are {@link ClampToEdgeWrapping}, {@link MirroredRepeatWrapping} and {@link RepeatWrapping}.
2604326097
* @param {Number} [cfg.wrapT=RepeatWrapping] Wrap parameter for texture coordinate *T*. Supported values are {@link ClampToEdgeWrapping}, {@link MirroredRepeatWrapping} and {@link RepeatWrapping}..
@@ -26055,6 +26109,7 @@ class Texture extends Component {
2605526109
texture: new Texture2D({gl: this.scene.canvas.gl}),
2605626110
matrix: math.identityMat4(),
2605726111
hasMatrix: (cfg.translate && (cfg.translate[0] !== 0 || cfg.translate[1] !== 0)) || (!!cfg.rotate) || (cfg.scale && (cfg.scale[0] !== 0 || cfg.scale[1] !== 0)),
26112+
maxAnisotropy: cfg.maxAnisotropy,
2605826113
minFilter: this._checkMinFilter(cfg.minFilter),
2605926114
magFilter: this._checkMagFilter(cfg.magFilter),
2606026115
wrapS: this._checkWrapS(cfg.wrapS),
@@ -112851,6 +112906,7 @@ class NavCubePlugin extends Plugin {
112851112906

112852112907
this._cubeSampler = new Texture(navCubeScene, {
112853112908
image: this._cubeTextureCanvas.getImage(),
112909+
maxAnisotropy: 4,
112854112910
flipY: true,
112855112911
wrapS: ClampToEdgeWrapping,
112856112912
wrapT: ClampToEdgeWrapping

dist/xeokit-sdk.es.js

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
2-
* xeokit-sdk v2.6.99
3-
* Commit: 916f60d2984c01eda311e05589b978ba8b5ad37c
4-
* Built: 2025-12-09T13:35:07.666Z
2+
* xeokit-sdk v2.6.100
3+
* Commit: 7a4d724a55a508d0bb365f751ff9e10dddfe9af8
4+
* Built: 2025-12-12T13:41:47.433Z
55
*/
66

77
if (typeof window !== 'undefined') {
8-
window.__XEOKIT__ = { version: '2.6.99', commit: '916f60d2984c01eda311e05589b978ba8b5ad37c', built: '2025-12-09T13:35:07.666Z' };
8+
window.__XEOKIT__ = { version: '2.6.100', commit: '7a4d724a55a508d0bb365f751ff9e10dddfe9af8', built: '2025-12-12T13:41:47.433Z' };
99
}
1010

1111
/** @private */
@@ -2213,6 +2213,16 @@ const math = {
22132213
return a;
22142214
},
22152215

2216+
/**
2217+
* Returns true if the two 2-element vectors are the same.
2218+
* @param v1
2219+
* @param v2
2220+
* @returns {Boolean}
2221+
*/
2222+
compareVec2(v1, v2) {
2223+
return (v1[0] === v2[0] && v1[1] === v2[1]);
2224+
},
2225+
22162226
/**
22172227
* Returns true if the two 3-element vectors are the same.
22182228
* @param v1
@@ -2310,6 +2320,24 @@ const math = {
23102320
return dest;
23112321
},
23122322

2323+
/**
2324+
* Adds one two-element vector to another.
2325+
* @method addVec3
2326+
* @static
2327+
* @param {Array(Number)} u First vector
2328+
* @param {Array(Number)} v Second vector
2329+
* @param {Array(Number)} [dest] Destination vector
2330+
* @return {Array(Number)} dest if specified, u otherwise
2331+
*/
2332+
addVec2(u, v, dest) {
2333+
if (!dest) {
2334+
dest = u;
2335+
}
2336+
dest[0] = u[0] + v[0];
2337+
dest[1] = u[1] + v[1];
2338+
return dest;
2339+
},
2340+
23132341
/**
23142342
* Adds one three-element vector to another.
23152343
* @method addVec3
@@ -2464,8 +2492,26 @@ const math = {
24642492
},
24652493

24662494
/**
2467-
* Multiplies one three-element vector by another.
2468-
* @method mulVec3
2495+
* Multiplies one two-element vector by another.
2496+
* @method mulVec2
2497+
* @static
2498+
* @param {Array(Number)} u First vector
2499+
* @param {Array(Number)} v Second vector
2500+
* @param {Array(Number)} [dest] Destination vector
2501+
* @return {Array(Number)} dest if specified, u otherwise
2502+
*/
2503+
mulVec2(u, v, dest) {
2504+
if (!dest) {
2505+
dest = u;
2506+
}
2507+
dest[0] = u[0] * v[0];
2508+
dest[1] = u[1] * v[1];
2509+
return dest;
2510+
},
2511+
2512+
/**
2513+
* Multiplies one four-element vector by another.
2514+
* @method mulVec4
24692515
* @static
24702516
* @param {Array(Number)} u First vector
24712517
* @param {Array(Number)} v Second vector
@@ -25612,6 +25658,7 @@ class Texture2D {
2561225658
if (props.unpackAlignment !== undefined) {
2561325659
this.unpackAlignment = props.unpackAlignment;
2561425660
}
25661+
this.maxAnisotropy = props.maxAnisotropy;
2561525662
if (props.minFilter !== undefined) {
2561625663
this.minFilter = props.minFilter;
2561725664
}
@@ -25643,6 +25690,12 @@ class Texture2D {
2564325690

2564425691
const bak4 = gl.getParameter(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL); gl.pixelStorei(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL, gl.NONE);
2564525692

25693+
const anisoExt = this.maxAnisotropy && getExtension(gl, "EXT_texture_filter_anisotropic");
25694+
if (anisoExt) {
25695+
const max = gl.getParameter(anisoExt.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
25696+
gl.texParameterf(gl.TEXTURE_2D, anisoExt.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(max, this.maxAnisotropy));
25697+
}
25698+
2564625699
const minFilter = convertConstant(gl, this.minFilter);
2564725700
gl.texParameteri(this.target, gl.TEXTURE_MIN_FILTER, minFilter);
2564825701

@@ -26034,6 +26087,7 @@ class Texture extends Component {
2603426087
* @param {HTMLImageElement} [cfg.image=null] HTML Image object to load into this Texture. See the {@link Texture#image} property for more info.
2603526088
* @param {Number} [cfg.minFilter=LinearMipmapLinearFilter] How the texture is sampled when a texel covers less than one pixel.
2603626089
* Supported values are {@link LinearMipmapLinearFilter}, {@link LinearMipMapNearestFilter}, {@link NearestMipMapNearestFilter}, {@link NearestMipMapLinearFilter} and {@link LinearMipMapLinearFilter}.
26090+
* @param {Number} [cfg.maxAnisotropy=false] Max anisotropy to use for texture filtering (see EXT_texture_filter_anisotropic).
2603726091
* @param {Number} [cfg.magFilter=LinearFilter] How the texture is sampled when a texel covers more than one pixel. Supported values are {@link LinearFilter} and {@link NearestFilter}.
2603826092
* @param {Number} [cfg.wrapS=RepeatWrapping] Wrap parameter for texture coordinate *S*. Supported values are {@link ClampToEdgeWrapping}, {@link MirroredRepeatWrapping} and {@link RepeatWrapping}.
2603926093
* @param {Number} [cfg.wrapT=RepeatWrapping] Wrap parameter for texture coordinate *T*. Supported values are {@link ClampToEdgeWrapping}, {@link MirroredRepeatWrapping} and {@link RepeatWrapping}..
@@ -26051,6 +26105,7 @@ class Texture extends Component {
2605126105
texture: new Texture2D({gl: this.scene.canvas.gl}),
2605226106
matrix: math.identityMat4(),
2605326107
hasMatrix: (cfg.translate && (cfg.translate[0] !== 0 || cfg.translate[1] !== 0)) || (!!cfg.rotate) || (cfg.scale && (cfg.scale[0] !== 0 || cfg.scale[1] !== 0)),
26108+
maxAnisotropy: cfg.maxAnisotropy,
2605426109
minFilter: this._checkMinFilter(cfg.minFilter),
2605526110
magFilter: this._checkMagFilter(cfg.magFilter),
2605626111
wrapS: this._checkWrapS(cfg.wrapS),
@@ -112847,6 +112902,7 @@ class NavCubePlugin extends Plugin {
112847112902

112848112903
this._cubeSampler = new Texture(navCubeScene, {
112849112904
image: this._cubeTextureCanvas.getImage(),
112905+
maxAnisotropy: 4,
112850112906
flipY: true,
112851112907
wrapS: ClampToEdgeWrapping,
112852112908
wrapT: ClampToEdgeWrapping

dist/xeokit-sdk.es5.js

Lines changed: 31 additions & 9 deletions
Large diffs are not rendered by default.

dist/xeokit-sdk.min.cjs.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/xeokit-sdk.min.es.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/xeokit-sdk.min.es5.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)