@epigraph/epigraph-std-lib 4.0.0-alpha → 4.0.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/README.md +0 -14
- package/dist/Epigraph/epigraph.js +20 -84
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.js +69 -0
- package/dist/EpigraphLibs/EpigraphAnalytics/generics/queue.d.ts +3 -2
- package/dist/EpigraphLibs/EpigraphAnalytics/types/index.d.ts +7 -0
- package/dist/EpigraphLibs/{epigraphLogger.js → EpigraphLogger/epigraphLogger.js} +19 -19
- package/dist/EpigraphLibs/{epigraphNexusApi.js → EpigraphNexusApi/epigraphNexusApi.js} +1 -1
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.js +69 -0
- package/dist/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.js +67 -0
- package/dist/lib/Epigraph/constants/enums.js +4 -0
- package/dist/lib/Epigraph/epigraphBaseSolution.js +70 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/consent-plugins/consent-plugin-names.js +4 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/consent-plugins/one-trust-consent-plugin.js +29 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/generics/node.js +22 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/generics/queue.js +23 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/generics/single-linked-list.js +30 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/plugins/ga3-analytics-plugin.js +87 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/plugins/ga4-analytics-plugin.js +121 -0
- package/dist/lib/EpigraphLibs/EpigraphAnalytics/plugins/nexus-analytics-plugin.js +45 -0
- package/dist/lib/EpigraphLibs/EpigraphUnitsConverter/conversions.js +26 -0
- package/dist/lib/EpigraphLibs/EpigraphUnitsConverter/enums.js +5 -0
- package/dist/node_modules/lit-html/async-directive.js +67 -0
- package/dist/node_modules/lit-html/directive-helpers.js +10 -0
- package/dist/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/lit-html/directives/ref.js +40 -0
- package/dist/node_modules/lit-html/lit-html.js +225 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +41 -74
- package/dist/EpigraphLibs/epigraphAnalytics.js +0 -399
- package/dist/EpigraphLibs/epigraphQrCodeGenerator.js +0 -938
- package/dist/EpigraphLibs/epigraphUnitsConverter.js +0 -88
- package/dist/ThirdPartyLibs/modelViewer.d.ts +0 -2
- package/dist/ThirdPartyLibs/modelViewer.js +0 -8608
- package/dist/ThirdPartyLibs/three-gltf-extensions/exporters/KHR_materials_variants/KHR_materials_variants_exporter.d.ts +0 -9
- package/dist/ThirdPartyLibs/three-gltf-extensions/loaders/KHR_materials_variants/KHR_materials_variants.d.ts +0 -6
- package/dist/ThirdPartyLibs/threejs.d.ts +0 -13
- package/dist/ThirdPartyLibs/threejs.js +0 -800
- package/dist/chunks/VerticalBlurShader.B0rdEBFu.js +0 -26381
- /package/dist/EpigraphLibs/{epigraphResultFactory.js → EpigraphResultFactory/epigraphResultFactory.js} +0 -0
- /package/dist/EpigraphLibs/{epigraphUrlProcessor.js → EpigraphUrlProcessor/epigraphUrlProcessor.js} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var o = /* @__PURE__ */ ((t) => (t.RAW = "raw", t.DISTANCE = "distance", t.WEIGHT = "weight", t))(o || {}), e = /* @__PURE__ */ ((t) => (t.millimeter = "mm", t.centimeter = "cm", t.decimeter = "dm", t.meter = "m", t.decameter = "dam", t.hectometer = "hm", t.kilometer = "km", t.inch = "in", t.foot = "ft", t.yard = "yd", t.mile = "mi", t))(e || {});
|
|
2
|
-
let r = {};
|
|
3
|
-
r[`${e.millimeter}-${e.meter}`] = 1e-3;
|
|
4
|
-
r[`${e.meter}-${e.millimeter}`] = 1e3;
|
|
5
|
-
r[`${e.centimeter}-${e.meter}`] = 0.01;
|
|
6
|
-
r[`${e.meter}-${e.centimeter}`] = 100;
|
|
7
|
-
r[`${e.decimeter}-${e.meter}`] = 0.1;
|
|
8
|
-
r[`${e.meter}-${e.decimeter}`] = 10;
|
|
9
|
-
r[`${e.meter}-${e.meter}`] = 1;
|
|
10
|
-
r[`${e.decameter}-${e.meter}`] = 10;
|
|
11
|
-
r[`${e.meter}-${e.decameter}`] = 0.1;
|
|
12
|
-
r[`${e.hectometer}-${e.meter}`] = 100;
|
|
13
|
-
r[`${e.meter}-${e.hectometer}`] = 0.01;
|
|
14
|
-
r[`${e.kilometer}-${e.meter}`] = 1e3;
|
|
15
|
-
r[`${e.meter}-${e.kilometer}`] = 1e-3;
|
|
16
|
-
r[`${e.inch}-${e.meter}`] = 0.0254;
|
|
17
|
-
r[`${e.meter}-${e.inch}`] = 39.3701;
|
|
18
|
-
r[`${e.foot}-${e.meter}`] = 0.3048;
|
|
19
|
-
r[`${e.meter}-${e.foot}`] = 3.28084;
|
|
20
|
-
r[`${e.yard}-${e.meter}`] = 0.9144;
|
|
21
|
-
r[`${e.meter}-${e.yard}`] = 1.09361;
|
|
22
|
-
r[`${e.mile}-${e.meter}`] = 1609.34;
|
|
23
|
-
r[`${e.meter}-${e.mile}`] = 621371e-9;
|
|
24
|
-
class m {
|
|
25
|
-
constructor(l, i) {
|
|
26
|
-
if (this._type = o.DISTANCE, this._rawValue = l, this._rawValueUnit = i, i !== e.meter) {
|
|
27
|
-
const u = m.convert(this._rawValue, i, e.meter);
|
|
28
|
-
this._rawValue = u.value, this._rawValueUnit = u.valueUnit;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
get type() {
|
|
32
|
-
return this._type;
|
|
33
|
-
}
|
|
34
|
-
static buildConvertedUnitResult(l, i) {
|
|
35
|
-
return {
|
|
36
|
-
value: l,
|
|
37
|
-
valueUnit: i,
|
|
38
|
-
valueWithUnit: `${l.toFixed(2)}${i}`
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
static convert(l, i, u) {
|
|
42
|
-
let a = l, $ = u;
|
|
43
|
-
if (i === u)
|
|
44
|
-
return m.buildConvertedUnitResult(a, $);
|
|
45
|
-
const n = r[`${i}-${u}`];
|
|
46
|
-
return a = l * n, m.buildConvertedUnitResult(a, $);
|
|
47
|
-
}
|
|
48
|
-
/** ----------------- METRIC UNITS ----------------- */
|
|
49
|
-
get inMillimeters() {
|
|
50
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.millimeter);
|
|
51
|
-
}
|
|
52
|
-
get inCentimeters() {
|
|
53
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.centimeter);
|
|
54
|
-
}
|
|
55
|
-
get inDecimeters() {
|
|
56
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.decimeter);
|
|
57
|
-
}
|
|
58
|
-
get inMeters() {
|
|
59
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.meter);
|
|
60
|
-
}
|
|
61
|
-
get inDecameters() {
|
|
62
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.decameter);
|
|
63
|
-
}
|
|
64
|
-
get inHectometers() {
|
|
65
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.hectometer);
|
|
66
|
-
}
|
|
67
|
-
get inKilometers() {
|
|
68
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.kilometer);
|
|
69
|
-
}
|
|
70
|
-
/** ----------------- METRIC UNITS ----------------- */
|
|
71
|
-
get inInches() {
|
|
72
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.inch);
|
|
73
|
-
}
|
|
74
|
-
get inFeet() {
|
|
75
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.foot);
|
|
76
|
-
}
|
|
77
|
-
get inYard() {
|
|
78
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.yard);
|
|
79
|
-
}
|
|
80
|
-
get inMiles() {
|
|
81
|
-
return m.convert(this._rawValue, this._rawValueUnit, e.mile);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
m as Distance,
|
|
86
|
-
e as DistanceUnits,
|
|
87
|
-
o as UnitTypes
|
|
88
|
-
};
|