@shapediver/viewer.shared.services 3.17.0 → 3.18.0
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/dist/index.d.ts +1 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/uuid-generator/UuidGenerator.d.ts +2 -2
- package/dist/uuid-generator/UuidGenerator.d.ts.map +1 -1
- package/dist/uuid-generator/UuidGenerator.js.map +1 -1
- package/package.json +12 -14
- package/dist/hash-creator/HashCreator.d.ts +0 -51
- package/dist/hash-creator/HashCreator.d.ts.map +0 -1
- package/dist/hash-creator/HashCreator.js +0 -84
- package/dist/hash-creator/HashCreator.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -26,19 +26,5 @@ import { hashForArraySampled } from "./utilities/hashCreator";
|
|
|
26
26
|
import { numberCleaner } from "./utilities/numberCleaner";
|
|
27
27
|
import { ObservableArray } from "./utilities/ObservableArray";
|
|
28
28
|
import { UuidGenerator } from "./uuid-generator/UuidGenerator";
|
|
29
|
-
export { EventEngine, EVENTTYPE,
|
|
30
|
-
export { SettingsEngine, SESSION_SETTINGS_MODE, defaultSettings };
|
|
31
|
-
export { StateEngine, StatePromise, IViewportGlobalAccessObjectDefinition, ISessionGlobalAccessObjectDefinition, };
|
|
32
|
-
export { SystemInfo };
|
|
33
|
-
export { IDomEventListener, DomEventEngine };
|
|
34
|
-
export { HttpClient, HttpResponse };
|
|
35
|
-
export { UuidGenerator };
|
|
36
|
-
export { Converter };
|
|
37
|
-
export { TypeChecker };
|
|
38
|
-
export { InputValidator };
|
|
39
|
-
export { Logger, LOGGING_LEVEL, ShapeDiverViewerErrorType, ShapeDiverViewerError, ShapeDiverViewerDataProcessingError, ShapeDiverViewerEnvironmentMapError, ShapeDiverViewerWebGLError, ShapeDiverViewerSettingsError, ShapeDiverViewerSessionError, ShapeDiverViewerCustomizationError, ShapeDiverViewerViewportError, ShapeDiverViewerUnknownError, ShapeDiverViewerArError, ShapeDiverViewerLightError, ShapeDiverViewerCameraError, ShapeDiverViewerValidationError, ShapeDiverViewerInteractionError, ShapeDiverViewerDrawingToolsError, ShapeDiverGeometryBackendError, ShapeDiverGeometryBackendRequestError, ShapeDiverGeometryBackendResponseError, ShapeDiverGeometryBackendResponseErrorType, };
|
|
40
|
-
export { isViewerError, isViewerUnknownError, isViewerDataProcessingError, isViewerEnvironmentMapError, isViewerWebGLError, isViewerSettingsError, isViewerSessionError, isViewerCustomizationError, isViewerViewportError, isViewerLightError, isViewerCameraError, isARError, isViewerValidationError, isViewerInteractionError, isViewerDrawingToolsError, isViewerGeometryBackendError, isViewerGeometryBackendGenericError, isViewerGeometryBackendRequestError, isViewerGeometryBackendResponseError, };
|
|
41
|
-
export { PerformanceEvaluator };
|
|
42
|
-
export { atobCustom, btoaCustom, numberCleaner, hashForArraySampled, ObservableArray, };
|
|
43
|
-
export { isValid, stringify };
|
|
29
|
+
export { atobCustom, btoaCustom, Converter, defaultSettings, DomEventEngine, EventEngine, EVENTTYPE, EVENTTYPE_CAMERA, EVENTTYPE_DRAWING_TOOLS, EVENTTYPE_INTERACTION, EVENTTYPE_OUTPUT, EVENTTYPE_PARAMETER, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_TASK, EVENTTYPE_TRANSFORMATION_TOOLS, EVENTTYPE_VIEWPORT, hashForArraySampled, HttpClient, InputValidator, isARError, isValid, isViewerCameraError, isViewerCustomizationError, isViewerDataProcessingError, isViewerDrawingToolsError, isViewerEnvironmentMapError, isViewerError, isViewerGeometryBackendError, isViewerGeometryBackendGenericError, isViewerGeometryBackendRequestError, isViewerGeometryBackendResponseError, isViewerInteractionError, isViewerLightError, isViewerSessionError, isViewerSettingsError, isViewerUnknownError, isViewerValidationError, isViewerViewportError, isViewerWebGLError, Logger, LOGGING_LEVEL, numberCleaner, ObservableArray, PerformanceEvaluator, SESSION_SETTINGS_MODE, SettingsEngine, ShapeDiverGeometryBackendError, ShapeDiverGeometryBackendRequestError, ShapeDiverGeometryBackendResponseError, ShapeDiverGeometryBackendResponseErrorType, ShapeDiverViewerArError, ShapeDiverViewerCameraError, ShapeDiverViewerCustomizationError, ShapeDiverViewerDataProcessingError, ShapeDiverViewerDrawingToolsError, ShapeDiverViewerEnvironmentMapError, ShapeDiverViewerError, ShapeDiverViewerErrorType, ShapeDiverViewerInteractionError, ShapeDiverViewerLightError, ShapeDiverViewerSessionError, ShapeDiverViewerSettingsError, ShapeDiverViewerUnknownError, ShapeDiverViewerValidationError, ShapeDiverViewerViewportError, ShapeDiverViewerWebGLError, StateEngine, StatePromise, stringify, SystemInfo, TypeChecker, UuidGenerator, type HttpResponse, type IDomEventListener, type IEvent, type ISessionGlobalAccessObjectDefinition, type IViewportGlobalAccessObjectDefinition, type MainEventTypes, };
|
|
44
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,IAAI,0CAA0C,EAAC,MAAM,qCAAqC,CAAC;AAC/G,OAAO,EACN,SAAS,EACT,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,8BAA8B,EAC9B,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAC,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAC,UAAU,EAAC,MAAM,0B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b,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,cAAc,GACnB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.ShapeDiverGeometryBackendRequestError = exports.ShapeDiverGeometryBackendError = exports.SettingsEngine = exports.SESSION_SETTINGS_MODE = exports.PerformanceEvaluator = exports.ObservableArray = exports.numberCleaner = exports.LOGGING_LEVEL = exports.Logger = exports.isViewerWebGLError = exports.isViewerViewportError = exports.isViewerValidationError = exports.isViewerUnknownError = exports.isViewerSettingsError = exports.isViewerSessionError = exports.isViewerLightError = exports.isViewerInteractionError = exports.isViewerGeometryBackendResponseError = exports.isViewerGeometryBackendRequestError = exports.isViewerGeometryBackendGenericError = exports.isViewerGeometryBackendError = exports.isViewerError = exports.isViewerEnvironmentMapError = exports.isViewerDrawingToolsError = exports.isViewerDataProcessingError = exports.isViewerCustomizationError = exports.isViewerCameraError = exports.isValid = exports.isARError = exports.InputValidator = exports.HttpClient = exports.hashForArraySampled = exports.EVENTTYPE_VIEWPORT = exports.EVENTTYPE_TRANSFORMATION_TOOLS = exports.EVENTTYPE_TASK = exports.EVENTTYPE_SESSION = exports.EVENTTYPE_SCENE = exports.EVENTTYPE_RENDERING = exports.EVENTTYPE_PARAMETER = exports.EVENTTYPE_OUTPUT = exports.EVENTTYPE_INTERACTION = exports.EVENTTYPE_DRAWING_TOOLS = exports.EVENTTYPE_CAMERA = exports.EVENTTYPE = exports.EventEngine = exports.DomEventEngine = exports.defaultSettings = exports.Converter = exports.btoaCustom = exports.atobCustom = void 0;
|
|
4
|
+
exports.UuidGenerator = exports.TypeChecker = exports.SystemInfo = exports.stringify = exports.StatePromise = exports.StateEngine = exports.ShapeDiverViewerWebGLError = exports.ShapeDiverViewerViewportError = exports.ShapeDiverViewerValidationError = exports.ShapeDiverViewerUnknownError = exports.ShapeDiverViewerSettingsError = exports.ShapeDiverViewerSessionError = exports.ShapeDiverViewerLightError = exports.ShapeDiverViewerInteractionError = exports.ShapeDiverViewerErrorType = exports.ShapeDiverViewerError = exports.ShapeDiverViewerEnvironmentMapError = exports.ShapeDiverViewerDrawingToolsError = exports.ShapeDiverViewerDataProcessingError = exports.ShapeDiverViewerCustomizationError = exports.ShapeDiverViewerCameraError = exports.ShapeDiverViewerArError = exports.ShapeDiverGeometryBackendResponseErrorType = exports.ShapeDiverGeometryBackendResponseError = void 0;
|
|
5
5
|
const sdk_geometry_api_sdk_v2_1 = require("@shapediver/sdk.geometry-api-sdk-v2");
|
|
6
6
|
Object.defineProperty(exports, "ShapeDiverGeometryBackendResponseErrorType", { enumerable: true, get: function () { return sdk_geometry_api_sdk_v2_1.ResErrorType; } });
|
|
7
7
|
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,iFAA+G;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,iFAA+G;AA8I9G,2HA9IuB,sCAA0C,OA8IvB;AA7I3C,yEAgByC;AAgFxC,0FA/FA,+BAAS,OA+FA;AACT,iGA/FA,sCAAgB,OA+FA;AAChB,wGA/FA,6CAAuB,OA+FA;AACvB,sGA/FA,2CAAqB,OA+FA;AACrB,iGA/FA,sCAAgB,OA+FA;AAChB,oGA/FA,yCAAmB,OA+FA;AACnB,oGA/FA,yCAAmB,OA+FA;AACnB,gGA/FA,qCAAe,OA+FA;AACf,kGA/FA,uCAAiB,OA+FA;AACjB,+FA/FA,oCAAc,OA+FA;AACd,+GA/FA,oDAA8B,OA+FA;AAC9B,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,mHAtFA,2DAAkC,OAsFA;AAClC,oHAtFA,4DAAmC,OAsFA;AACnC,kHAtFA,0DAAiC,OAsFA;AACjC,oHAtFA,4DAAmC,OAsFA;AAGnC,iHAxFA,yDAAgC,OAwFA;AAChC,2GAxFA,mDAA0B,OAwFA;AAC1B,6GAxFA,qDAA4B,OAwFA;AAC5B,8GAxFA,sDAA6B,OAwFA;AAC7B,6GAxFA,qDAA4B,OAwFA;AAC5B,gHAxFA,wDAA+B,OAwFA;AAC/B,8GAxFA,sDAA6B,OAwFA;AAC7B,2GAxFA,mDAA0B,OAwFA;AAtF3B,qEAAoE;AAyCnE,wFAzCO,wBAAO,OAyCP;AAgDP,0FAzFgB,0BAAS,OAyFhB;AAxFV,uFAAkF;AA+DjF,qGA/DO,2CAAoB,OA+DP;AA9DrB,qEAG0C;AAiBzC,gGAnBA,gCAAe,OAmBA;AA4Cf,+FA9DA,+BAAc,OA8DA;AA1Df,4DAAuD;AA+EtD,4FA/EO,yBAAW,OA+EP;AA9EZ,8DAAyD;AA+ExD,6FA/EO,2BAAY,OA+EP;AA9Eb,yDAAoD;AAgFnD,2FAhFO,uBAAU,OAgFP;AA/EX,0DAAqD;AAgFpD,4FAhFO,yBAAW,OAgFP;AA/EZ,+CAA0D;AAOzD,2FAPO,mBAAU,OAOP;AACV,2FARmB,mBAAU,OAQnB;AAPX,yDAA4D;AAwB3D,oGAxBO,iCAAmB,OAwBP;AAvBpB,6DAAwD;AAgDvD,8FAhDO,6BAAa,OAgDP;AA/Cd,iEAA4D;AAgD3D,gGAhDO,iCAAe,OAgDP;AA/ChB,kEAA6D;AA4E5D,8FA5EO,6BAAa,OA4EP"}
|
|
@@ -11,14 +11,14 @@ export declare class UuidGenerator {
|
|
|
11
11
|
* @param uuid the uuid to convert
|
|
12
12
|
* @returns ArrayLike collection of 16 values
|
|
13
13
|
*/
|
|
14
|
-
parse(uuid: string):
|
|
14
|
+
parse(uuid: string): Uint8Array;
|
|
15
15
|
/**
|
|
16
16
|
* Stringify an array of bytes to an uuid
|
|
17
17
|
*
|
|
18
18
|
* @param uuid the array of bytes
|
|
19
19
|
* @returns the converted uuid
|
|
20
20
|
*/
|
|
21
|
-
stringify(uuid:
|
|
21
|
+
stringify(uuid: Uint8Array): string;
|
|
22
22
|
/**
|
|
23
23
|
* Checks if the provided string is a valid uuid.
|
|
24
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UuidGenerator.d.ts","sourceRoot":"","sources":["../../src/uuid-generator/UuidGenerator.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgB;IAMxC,WAAkB,QAAQ,kBAEzB;IAMD;;OAEG;IACI,MAAM,IAAI,MAAM;IAIvB;;;;;OAKG;IACI,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"UuidGenerator.d.ts","sourceRoot":"","sources":["../../src/uuid-generator/UuidGenerator.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGzB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgB;IAMxC,WAAkB,QAAQ,kBAEzB;IAMD;;OAEG;IACI,MAAM,IAAI,MAAM;IAIvB;;;;;OAKG;IACI,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAItC;;;;;OAKG;IACI,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM;IAI1C;;;;OAIG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAKtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UuidGenerator.js","sourceRoot":"","sources":["../../src/uuid-generator/UuidGenerator.ts"],"names":[],"mappings":";;;AAAA,+BAKc;AAEd,MAAa,aAAa;IAKzB,4BAA4B;IAE5B,sCAAsC;IAE/B,MAAM,KAAK,QAAQ;QACzB,OAAO,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,yCAAyC;IAEzC,6BAA6B;IAE7B;;OAEG;IACI,MAAM;QACZ,OAAO,IAAA,SAAE,GAAE,CAAC;IACb,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAY;QACxB,OAAO,IAAA,YAAS,EAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACI,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"UuidGenerator.js","sourceRoot":"","sources":["../../src/uuid-generator/UuidGenerator.ts"],"names":[],"mappings":";;;AAAA,+BAKc;AAEd,MAAa,aAAa;IAKzB,4BAA4B;IAE5B,sCAAsC;IAE/B,MAAM,KAAK,QAAQ;QACzB,OAAO,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,yCAAyC;IAEzC,6BAA6B;IAE7B;;OAEG;IACI,MAAM;QACZ,OAAO,IAAA,SAAE,GAAE,CAAC;IACb,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAY;QACxB,OAAO,IAAA,YAAS,EAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED;;;;;OAKG;IACI,SAAS,CAAC,IAAgB;QAChC,OAAO,IAAA,gBAAa,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,IAAY;QAC3B,OAAO,IAAA,eAAY,EAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CAGD;AAtDD,sCAsDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.services",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"check": "tsc --noEmit",
|
|
27
27
|
"build": "bash ../../scripts/building/build.sh",
|
|
28
|
-
"build-watch": "bash ../../scripts/building/build-watch.sh"
|
|
29
|
-
"build-dep": "bash ../../scripts/building/build-dep.sh"
|
|
28
|
+
"build-watch": "bash ../../scripts/building/build-watch.sh"
|
|
30
29
|
},
|
|
31
30
|
"bugs": {
|
|
32
31
|
"url": "https://github.com/shapediver/Viewer/issues"
|
|
@@ -38,18 +37,17 @@
|
|
|
38
37
|
"testEnvironment": "node"
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
41
|
-
"@ctrl/tinycolor": "
|
|
42
|
-
"@shapediver/sdk.geometry-api-sdk-v2": "3.4.
|
|
43
|
-
"@shapediver/viewer.settings": "1.
|
|
44
|
-
"@shapediver/viewer.shared.build-data": "3.
|
|
45
|
-
"@shapediver/viewer.shared.types": "3.
|
|
40
|
+
"@ctrl/tinycolor": "4.2.0",
|
|
41
|
+
"@shapediver/sdk.geometry-api-sdk-v2": "3.4.2",
|
|
42
|
+
"@shapediver/viewer.settings": "1.3.0",
|
|
43
|
+
"@shapediver/viewer.shared.build-data": "3.18.0",
|
|
44
|
+
"@shapediver/viewer.shared.types": "3.18.0",
|
|
46
45
|
"@types/ua-parser-js": "0.7.39",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"dompurify": "3.3.1",
|
|
46
|
+
"axios": "1.16.1",
|
|
47
|
+
"dompurify": "3.4.6",
|
|
50
48
|
"gl-matrix": "3.4.4",
|
|
51
|
-
"ua-parser-js": "0.
|
|
52
|
-
"uuid": "
|
|
49
|
+
"ua-parser-js": "1.0.39",
|
|
50
|
+
"uuid": "14.0.0"
|
|
53
51
|
},
|
|
54
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "70204708f0ecb58db1f211f986fbf88ce62d94e3"
|
|
55
53
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export declare class HashCreator {
|
|
2
|
-
private readonly _seed;
|
|
3
|
-
private readonly _c1;
|
|
4
|
-
private readonly _c2;
|
|
5
|
-
private readonly _c3;
|
|
6
|
-
private readonly _c4;
|
|
7
|
-
private readonly _c5;
|
|
8
|
-
private static _instance;
|
|
9
|
-
static get instance(): HashCreator;
|
|
10
|
-
/**
|
|
11
|
-
* A non-linear bitwise mixer that incorporates a 32-bit value into the rolling hash.
|
|
12
|
-
* Based on the MurmurHash3 "C1/C2" mixing step.
|
|
13
|
-
*
|
|
14
|
-
* This function uses a combination of:
|
|
15
|
-
* 1. Odd-prime multiplication (c1, c2) to spread bits across the 32-bit range.
|
|
16
|
-
* 2. Bitwise Rotation (RotL) to ensure that bits shifted off the left side
|
|
17
|
-
* influence the lower bits, preventing data loss.
|
|
18
|
-
* 3. An additive constant (c3) to ensure that sequences of zeros
|
|
19
|
-
* or small integers still result in a changing, chaotic state.
|
|
20
|
-
*
|
|
21
|
-
* @param hash The current accumulated hash state.
|
|
22
|
-
* @param value The new data chunk (GetHashCode) to incorporate.
|
|
23
|
-
* @returns An updated hash state with high avalanche characteristics.
|
|
24
|
-
*/
|
|
25
|
-
private mixIn;
|
|
26
|
-
/**
|
|
27
|
-
* Performs a final bit-smearing (Avalanche) step to ensure uniform distribution.
|
|
28
|
-
* Based on the MurmurHash3 32-bit finalizer.
|
|
29
|
-
*
|
|
30
|
-
* This "smears" the bits via three XOR-shift and multiplication steps:
|
|
31
|
-
* 1. The XOR-shifts (h >> 16, etc.) force the high-entropy bits to mix with lower bits.
|
|
32
|
-
* 2. The magic constants (c4, c5) are specific "Mixer Primes"
|
|
33
|
-
* chosen for their ability to flip bits with roughly 50% probability.
|
|
34
|
-
* This prevents collisions in structured data where the final fields (like translation
|
|
35
|
-
* components) might otherwise have a disproportionate effect on only a few bits.
|
|
36
|
-
*
|
|
37
|
-
* @param h The raw accumulated hash after all data blocks have been mixed.
|
|
38
|
-
* @returns A finalized hash where every input bit has had the opportunity to influence every output bit.
|
|
39
|
-
*/
|
|
40
|
-
private finalize;
|
|
41
|
-
/**
|
|
42
|
-
* Creates a 32-bit integer hash using a MurmurHash3-inspired algorithm.
|
|
43
|
-
* This method is designed to produce a well-distributed hash for arbitrary string content,
|
|
44
|
-
* making it suitable for use as a key in hash tables or for quick comparisons.
|
|
45
|
-
*
|
|
46
|
-
* @param content The input string to hash.
|
|
47
|
-
* @returns A 32-bit integer hash of the input string.
|
|
48
|
-
*/
|
|
49
|
-
createMurmurHash(content: string): number;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=HashCreator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HashCreator.d.ts","sourceRoot":"","sources":["../../src/hash-creator/HashCreator.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IAGvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IAGpC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAc;IAElC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAc;IAEtC,WAAkB,QAAQ,gBAEzB;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,KAAK;IAab;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,QAAQ;IAShB;;;;;;;OAOG;IACI,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;CAUhD"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HashCreator = void 0;
|
|
4
|
-
class HashCreator {
|
|
5
|
-
constructor() {
|
|
6
|
-
// Seed derived from the Golden Ratio
|
|
7
|
-
// commonly used in hash functions to achieve good distribution
|
|
8
|
-
this._seed = 0x9e3779b9;
|
|
9
|
-
// mixing constants from MurmurHash3 (https://en.wikipedia.org/wiki/MurmurHash)
|
|
10
|
-
this._c1 = 0xcc9e2d51;
|
|
11
|
-
this._c2 = 0x1b873593;
|
|
12
|
-
this._c3 = 0xe6546b64;
|
|
13
|
-
this._c4 = 0x85ebca6b;
|
|
14
|
-
this._c5 = 0xc2b2ae35;
|
|
15
|
-
}
|
|
16
|
-
static get instance() {
|
|
17
|
-
return this._instance || (this._instance = new this());
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A non-linear bitwise mixer that incorporates a 32-bit value into the rolling hash.
|
|
21
|
-
* Based on the MurmurHash3 "C1/C2" mixing step.
|
|
22
|
-
*
|
|
23
|
-
* This function uses a combination of:
|
|
24
|
-
* 1. Odd-prime multiplication (c1, c2) to spread bits across the 32-bit range.
|
|
25
|
-
* 2. Bitwise Rotation (RotL) to ensure that bits shifted off the left side
|
|
26
|
-
* influence the lower bits, preventing data loss.
|
|
27
|
-
* 3. An additive constant (c3) to ensure that sequences of zeros
|
|
28
|
-
* or small integers still result in a changing, chaotic state.
|
|
29
|
-
*
|
|
30
|
-
* @param hash The current accumulated hash state.
|
|
31
|
-
* @param value The new data chunk (GetHashCode) to incorporate.
|
|
32
|
-
* @returns An updated hash state with high avalanche characteristics.
|
|
33
|
-
*/
|
|
34
|
-
mixIn(hash, value) {
|
|
35
|
-
let k1 = value;
|
|
36
|
-
k1 *= this._c1;
|
|
37
|
-
k1 = (k1 << 15) | (k1 >> 17); // RotL 15
|
|
38
|
-
k1 *= this._c2;
|
|
39
|
-
hash ^= k1;
|
|
40
|
-
hash = (hash << 13) | (hash >> 19); // RotL 13
|
|
41
|
-
hash = hash * 5 + this._c3;
|
|
42
|
-
return hash;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Performs a final bit-smearing (Avalanche) step to ensure uniform distribution.
|
|
46
|
-
* Based on the MurmurHash3 32-bit finalizer.
|
|
47
|
-
*
|
|
48
|
-
* This "smears" the bits via three XOR-shift and multiplication steps:
|
|
49
|
-
* 1. The XOR-shifts (h >> 16, etc.) force the high-entropy bits to mix with lower bits.
|
|
50
|
-
* 2. The magic constants (c4, c5) are specific "Mixer Primes"
|
|
51
|
-
* chosen for their ability to flip bits with roughly 50% probability.
|
|
52
|
-
* This prevents collisions in structured data where the final fields (like translation
|
|
53
|
-
* components) might otherwise have a disproportionate effect on only a few bits.
|
|
54
|
-
*
|
|
55
|
-
* @param h The raw accumulated hash after all data blocks have been mixed.
|
|
56
|
-
* @returns A finalized hash where every input bit has had the opportunity to influence every output bit.
|
|
57
|
-
*/
|
|
58
|
-
finalize(h) {
|
|
59
|
-
h ^= h >> 16;
|
|
60
|
-
h *= this._c4;
|
|
61
|
-
h ^= h >> 13;
|
|
62
|
-
h *= this._c5;
|
|
63
|
-
h ^= h >> 16;
|
|
64
|
-
return h;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Creates a 32-bit integer hash using a MurmurHash3-inspired algorithm.
|
|
68
|
-
* This method is designed to produce a well-distributed hash for arbitrary string content,
|
|
69
|
-
* making it suitable for use as a key in hash tables or for quick comparisons.
|
|
70
|
-
*
|
|
71
|
-
* @param content The input string to hash.
|
|
72
|
-
* @returns A 32-bit integer hash of the input string.
|
|
73
|
-
*/
|
|
74
|
-
createMurmurHash(content) {
|
|
75
|
-
let h1 = this._seed;
|
|
76
|
-
for (let i = 0; i < content.length; i++) {
|
|
77
|
-
const charCode = content.charCodeAt(i);
|
|
78
|
-
h1 = this.mixIn(h1, charCode);
|
|
79
|
-
}
|
|
80
|
-
return this.finalize(h1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.HashCreator = HashCreator;
|
|
84
|
-
//# sourceMappingURL=HashCreator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HashCreator.js","sourceRoot":"","sources":["../../src/hash-creator/HashCreator.ts"],"names":[],"mappings":";;;AAA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