dl-common-util 0.1.2 → 0.1.3
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/dl-common-util.d.ts +20 -20
- package/dl-common-util.js +419 -415
- package/dl-common-util.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4486 -3871
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
- package/kotlinx-atomicfu.js +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
factory(module.exports);
|
|
6
6
|
else
|
|
7
7
|
root['Kotlin-DateTime-library-kotlinx-datetime'] = factory(typeof this['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined' ? {} : this['Kotlin-DateTime-library-kotlinx-datetime']);
|
|
8
|
-
}(
|
|
8
|
+
}(globalThis, function (_) {
|
|
9
9
|
'use strict';
|
|
10
10
|
//region block: pre-declaration
|
|
11
11
|
//endregion
|
package/dl-common-util.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
export declare namespace com.d10ng.common.base {
|
|
3
|
-
function byteArrayToBinString(_this_
|
|
4
|
-
function byteArrayToHexString(_this_
|
|
3
|
+
function byteArrayToBinString(_this_?: Int8Array, space?: boolean): string;
|
|
4
|
+
function byteArrayToHexString(_this_?: Int8Array, space?: boolean, uppercase?: boolean): string;
|
|
5
5
|
function byteArrayToUnsignedInt(_this_: Int8Array): number;
|
|
6
6
|
function byteArrayToUnsignedLong(_this_: Int8Array): any/* kotlin.Long */;
|
|
7
7
|
function indexOfByteArray(_this_: Int8Array, bs: Int8Array): number;
|
|
8
|
-
function byteArrayPadStart(_this_: Int8Array, length
|
|
9
|
-
function byteArrayPadEnd(_this_: Int8Array, length
|
|
8
|
+
function byteArrayPadStart(_this_: Int8Array, length?: number, padByte?: number): Int8Array;
|
|
9
|
+
function byteArrayPadEnd(_this_: Int8Array, length?: number, padByte?: number): Int8Array;
|
|
10
10
|
function byteArrayGetBitRange(_this_: Int8Array, start: number, length: number): Int8Array;
|
|
11
11
|
}
|
|
12
12
|
export declare namespace com.d10ng.common.base {
|
|
@@ -38,7 +38,7 @@ export declare namespace com.d10ng.common.base {
|
|
|
38
38
|
}
|
|
39
39
|
export declare namespace com.d10ng.common.base {
|
|
40
40
|
function byteToBinString(_this_: number): string;
|
|
41
|
-
function byteToHexString(_this_
|
|
41
|
+
function byteToHexString(_this_?: number, uppercase?: boolean): string;
|
|
42
42
|
function byteToUnsignedInt(_this_: number): number;
|
|
43
43
|
function byteGetBit(_this_: number, bitIndex: number): number;
|
|
44
44
|
}
|
|
@@ -66,14 +66,14 @@ export declare namespace com.d10ng.common.calculate {
|
|
|
66
66
|
get name(): "XOR";
|
|
67
67
|
get ordinal(): 2;
|
|
68
68
|
};
|
|
69
|
-
static values(): Array<com.d10ng.common.calculate.ChecksumType>;
|
|
70
|
-
static valueOf(value: string): com.d10ng.common.calculate.ChecksumType;
|
|
71
69
|
get name(): "AND" | "OR" | "XOR";
|
|
72
70
|
get ordinal(): 0 | 1 | 2;
|
|
71
|
+
static values(): Array<com.d10ng.common.calculate.ChecksumType>;
|
|
72
|
+
static valueOf(value: string): com.d10ng.common.calculate.ChecksumType;
|
|
73
73
|
}
|
|
74
|
-
function assertChecksum(_this_
|
|
75
|
-
function getChecksum(_this_
|
|
76
|
-
function addChecksum(_this_
|
|
74
|
+
function assertChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): boolean;
|
|
75
|
+
function getChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType, start?: number, length?: number): number;
|
|
76
|
+
function addChecksum(_this_?: Int8Array, type?: com.d10ng.common.calculate.ChecksumType): Int8Array;
|
|
77
77
|
}
|
|
78
78
|
export declare namespace com.d10ng.common.calculate {
|
|
79
79
|
function isDarkColor(color: string): boolean;
|
|
@@ -125,10 +125,10 @@ export declare namespace com.d10ng.common.coordinate {
|
|
|
125
125
|
get name(): "BD09";
|
|
126
126
|
get ordinal(): 2;
|
|
127
127
|
};
|
|
128
|
-
static values(): Array<com.d10ng.common.coordinate.CoordinateSystemType>;
|
|
129
|
-
static valueOf(value: string): com.d10ng.common.coordinate.CoordinateSystemType;
|
|
130
128
|
get name(): "WGS84" | "GCJ02" | "BD09";
|
|
131
129
|
get ordinal(): 0 | 1 | 2;
|
|
130
|
+
static values(): Array<com.d10ng.common.coordinate.CoordinateSystemType>;
|
|
131
|
+
static valueOf(value: string): com.d10ng.common.coordinate.CoordinateSystemType;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
export declare namespace com.d10ng.common.coordinate {
|
|
@@ -137,13 +137,13 @@ export declare namespace com.d10ng.common.coordinate {
|
|
|
137
137
|
function isNorthLatitude(_this_: number): boolean;
|
|
138
138
|
function toLongitudeNoPre(_this_: number): number;
|
|
139
139
|
function toLatitudeNoPre(_this_: number): number;
|
|
140
|
-
function toFullLongitude(_this_: number, isEast
|
|
141
|
-
function toFullLatitude(_this_: number, isNorth
|
|
140
|
+
function toFullLongitude(_this_: number, isEast?: boolean, isPositive?: boolean): number;
|
|
141
|
+
function toFullLatitude(_this_: number, isNorth?: boolean, isPositive?: boolean): number;
|
|
142
142
|
function toDMS(_this_: number, isLongitude: boolean): com.d10ng.common.coordinate.DMS;
|
|
143
143
|
function toLatLng(_this_: com.d10ng.common.coordinate.DMS): number;
|
|
144
|
-
function toLatLngString(_this_: number, isLongitude
|
|
145
|
-
function toLongitudeString(_this_
|
|
146
|
-
function toLatitudeString(_this_
|
|
144
|
+
function toLatLngString(_this_: number, isLongitude?: boolean, pattern?: string): string;
|
|
145
|
+
function toLongitudeString(_this_?: number, pattern?: string): string;
|
|
146
|
+
function toLatitudeString(_this_?: number, pattern?: string): string;
|
|
147
147
|
function toLatLngByString(_this_: string, pattern: string): number;
|
|
148
148
|
function toLongitude(_this_: string, pattern: string): number;
|
|
149
149
|
function toLatitude(_this_: string, pattern: string): number;
|
|
@@ -205,7 +205,7 @@ export declare namespace com.d10ng.common.transform {
|
|
|
205
205
|
function encodeUTF8(_this_: string): Int8Array;
|
|
206
206
|
function decodeUTF8(_this_: Int8Array): string;
|
|
207
207
|
function encodeUnicode(_this_: string): Int8Array;
|
|
208
|
-
function encodeUnicodeString(_this_
|
|
208
|
+
function encodeUnicodeString(_this_?: string, isNeedU?: boolean): string;
|
|
209
209
|
function decodeUnicode(_this_: Int8Array): string;
|
|
210
210
|
function decodeUnicodeString(_this_: string): string;
|
|
211
211
|
function encodeASCII(_this_: string): Int8Array;
|
|
@@ -214,11 +214,11 @@ export declare namespace com.d10ng.common.transform {
|
|
|
214
214
|
function decodeASCIIString(_this_: string): string;
|
|
215
215
|
}
|
|
216
216
|
export declare namespace com.d10ng.common.transform {
|
|
217
|
-
function toPinYin(_this_
|
|
217
|
+
function toPinYin(_this_?: string, separator?: string): string;
|
|
218
218
|
}
|
|
219
219
|
export declare namespace com.d10ng.common.base {
|
|
220
220
|
function numberToString(_this_: any/* kotlin.Number */, maxDecimalCount: number): string;
|
|
221
|
-
function numberToByteArray(_this_
|
|
221
|
+
function numberToByteArray(_this_?: any/* kotlin.Number */, size?: number): Int8Array;
|
|
222
222
|
function asLong(_this_: any/* kotlin.Number */): any/* kotlin.Long */;
|
|
223
223
|
}
|
|
224
224
|
export as namespace com_github_D10NGYANG_DLCommonUtil;
|