@oliversalzburg/js-utils 0.0.18 → 0.0.19-dev.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/array.d.ts +39 -0
- package/{lib/array.js → array.js} +12 -13
- package/array.js.map +1 -0
- package/async.d.ts +28 -0
- package/{lib/async.js → async.js} +16 -10
- package/async.js.map +1 -0
- package/async.test.js +28 -0
- package/async.test.js.map +1 -0
- package/core.d.ts +36 -0
- package/core.js +3 -0
- package/core.js.map +1 -0
- package/{lib/dom → dom}/core.d.ts +8 -8
- package/{lib/dom → dom}/core.js +8 -8
- package/{lib/error-serializer.d.ts → error-serializer.d.ts} +5 -5
- package/{lib/error-serializer.js → error-serializer.js} +5 -5
- package/{lib/errors → errors}/AbstractError.d.ts +5 -5
- package/{lib/errors → errors}/AbstractError.js +5 -5
- package/{lib/errors → errors}/InternalError.d.ts +3 -3
- package/{lib/errors → errors}/InternalError.js +3 -3
- package/{lib/errors → errors}/InvalidArgumentError.d.ts +2 -2
- package/{lib/errors → errors}/InvalidArgumentError.js +2 -2
- package/{lib/errors → errors}/InvalidOperationError.d.ts +2 -2
- package/{lib/errors → errors}/InvalidOperationError.js +2 -2
- package/{lib/errors → errors}/NotImplementedError.d.ts +2 -2
- package/{lib/errors → errors}/NotImplementedError.js +2 -2
- package/{lib/errors → errors}/PermissionViolationError.d.ts +2 -2
- package/{lib/errors → errors}/PermissionViolationError.js +2 -2
- package/{lib/errors → errors}/ResourceConflictError.d.ts +2 -2
- package/{lib/errors → errors}/ResourceConflictError.js +2 -2
- package/{lib/errors → errors}/UnknownError.d.ts +2 -2
- package/{lib/errors → errors}/UnknownError.js +2 -2
- package/{lib/graphics → graphics}/canvas-sandbox.d.ts +13 -13
- package/{lib/graphics → graphics}/canvas-sandbox.js +9 -9
- package/{lib/graphics → graphics}/canvas.d.ts +30 -30
- package/{lib/graphics → graphics}/canvas.js +30 -30
- package/{lib/graphics → graphics}/core.d.ts +23 -23
- package/{lib/graphics → graphics}/core.js +23 -24
- package/{lib/graphics → graphics}/core.js.map +1 -1
- package/{lib/graphics → graphics}/render-loop.d.ts +3 -3
- package/{lib/graphics → graphics}/render-loop.js +3 -3
- package/{lib/math → math}/core.d.ts +19 -10
- package/{lib/math → math}/core.js +21 -10
- package/{lib/math → math}/core.js.map +1 -1
- package/{lib/math → math}/euler.d.ts +4 -4
- package/{lib/math → math}/euler.js +4 -4
- package/{lib/math → math}/matrix3.d.ts +34 -34
- package/{lib/math → math}/matrix3.js +34 -34
- package/{lib/math → math}/quaternion.d.ts +25 -25
- package/{lib/math → math}/quaternion.js +25 -25
- package/{lib/math → math}/transformation.d.ts +3 -3
- package/{lib/math → math}/transformation.js +3 -3
- package/{lib/math → math}/vector2.d.ts +40 -40
- package/{lib/math → math}/vector2.js +40 -40
- package/{lib/math → math}/vector3.d.ts +66 -66
- package/{lib/math → math}/vector3.js +66 -66
- package/{lib/math → math}/vector4.d.ts +38 -38
- package/{lib/math → math}/vector4.js +38 -38
- package/{lib/nil.d.ts → nil.d.ts} +11 -9
- package/{lib/nil.js → nil.js} +10 -9
- package/{lib/nil.js.map → nil.js.map} +1 -1
- package/package.json +16 -18
- package/{lib/random.d.ts → random.d.ts} +11 -17
- package/{lib/random.js → random.js} +11 -17
- package/random.js.map +1 -0
- package/{lib/sleep.d.ts → sleep.d.ts} +1 -1
- package/{lib/sleep.js → sleep.js} +1 -1
- package/{lib/string-formatter.d.ts → string-formatter.d.ts} +8 -4
- package/{lib/string-formatter.js → string-formatter.js} +8 -4
- package/string-formatter.js.map +1 -0
- package/string-formatter.test.d.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/LICENSES.md +0 -17
- package/_site/assets/highlight.css +0 -141
- package/_site/assets/main.js +0 -59
- package/_site/assets/navigation.js +0 -1
- package/_site/assets/search.js +0 -1
- package/_site/assets/style.css +0 -1383
- package/_site/classes/AbstractError.html +0 -67
- package/_site/classes/Canvas.html +0 -106
- package/_site/classes/CanvasSandbox.html +0 -91
- package/_site/classes/Euler.html +0 -217
- package/_site/classes/InternalError.html +0 -71
- package/_site/classes/InvalidArgumentError.html +0 -67
- package/_site/classes/InvalidOperationError.html +0 -67
- package/_site/classes/Matrix3.html +0 -167
- package/_site/classes/NotImplementedError.html +0 -66
- package/_site/classes/PermissionViolationError.html +0 -67
- package/_site/classes/Quaternion.html +0 -211
- package/_site/classes/Random.html +0 -90
- package/_site/classes/RenderLoop.html +0 -85
- package/_site/classes/ResourceConflictError.html +0 -66
- package/_site/classes/Transformation.html +0 -52
- package/_site/classes/UnexpectedNilError.html +0 -54
- package/_site/classes/UnknownError.html +0 -70
- package/_site/classes/Vector2.html +0 -159
- package/_site/classes/Vector3.html +0 -214
- package/_site/classes/Vector4.html +0 -156
- package/_site/functions/addVector2.html +0 -44
- package/_site/functions/addVector3.html +0 -44
- package/_site/functions/blend.html +0 -47
- package/_site/functions/blendAdditive.html +0 -47
- package/_site/functions/blendSubtractive.html +0 -47
- package/_site/functions/clamp.html +0 -45
- package/_site/functions/coalesceOnRejection.html +0 -51
- package/_site/functions/cosDeg.html +0 -43
- package/_site/functions/crossVector3.html +0 -44
- package/_site/functions/deg2rad.html +0 -43
- package/_site/functions/difference.html +0 -46
- package/_site/functions/distance.html +0 -46
- package/_site/functions/dotVector3.html +0 -44
- package/_site/functions/errorToJSON.html +0 -43
- package/_site/functions/errorToRecord.html +0 -43
- package/_site/functions/errorToSimpleSerializable.html +0 -43
- package/_site/functions/filterType.html +0 -46
- package/_site/functions/formatString.html +0 -46
- package/_site/functions/formatStringTemplate.html +0 -46
- package/_site/functions/fromRGB.html +0 -46
- package/_site/functions/fromRGBA.html +0 -46
- package/_site/functions/getA.html +0 -43
- package/_site/functions/getB.html +0 -43
- package/_site/functions/getDocumentElementTypeById.html +0 -46
- package/_site/functions/getDocumentElementTypeByIdStrict.html +0 -48
- package/_site/functions/getG.html +0 -43
- package/_site/functions/getR.html +0 -43
- package/_site/functions/intersect.html +0 -47
- package/_site/functions/is.html +0 -46
- package/_site/functions/isError.html +0 -43
- package/_site/functions/isInteger.html +0 -43
- package/_site/functions/isNil.html +0 -44
- package/_site/functions/isqrt.html +0 -43
- package/_site/functions/multiplyVector2.html +0 -44
- package/_site/functions/multiplyVector3.html +0 -44
- package/_site/functions/mustExist.html +0 -45
- package/_site/functions/nextPalette.html +0 -42
- package/_site/functions/prepareAsyncContext.html +0 -46
- package/_site/functions/putPixel32.html +0 -53
- package/_site/functions/putPixel32Add.html +0 -53
- package/_site/functions/putPixel32Sub.html +0 -53
- package/_site/functions/putSubPixel32.html +0 -47
- package/_site/functions/rad2deg.html +0 -43
- package/_site/functions/randomRange.html +0 -45
- package/_site/functions/safeRGBComponent.html +0 -43
- package/_site/functions/seedFromString.html +0 -44
- package/_site/functions/shuffleArray.html +0 -44
- package/_site/functions/sinDeg.html +0 -43
- package/_site/functions/sleep.html +0 -43
- package/_site/functions/somecolor.html +0 -43
- package/_site/functions/subtractVector2.html +0 -44
- package/_site/functions/subtractVector3.html +0 -44
- package/_site/functions/toGrayScale.html +0 -43
- package/_site/functions/unknownToError.html +0 -45
- package/_site/index.html +0 -44
- package/_site/interfaces/CanvasOptions.html +0 -44
- package/_site/interfaces/CanvasSandboxApplication.html +0 -60
- package/_site/interfaces/CanvasSandboxExpectedOptions.html +0 -48
- package/_site/interfaces/CanvasSandboxOptions.html +0 -45
- package/_site/interfaces/RenderLoopOptions.html +0 -46
- package/_site/modules.html +0 -134
- package/_site/types/AnyAsyncFunction.html +0 -41
- package/_site/types/AnyConstructor.html +0 -41
- package/_site/types/AnyFunction.html +0 -41
- package/_site/types/ConstructorOf.html +0 -41
- package/_site/types/FunctionReturning.html +0 -41
- package/_site/types/Maybe.html +0 -41
- package/_site/types/Mixin.html +0 -42
- package/_site/types/Nil.html +0 -42
- package/_site/types/RenderLoopCallback.html +0 -41
- package/_site/types/SerializedError.html +0 -41
- package/_site/variables/CANVAS_SANDBOX_DEFAULT_CSS.html +0 -41
- package/_site/variables/MS_PER_FRAME_60FPS.html +0 -42
- package/_site/variables/PALETTES.html +0 -41
- package/_site/variables/TWO_PI.html +0 -41
- package/_site/variables/random-1.html +0 -41
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/bundle.js +0 -30
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -16
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/spa.css +0 -298
- package/coverage/string-formatter.ts.html +0 -187
- package/coverage/tmp/coverage-4186-1699218521999-0.json +0 -1
- package/coverage/tmp/coverage-4196-1699218521967-0.json +0 -1
- package/docs/assets/favicon.ico +0 -0
- package/lib/array.d.ts +0 -40
- package/lib/array.js.map +0 -1
- package/lib/async.d.ts +0 -27
- package/lib/async.js.map +0 -1
- package/lib/core.d.ts +0 -33
- package/lib/core.js +0 -12
- package/lib/core.js.map +0 -1
- package/lib/random.js.map +0 -1
- package/lib/string-formatter.js.map +0 -1
- package/mkdocs.yml +0 -52
- /package/{lib/error-serializer.test.d.ts → async.test.d.ts} +0 -0
- /package/{lib/dom → dom}/core.js.map +0 -0
- /package/{lib/dom → dom}/index.d.ts +0 -0
- /package/{lib/dom → dom}/index.js +0 -0
- /package/{lib/dom → dom}/index.js.map +0 -0
- /package/{lib/error-serializer.js.map → error-serializer.js.map} +0 -0
- /package/{lib/string-formatter.test.d.ts → error-serializer.test.d.ts} +0 -0
- /package/{lib/error-serializer.test.js → error-serializer.test.js} +0 -0
- /package/{lib/error-serializer.test.js.map → error-serializer.test.js.map} +0 -0
- /package/{lib/errors → errors}/AbstractError.js.map +0 -0
- /package/{lib/errors → errors}/InternalError.js.map +0 -0
- /package/{lib/errors → errors}/InvalidArgumentError.js.map +0 -0
- /package/{lib/errors → errors}/InvalidOperationError.js.map +0 -0
- /package/{lib/errors → errors}/NotImplementedError.js.map +0 -0
- /package/{lib/errors → errors}/PermissionViolationError.js.map +0 -0
- /package/{lib/errors → errors}/ResourceConflictError.js.map +0 -0
- /package/{lib/errors → errors}/UnknownError.js.map +0 -0
- /package/{lib/errors → errors}/index.d.ts +0 -0
- /package/{lib/errors → errors}/index.js +0 -0
- /package/{lib/errors → errors}/index.js.map +0 -0
- /package/{lib/graphics → graphics}/canvas-sandbox.js.map +0 -0
- /package/{lib/graphics → graphics}/canvas.js.map +0 -0
- /package/{lib/graphics → graphics}/index.d.ts +0 -0
- /package/{lib/graphics → graphics}/index.js +0 -0
- /package/{lib/graphics → graphics}/index.js.map +0 -0
- /package/{lib/graphics → graphics}/render-loop.js.map +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/index.js → index.js} +0 -0
- /package/{lib/index.js.map → index.js.map} +0 -0
- /package/{lib/math → math}/euler.js.map +0 -0
- /package/{lib/math → math}/index.d.ts +0 -0
- /package/{lib/math → math}/index.js +0 -0
- /package/{lib/math → math}/index.js.map +0 -0
- /package/{lib/math → math}/matrix3.js.map +0 -0
- /package/{lib/math → math}/quaternion.js.map +0 -0
- /package/{lib/math → math}/transformation.js.map +0 -0
- /package/{lib/math → math}/vector2.js.map +0 -0
- /package/{lib/math → math}/vector3.js.map +0 -0
- /package/{lib/math → math}/vector4.js.map +0 -0
- /package/{lib/sleep.js.map → sleep.js.map} +0 -0
- /package/{lib/string-formatter.test.js → string-formatter.test.js} +0 -0
- /package/{lib/string-formatter.test.js.map → string-formatter.test.js.map} +0 -0
|
@@ -61,10 +61,10 @@ export class Vector4 {
|
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Constructs a new {@linkcode Vector4}.
|
|
64
|
-
* @param x The X component.
|
|
65
|
-
* @param y The Y component.
|
|
66
|
-
* @param z The Z component.
|
|
67
|
-
* @param w The W component.
|
|
64
|
+
* @param x - The X component.
|
|
65
|
+
* @param y - The Y component.
|
|
66
|
+
* @param z - The Z component.
|
|
67
|
+
* @param w - The W component.
|
|
68
68
|
*/
|
|
69
69
|
constructor(x, y, z, w) {
|
|
70
70
|
this.x = x;
|
|
@@ -74,7 +74,7 @@ export class Vector4 {
|
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Creates a copy of another {@linkcode Vector4}.
|
|
77
|
-
* @param vector The vector to copy.
|
|
77
|
+
* @param vector - The vector to copy.
|
|
78
78
|
* @returns A new vector.
|
|
79
79
|
*/
|
|
80
80
|
static fromVector4(vector) {
|
|
@@ -82,7 +82,7 @@ export class Vector4 {
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Sets the vector to new coordinates.
|
|
85
|
-
* @param vector The coordinates to set the vector to.
|
|
85
|
+
* @param vector - The coordinates to set the vector to.
|
|
86
86
|
* @returns This instance.
|
|
87
87
|
*/
|
|
88
88
|
set(vector) {
|
|
@@ -90,10 +90,10 @@ export class Vector4 {
|
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Sets the vector to new coordinates.
|
|
93
|
-
* @param x The new X component for the vector.
|
|
94
|
-
* @param y The new Y component for the vector.
|
|
95
|
-
* @param z The new Z component for the vector.
|
|
96
|
-
* @param w The new W component for the vector.
|
|
93
|
+
* @param x - The new X component for the vector.
|
|
94
|
+
* @param y - The new Y component for the vector.
|
|
95
|
+
* @param z - The new Z component for the vector.
|
|
96
|
+
* @param w - The new W component for the vector.
|
|
97
97
|
* @returns This instance.
|
|
98
98
|
*/
|
|
99
99
|
setXYZW(x, y, z, w) {
|
|
@@ -105,7 +105,7 @@ export class Vector4 {
|
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Adds the XYZ components of another vector to this vector.
|
|
108
|
-
* @param vector The vector to add to this vector.
|
|
108
|
+
* @param vector - The vector to add to this vector.
|
|
109
109
|
* @returns This instance.
|
|
110
110
|
*/
|
|
111
111
|
add3(vector) {
|
|
@@ -113,9 +113,9 @@ export class Vector4 {
|
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Adds the XYZ components of another vector to this vector.
|
|
116
|
-
* @param x The value to add to the X component.
|
|
117
|
-
* @param y The value to add to the Y component.
|
|
118
|
-
* @param z The value to add to the Z component.
|
|
116
|
+
* @param x - The value to add to the X component.
|
|
117
|
+
* @param y - The value to add to the Y component.
|
|
118
|
+
* @param z - The value to add to the Z component.
|
|
119
119
|
* @returns This instance.
|
|
120
120
|
*/
|
|
121
121
|
add3XYZ(x, y, z) {
|
|
@@ -126,8 +126,8 @@ export class Vector4 {
|
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
* Scales another vector and adds its XYZ components to this vector.
|
|
129
|
-
* @param vector The vector to add to this vector.
|
|
130
|
-
* @param scale The scaling to apply to the input vector.
|
|
129
|
+
* @param vector - The vector to add to this vector.
|
|
130
|
+
* @param scale - The scaling to apply to the input vector.
|
|
131
131
|
* @returns This instance.
|
|
132
132
|
*/
|
|
133
133
|
addMultiply3(vector, scale) {
|
|
@@ -135,10 +135,10 @@ export class Vector4 {
|
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* Scales another vector and adds its XYZ components to this vector.
|
|
138
|
-
* @param x The value to add to the X component.
|
|
139
|
-
* @param y The value to add to the Y component.
|
|
140
|
-
* @param z The value to add to the Z component.
|
|
141
|
-
* @param scale The scaling to apply to the input vector.
|
|
138
|
+
* @param x - The value to add to the X component.
|
|
139
|
+
* @param y - The value to add to the Y component.
|
|
140
|
+
* @param z - The value to add to the Z component.
|
|
141
|
+
* @param scale - The scaling to apply to the input vector.
|
|
142
142
|
* @returns This instance.
|
|
143
143
|
*/
|
|
144
144
|
addMultiply3XYZ(x, y, z, scale) {
|
|
@@ -149,7 +149,7 @@ export class Vector4 {
|
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* Subtracts the XYZ components of another vector from this vector.
|
|
152
|
-
* @param vector The vector to subtract from this vector.
|
|
152
|
+
* @param vector - The vector to subtract from this vector.
|
|
153
153
|
* @returns This instance.
|
|
154
154
|
*/
|
|
155
155
|
subtract3(vector) {
|
|
@@ -157,9 +157,9 @@ export class Vector4 {
|
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
159
|
* Subtracts the XYZ components of another vector from this vector.
|
|
160
|
-
* @param x The value to subtract from the X component.
|
|
161
|
-
* @param y The value to subtract from the Y component.
|
|
162
|
-
* @param z The value to subtract from the Z component.
|
|
160
|
+
* @param x - The value to subtract from the X component.
|
|
161
|
+
* @param y - The value to subtract from the Y component.
|
|
162
|
+
* @param z - The value to subtract from the Z component.
|
|
163
163
|
* @returns This instance.
|
|
164
164
|
*/
|
|
165
165
|
subtract3XYZ(x, y, z) {
|
|
@@ -170,7 +170,7 @@ export class Vector4 {
|
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Multiplies the XYZ components of this vector by another vector.
|
|
173
|
-
* @param vector The vector to multiply with this vector.
|
|
173
|
+
* @param vector - The vector to multiply with this vector.
|
|
174
174
|
* @returns This instance.
|
|
175
175
|
*/
|
|
176
176
|
multiply3(vector) {
|
|
@@ -178,9 +178,9 @@ export class Vector4 {
|
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* Multiplies the XYZ components of this vector by another vector.
|
|
181
|
-
* @param x The value to multiply with the X component.
|
|
182
|
-
* @param y The value to multiply with the Y component.
|
|
183
|
-
* @param z The value to multiply with the Z component.
|
|
181
|
+
* @param x - The value to multiply with the X component.
|
|
182
|
+
* @param y - The value to multiply with the Y component.
|
|
183
|
+
* @param z - The value to multiply with the Z component.
|
|
184
184
|
* @returns This instance.
|
|
185
185
|
*/
|
|
186
186
|
multiply3XYZ(x, y, z) {
|
|
@@ -191,7 +191,7 @@ export class Vector4 {
|
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* Multiplies the XYZ components of the vector by the given scale.
|
|
194
|
-
* @param scale The scaling to apply to the vector.
|
|
194
|
+
* @param scale - The scaling to apply to the vector.
|
|
195
195
|
* @returns This instance.
|
|
196
196
|
*/
|
|
197
197
|
multiply3Scale(scale) {
|
|
@@ -202,7 +202,7 @@ export class Vector4 {
|
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* Divides the XYZ components of this vector by another vector.
|
|
205
|
-
* @param vector The vector to divide this vector with.
|
|
205
|
+
* @param vector - The vector to divide this vector with.
|
|
206
206
|
* @returns This instance.
|
|
207
207
|
*/
|
|
208
208
|
divide3(vector) {
|
|
@@ -210,9 +210,9 @@ export class Vector4 {
|
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* Divides the XYZ components of this vector by another vector.
|
|
213
|
-
* @param x The value to divide the X component with.
|
|
214
|
-
* @param y The value to divide the Y component with.
|
|
215
|
-
* @param z The value to divide the Z component with.
|
|
213
|
+
* @param x - The value to divide the X component with.
|
|
214
|
+
* @param y - The value to divide the Y component with.
|
|
215
|
+
* @param z - The value to divide the Z component with.
|
|
216
216
|
* @returns This instance.
|
|
217
217
|
*/
|
|
218
218
|
divide3XYZ(x, y, z) {
|
|
@@ -223,7 +223,7 @@ export class Vector4 {
|
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
225
|
* Divides the XYZ components of the vector by the given scale.
|
|
226
|
-
* @param scale The scaling to apply to the vector.
|
|
226
|
+
* @param scale - The scaling to apply to the vector.
|
|
227
227
|
* @returns This instance.
|
|
228
228
|
*/
|
|
229
229
|
divide3Scale(scale) {
|
|
@@ -254,8 +254,8 @@ export class Vector4 {
|
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Clamps the components of the vector at the given boundary.
|
|
257
|
-
* @param floor The lowest value to allow.
|
|
258
|
-
* @param ceil The largest value to allow.
|
|
257
|
+
* @param floor - The lowest value to allow.
|
|
258
|
+
* @param ceil - The largest value to allow.
|
|
259
259
|
* @returns This instance.
|
|
260
260
|
*/
|
|
261
261
|
clamp(floor, ceil) {
|
|
@@ -287,8 +287,8 @@ export class Vector4 {
|
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
289
|
* Linearly moves this vector towards a target vector.
|
|
290
|
-
* @param vector The target vector.
|
|
291
|
-
* @param t The location on the scale, from `0` to `1`.
|
|
290
|
+
* @param vector - The target vector.
|
|
291
|
+
* @param t - The location on the scale, from `0` to `1`.
|
|
292
292
|
* @returns This instance.
|
|
293
293
|
*/
|
|
294
294
|
lerp(vector, t) {
|
|
@@ -6,20 +6,21 @@ import { ConstructorOf } from "./core.js";
|
|
|
6
6
|
export type Nil = null | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* A type that could be either what you want, or `Nil`.
|
|
9
|
+
* @typeParam T - The type that should be made nillable.
|
|
9
10
|
*/
|
|
10
11
|
export type Maybe<T> = T | Nil;
|
|
11
12
|
/**
|
|
12
13
|
* Check if something is nil.
|
|
13
14
|
* Can be used as a typeguard.
|
|
14
|
-
* @param subject The subject that could be nil.
|
|
15
|
+
* @param subject - The subject that could be nil.
|
|
15
16
|
* @returns `true` if the subject is nil, `false` otherwise.
|
|
16
17
|
*/
|
|
17
18
|
export declare function isNil<T>(subject: Maybe<T>): subject is Nil;
|
|
18
19
|
/**
|
|
19
20
|
* Check if something is a concrete value of the given type.
|
|
20
21
|
* Can be used as a typeguard.
|
|
21
|
-
* @param nilable The subject that could be nil.
|
|
22
|
-
* @param InstanceType The type to check against.
|
|
22
|
+
* @param nilable - The subject that could be nil.
|
|
23
|
+
* @param InstanceType - The type to check against.
|
|
23
24
|
* @returns `true` if the input element matches the given type,
|
|
24
25
|
* `false` otherwise.
|
|
25
26
|
*/
|
|
@@ -30,21 +31,22 @@ export declare function is<T>(nilable: Maybe<T>, InstanceType: ConstructorOf<T>)
|
|
|
30
31
|
*/
|
|
31
32
|
export declare class UnexpectedNilError extends Error {
|
|
32
33
|
/**
|
|
33
|
-
* Constructs a new {UnexpectedNilError}.
|
|
34
|
-
* @param message The error message.
|
|
34
|
+
* Constructs a new {@linkcode UnexpectedNilError}.
|
|
35
|
+
* @param message - The error message.
|
|
35
36
|
*/
|
|
36
37
|
constructor(message?: string);
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Ensure that the passed subject is not nil; throw otherwise.
|
|
40
|
-
* @param subject A subject that is possible nil.
|
|
41
|
-
* @param errorMessage An optional error message to throw when the subject is nil.
|
|
41
|
+
* @param subject - A subject that is possible nil.
|
|
42
|
+
* @param errorMessage - An optional error message to throw when the subject is nil.
|
|
42
43
|
* @returns The subject, if it isn't nil.
|
|
43
|
-
* @throws {UnexpectedNilError} When the subject is nil.
|
|
44
|
+
* @throws {@linkcode UnexpectedNilError} When the subject is nil.
|
|
44
45
|
*/
|
|
45
46
|
export declare function mustExist<T>(subject: Maybe<T>, errorMessage?: string): T;
|
|
46
47
|
/**
|
|
47
48
|
* Ensure that the passed subject is not nil; throw otherwise.
|
|
48
|
-
* @param subject A subject that is possibly nil.
|
|
49
|
+
* @param subject - A subject that is possibly nil.
|
|
50
|
+
* @throws {@linkcode UnexpectedNilError} When the subject is nil.
|
|
49
51
|
*/
|
|
50
52
|
export declare function assertExists<T>(subject: Maybe<T>): asserts subject is T;
|
package/{lib/nil.js → nil.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Check if something is nil.
|
|
3
3
|
* Can be used as a typeguard.
|
|
4
|
-
* @param subject The subject that could be nil.
|
|
4
|
+
* @param subject - The subject that could be nil.
|
|
5
5
|
* @returns `true` if the subject is nil, `false` otherwise.
|
|
6
6
|
*/
|
|
7
7
|
export function isNil(subject) {
|
|
@@ -10,8 +10,8 @@ export function isNil(subject) {
|
|
|
10
10
|
/**
|
|
11
11
|
* Check if something is a concrete value of the given type.
|
|
12
12
|
* Can be used as a typeguard.
|
|
13
|
-
* @param nilable The subject that could be nil.
|
|
14
|
-
* @param InstanceType The type to check against.
|
|
13
|
+
* @param nilable - The subject that could be nil.
|
|
14
|
+
* @param InstanceType - The type to check against.
|
|
15
15
|
* @returns `true` if the input element matches the given type,
|
|
16
16
|
* `false` otherwise.
|
|
17
17
|
*/
|
|
@@ -24,8 +24,8 @@ export function is(nilable, InstanceType) {
|
|
|
24
24
|
*/
|
|
25
25
|
export class UnexpectedNilError extends Error {
|
|
26
26
|
/**
|
|
27
|
-
* Constructs a new {UnexpectedNilError}.
|
|
28
|
-
* @param message The error message.
|
|
27
|
+
* Constructs a new {@linkcode UnexpectedNilError}.
|
|
28
|
+
* @param message - The error message.
|
|
29
29
|
*/
|
|
30
30
|
constructor(message = "unexpected nil value") {
|
|
31
31
|
super(message);
|
|
@@ -33,10 +33,10 @@ export class UnexpectedNilError extends Error {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Ensure that the passed subject is not nil; throw otherwise.
|
|
36
|
-
* @param subject A subject that is possible nil.
|
|
37
|
-
* @param errorMessage An optional error message to throw when the subject is nil.
|
|
36
|
+
* @param subject - A subject that is possible nil.
|
|
37
|
+
* @param errorMessage - An optional error message to throw when the subject is nil.
|
|
38
38
|
* @returns The subject, if it isn't nil.
|
|
39
|
-
* @throws {UnexpectedNilError} When the subject is nil.
|
|
39
|
+
* @throws {@linkcode UnexpectedNilError} When the subject is nil.
|
|
40
40
|
*/
|
|
41
41
|
export function mustExist(subject, errorMessage) {
|
|
42
42
|
if (isNil(subject)) {
|
|
@@ -46,7 +46,8 @@ export function mustExist(subject, errorMessage) {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Ensure that the passed subject is not nil; throw otherwise.
|
|
49
|
-
* @param subject A subject that is possibly nil.
|
|
49
|
+
* @param subject - A subject that is possibly nil.
|
|
50
|
+
* @throws {@linkcode UnexpectedNilError} When the subject is nil.
|
|
50
51
|
*/
|
|
51
52
|
export function assertExists(subject) {
|
|
52
53
|
if (isNil(subject)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../source/nil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nil.js","sourceRoot":"","sources":["../source/nil.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,MAAM,UAAU,KAAK,CAAI,OAAiB;IACxC,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AACnD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,EAAE,CAAI,OAAiB,EAAE,YAA8B;IACrE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,OAAO,YAAY,YAAY,CAAC;AAC5D,CAAC;AAED;;;GAGG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C;;;OAGG;IACH,YAAY,OAAO,GAAG,sBAAsB;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAI,OAAiB,EAAE,YAAqB;IACnE,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;QAClB,MAAM,IAAI,kBAAkB,CAAC,YAAY,CAAC,CAAC;KAC5C;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAI,OAAiB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;QAClB,MAAM,IAAI,kBAAkB,EAAE,CAAC;KAChC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,52 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@oliversalzburg/js-utils",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19-dev.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/oliversalzburg/js-utils"
|
|
10
|
+
},
|
|
7
11
|
"type": "module",
|
|
8
12
|
"exports": {
|
|
9
|
-
".": "./
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"./lib/*.js": "./lib/*.js"
|
|
13
|
+
".": "./index.js",
|
|
14
|
+
"./*": "./*.js",
|
|
15
|
+
"./*.js": "./*.js"
|
|
13
16
|
},
|
|
14
17
|
"scripts": {
|
|
15
18
|
"build": "yarn run build:tsc",
|
|
16
|
-
"build:esbuild": "node build.js",
|
|
17
19
|
"build:tsc": "tsc",
|
|
18
20
|
"build:tsc:watch": "tsc --watch",
|
|
21
|
+
"clean": "rm -rf ./coverage ./",
|
|
19
22
|
"docs:typedoc": "typedoc",
|
|
20
23
|
"lint": "yarn run lint:all",
|
|
21
24
|
"lint:all": "yarn run lint:eslint && yarn run lint:prettier && yarn run lint:tsc",
|
|
22
25
|
"lint:eslint": "eslint .",
|
|
23
26
|
"lint:prettier": "prettier --check .",
|
|
24
27
|
"lint:tsc": "tsc --noEmit",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"npm:publish:patch": "npm version patch && npm publish",
|
|
29
|
-
"prepack": "yarn run build",
|
|
30
|
-
"test": "node --enable-source-maps $(yarn bin mocha) ./lib/*.test.js",
|
|
31
|
-
"test:coverage": "c8 --reporter html-spa --reporter text node --enable-source-maps $(yarn bin mocha)",
|
|
32
|
-
"test:inspect": "node $(yarn bin mocha) --inspect ./lib/*.test.js"
|
|
28
|
+
"test": "node $(yarn bin mocha) --enable-source-maps",
|
|
29
|
+
"test:coverage": "c8 --reporter html-spa --reporter text node $(yarn bin mocha) --enable-source-maps",
|
|
30
|
+
"test:inspect": "node $(yarn bin mocha) --inspect"
|
|
33
31
|
},
|
|
34
|
-
"types": "./
|
|
32
|
+
"types": "./index.d.ts",
|
|
35
33
|
"devDependencies": {
|
|
36
34
|
"@types/chai": "4.3.10",
|
|
37
35
|
"@types/chai-as-promised": "7.1.8",
|
|
38
36
|
"@types/eslint": "8.44.7",
|
|
39
37
|
"@types/mocha": "10.0.4",
|
|
40
|
-
"@types/node": "20.9.
|
|
38
|
+
"@types/node": "20.9.1",
|
|
41
39
|
"@types/web": "0.0.119",
|
|
42
40
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
|
43
41
|
"@typescript-eslint/parser": "6.11.0",
|
|
44
42
|
"c8": "8.0.1",
|
|
45
43
|
"chai": "4.3.10",
|
|
46
44
|
"chai-as-promised": "7.1.1",
|
|
47
|
-
"
|
|
48
|
-
"eslint": "8.53.0",
|
|
45
|
+
"eslint": "8.54.0",
|
|
49
46
|
"eslint-plugin-jsdoc": "46.9.0",
|
|
47
|
+
"eslint-plugin-tsdoc": "0.2.17",
|
|
50
48
|
"lint-staged": "15.1.0",
|
|
51
49
|
"mocha": "10.2.0",
|
|
52
50
|
"prettier": "3.1.0",
|
|
@@ -33,7 +33,7 @@ export declare class Random {
|
|
|
33
33
|
*
|
|
34
34
|
* Uses an optimized version of the Park-Miller PRNG.
|
|
35
35
|
* http://www.firstpr.com.au/dsp/rand31/
|
|
36
|
-
* @param seed The seed for the random number generator.
|
|
36
|
+
* @param seed - The seed for the random number generator.
|
|
37
37
|
*/
|
|
38
38
|
constructor(seed?: number);
|
|
39
39
|
/**
|
|
@@ -43,8 +43,8 @@ export declare class Random {
|
|
|
43
43
|
next(): number;
|
|
44
44
|
/**
|
|
45
45
|
* Returns a random value in a given range.
|
|
46
|
-
* @param min The lower bound.
|
|
47
|
-
* @param max The upper bound.
|
|
46
|
+
* @param min - The lower bound.
|
|
47
|
+
* @param max - The upper bound.
|
|
48
48
|
* @returns A random value between the lower and upper bound.
|
|
49
49
|
*/
|
|
50
50
|
nextRange(min: number, max: number): number;
|
|
@@ -60,22 +60,16 @@ export declare class Random {
|
|
|
60
60
|
nextFloat(): number;
|
|
61
61
|
/**
|
|
62
62
|
* Returns a 2D simplex noise value for a given input coordinate.
|
|
63
|
-
* @
|
|
64
|
-
* @
|
|
65
|
-
* @see https://github.com/josephg/noisejs
|
|
66
|
-
* @param x The X input coordinate.
|
|
67
|
-
* @param y The Y input coordinate.
|
|
63
|
+
* @param x - The X input coordinate.
|
|
64
|
+
* @param y - The Y input coordinate.
|
|
68
65
|
* @returns The noise value for the input coordinates.
|
|
69
66
|
*/
|
|
70
67
|
simplex2(x: number, y: number): number;
|
|
71
68
|
/**
|
|
72
69
|
* Returns a 3D simplex noise value for a given input coordinate.
|
|
73
|
-
* @
|
|
74
|
-
* @
|
|
75
|
-
* @
|
|
76
|
-
* @param x The X input coordinate.
|
|
77
|
-
* @param y The Y input coordinate.
|
|
78
|
-
* @param z The Z input coordinate.
|
|
70
|
+
* @param x - The X input coordinate.
|
|
71
|
+
* @param y - The Y input coordinate.
|
|
72
|
+
* @param z - The Z input coordinate.
|
|
79
73
|
* @returns The noise value for the input coordinates.
|
|
80
74
|
*/
|
|
81
75
|
simplex3(x: number, y: number, z: number): number;
|
|
@@ -83,8 +77,8 @@ export declare class Random {
|
|
|
83
77
|
/**
|
|
84
78
|
* Returns a random value in a given range.
|
|
85
79
|
* Uses the JS-internal `Math.random()`. Use {@linkcode Random} for a PRNG with more features.
|
|
86
|
-
* @param min The lower bound.
|
|
87
|
-
* @param max The upper bound.
|
|
80
|
+
* @param min - The lower bound.
|
|
81
|
+
* @param max - The upper bound.
|
|
88
82
|
* @returns A random value between the lower and upper bound.
|
|
89
83
|
* @group Random
|
|
90
84
|
*/
|
|
@@ -92,7 +86,7 @@ export declare const randomRange: (min: number, max: number) => number;
|
|
|
92
86
|
/**
|
|
93
87
|
* Generates a numberic seed, to be used as an input for a PRNG,
|
|
94
88
|
* from a string.
|
|
95
|
-
* @param input The string to use as a seed.
|
|
89
|
+
* @param input - The string to use as a seed.
|
|
96
90
|
* @returns A numeric seed value for a PRNG.
|
|
97
91
|
* @group Random
|
|
98
92
|
*/
|
|
@@ -36,7 +36,7 @@ export class Random {
|
|
|
36
36
|
*
|
|
37
37
|
* Uses an optimized version of the Park-Miller PRNG.
|
|
38
38
|
* http://www.firstpr.com.au/dsp/rand31/
|
|
39
|
-
* @param seed The seed for the random number generator.
|
|
39
|
+
* @param seed - The seed for the random number generator.
|
|
40
40
|
*/
|
|
41
41
|
constructor(seed = 0) {
|
|
42
42
|
this._seed = Math.trunc(seed) % 2147483647;
|
|
@@ -97,8 +97,8 @@ export class Random {
|
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Returns a random value in a given range.
|
|
100
|
-
* @param min The lower bound.
|
|
101
|
-
* @param max The upper bound.
|
|
100
|
+
* @param min - The lower bound.
|
|
101
|
+
* @param max - The upper bound.
|
|
102
102
|
* @returns A random value between the lower and upper bound.
|
|
103
103
|
*/
|
|
104
104
|
nextRange(min, max) {
|
|
@@ -121,11 +121,8 @@ export class Random {
|
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* Returns a 2D simplex noise value for a given input coordinate.
|
|
124
|
-
* @
|
|
125
|
-
* @
|
|
126
|
-
* @see https://github.com/josephg/noisejs
|
|
127
|
-
* @param x The X input coordinate.
|
|
128
|
-
* @param y The Y input coordinate.
|
|
124
|
+
* @param x - The X input coordinate.
|
|
125
|
+
* @param y - The Y input coordinate.
|
|
129
126
|
* @returns The noise value for the input coordinates.
|
|
130
127
|
*/
|
|
131
128
|
simplex2(x, y) {
|
|
@@ -194,12 +191,9 @@ export class Random {
|
|
|
194
191
|
}
|
|
195
192
|
/**
|
|
196
193
|
* Returns a 3D simplex noise value for a given input coordinate.
|
|
197
|
-
* @
|
|
198
|
-
* @
|
|
199
|
-
* @
|
|
200
|
-
* @param x The X input coordinate.
|
|
201
|
-
* @param y The Y input coordinate.
|
|
202
|
-
* @param z The Z input coordinate.
|
|
194
|
+
* @param x - The X input coordinate.
|
|
195
|
+
* @param y - The Y input coordinate.
|
|
196
|
+
* @param z - The Z input coordinate.
|
|
203
197
|
* @returns The noise value for the input coordinates.
|
|
204
198
|
*/
|
|
205
199
|
simplex3(x, y, z) {
|
|
@@ -333,8 +327,8 @@ export class Random {
|
|
|
333
327
|
/**
|
|
334
328
|
* Returns a random value in a given range.
|
|
335
329
|
* Uses the JS-internal `Math.random()`. Use {@linkcode Random} for a PRNG with more features.
|
|
336
|
-
* @param min The lower bound.
|
|
337
|
-
* @param max The upper bound.
|
|
330
|
+
* @param min - The lower bound.
|
|
331
|
+
* @param max - The upper bound.
|
|
338
332
|
* @returns A random value between the lower and upper bound.
|
|
339
333
|
* @group Random
|
|
340
334
|
*/
|
|
@@ -344,7 +338,7 @@ export const randomRange = (min, max) => {
|
|
|
344
338
|
/**
|
|
345
339
|
* Generates a numberic seed, to be used as an input for a PRNG,
|
|
346
340
|
* from a string.
|
|
347
|
-
* @param input The string to use as a seed.
|
|
341
|
+
* @param input - The string to use as a seed.
|
|
348
342
|
* @returns A numeric seed value for a PRNG.
|
|
349
343
|
* @group Random
|
|
350
344
|
*/
|
package/random.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"random.js","sourceRoot":"","sources":["../source/random.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C;;;GAGG;AACH,MAAM,OAAO,MAAM;IACjB;;OAEG;IACK,KAAK,CAAS;IAEtB;;;OAGG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACK,KAAK,CAAgB;IAE7B;;OAEG;IACK,MAAM,CAAiB;IAE/B;;OAEG;IACK,GAAG,CAAS;IAEpB;;OAEG;IACK,GAAG,CAAS;IAEpB;;;;;;OAMG;IACH,YAAY,IAAI,GAAG,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;QAC3C,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE;YACnB,IAAI,CAAC,KAAK,IAAI,UAAU,CAAC;SAC1B;QAED,MAAM,KAAK,GAAG;YACZ,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACpB,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACrB,IAAI,OAAO,CAAC,CAAC,EAAE,CA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GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC3C,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE;IAC9C,OAAO,KAAK;SACT,KAAK,CAAC,EAAE,CAAC;SACT,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats a given input string with numeric placeholders.
|
|
3
3
|
* @example
|
|
4
|
+
* ```ts
|
|
4
5
|
* // returns "Hello World"
|
|
5
6
|
* formatString("{0} {1}", ["Hello", "World"]);
|
|
6
|
-
*
|
|
7
|
-
* @param
|
|
7
|
+
* ```
|
|
8
|
+
* @param string - The input string with placeholders.
|
|
9
|
+
* @param formatArguments - An array of strings to place into the placeholders.
|
|
8
10
|
* @returns The formatted string.
|
|
9
11
|
* @group Strings
|
|
10
12
|
*/
|
|
@@ -12,10 +14,12 @@ export declare const formatString: (string: string, ...formatArguments: Array<st
|
|
|
12
14
|
/**
|
|
13
15
|
* Formats a given input string with alphanumeric placeholders.
|
|
14
16
|
* @example
|
|
17
|
+
* ```ts
|
|
15
18
|
* // returns "Hello World"
|
|
16
19
|
* formatString("{first} {second}", {first:"Hello", second:"World"});
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
20
|
+
* ```
|
|
21
|
+
* @param string - The input string with placeholders.
|
|
22
|
+
* @param parameters - A hash of parameters to place in the placeholders.
|
|
19
23
|
* @returns The formatted string.
|
|
20
24
|
* @group Strings
|
|
21
25
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats a given input string with numeric placeholders.
|
|
3
3
|
* @example
|
|
4
|
+
* ```ts
|
|
4
5
|
* // returns "Hello World"
|
|
5
6
|
* formatString("{0} {1}", ["Hello", "World"]);
|
|
6
|
-
*
|
|
7
|
-
* @param
|
|
7
|
+
* ```
|
|
8
|
+
* @param string - The input string with placeholders.
|
|
9
|
+
* @param formatArguments - An array of strings to place into the placeholders.
|
|
8
10
|
* @returns The formatted string.
|
|
9
11
|
* @group Strings
|
|
10
12
|
*/
|
|
@@ -14,10 +16,12 @@ export const formatString = (string, ...formatArguments) => {
|
|
|
14
16
|
/**
|
|
15
17
|
* Formats a given input string with alphanumeric placeholders.
|
|
16
18
|
* @example
|
|
19
|
+
* ```ts
|
|
17
20
|
* // returns "Hello World"
|
|
18
21
|
* formatString("{first} {second}", {first:"Hello", second:"World"});
|
|
19
|
-
*
|
|
20
|
-
* @param
|
|
22
|
+
* ```
|
|
23
|
+
* @param string - The input string with placeholders.
|
|
24
|
+
* @param parameters - A hash of parameters to place in the placeholders.
|
|
21
25
|
* @returns The formatted string.
|
|
22
26
|
* @group Strings
|
|
23
27
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-formatter.js","sourceRoot":"","sources":["../source/string-formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,GAAG,eAA8B,EAAU,EAAE;IACxF,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,aAAqB,EAAU,EAAE,CACzE,OAAO,eAAe,CAAC,aAAa,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAC/F,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,MAAc,EACd,UAA8C,EACtC,EAAE;IACV,MAAM,GAAG,MAAM,CAAC,OAAO,CACrB,YAAY,EACZ,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,qBAAqB,CAC/E,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|