dl-common-util 0.0.3 → 0.0.4

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/buffer-kt.js CHANGED
@@ -1,31 +1,31 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
6
  else {
7
- if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
- throw new Error("Error loading module 'buffer-kt'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'buffer-kt'.");
7
+ if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'buffer-kt'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'buffer-kt'.");
9
9
  }
10
- root['buffer-kt'] = factory(typeof this['buffer-kt'] === 'undefined' ? {} : this['buffer-kt'], this['kotlin-kotlin-stdlib-js-ir']);
10
+ root['buffer-kt'] = factory(typeof this['buffer-kt'] === 'undefined' ? {} : this['buffer-kt'], this['kotlin-kotlin-stdlib']);
11
11
  }
12
12
  }(this, function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
15
  var imul = Math.imul;
16
- var protoOf = kotlin_kotlin.$_$.q1;
17
- var objectMeta = kotlin_kotlin.$_$.p1;
18
- var VOID = kotlin_kotlin.$_$.g3;
19
- var setMetadataFor = kotlin_kotlin.$_$.r1;
20
- var classMeta = kotlin_kotlin.$_$.f1;
21
- var Unit_getInstance = kotlin_kotlin.$_$.r;
22
- var Enum = kotlin_kotlin.$_$.a3;
23
- var interfaceMeta = kotlin_kotlin.$_$.l1;
24
- var ByteCompanionObject_getInstance = kotlin_kotlin.$_$.p;
25
- var equals = kotlin_kotlin.$_$.i1;
26
- var THROW_CCE = kotlin_kotlin.$_$.c3;
27
- var contentEquals = kotlin_kotlin.$_$.t;
28
- var hashCode = kotlin_kotlin.$_$.k1;
16
+ var protoOf = kotlin_kotlin.$_$.s1;
17
+ var objectMeta = kotlin_kotlin.$_$.r1;
18
+ var setMetadataFor = kotlin_kotlin.$_$.t1;
19
+ var classMeta = kotlin_kotlin.$_$.g1;
20
+ var Unit_instance = kotlin_kotlin.$_$.s;
21
+ var Enum = kotlin_kotlin.$_$.c3;
22
+ var interfaceMeta = kotlin_kotlin.$_$.n1;
23
+ var VOID = kotlin_kotlin.$_$.b;
24
+ var ByteCompanionObject_instance = kotlin_kotlin.$_$.q;
25
+ var THROW_CCE = kotlin_kotlin.$_$.e3;
26
+ var contentEquals = kotlin_kotlin.$_$.u;
27
+ var getBooleanHashCode = kotlin_kotlin.$_$.k1;
28
+ var hashCode = kotlin_kotlin.$_$.m1;
29
29
  //endregion
30
30
  //region block: pre-declaration
31
31
  setMetadataFor(AllocationZone, 'AllocationZone', classMeta);
@@ -35,17 +35,17 @@
35
35
  setMetadataFor(ByteOrder, 'ByteOrder', classMeta, Enum);
36
36
  setMetadataFor(Companion, 'Companion', objectMeta);
37
37
  function remaining() {
38
- return this.xa() - this.ya() | 0;
38
+ return this.v9() - this.w9() | 0;
39
39
  }
40
40
  function hasRemaining() {
41
- return this.ya() < this.xa();
41
+ return this.w9() < this.v9();
42
42
  }
43
43
  setMetadataFor(PositionBuffer, 'PositionBuffer', interfaceMeta);
44
44
  function writeBytes(bytes) {
45
- return this.cb(bytes, 0, bytes.length);
45
+ return this.ca(bytes, 0, bytes.length);
46
46
  }
47
47
  setMetadataFor(WriteBuffer, 'WriteBuffer', interfaceMeta, VOID, [PositionBuffer]);
48
- setMetadataFor(JsBuffer, 'JsBuffer', classMeta, VOID, [PositionBuffer, WriteBuffer], VOID, VOID, [0]);
48
+ setMetadataFor(JsBuffer, 'JsBuffer', classMeta, VOID, [WriteBuffer, PositionBuffer], VOID, VOID, VOID, [0]);
49
49
  //endregion
50
50
  function Heap() {
51
51
  Heap_instance = this;
@@ -68,7 +68,7 @@
68
68
  var ByteOrder_entriesInitialized;
69
69
  function ByteOrder_initEntries() {
70
70
  if (ByteOrder_entriesInitialized)
71
- return Unit_getInstance();
71
+ return Unit_instance;
72
72
  ByteOrder_entriesInitialized = true;
73
73
  ByteOrder_BIG_ENDIAN_instance = new ByteOrder('BIG_ENDIAN', 0);
74
74
  ByteOrder_LITTLE_ENDIAN_instance = new ByteOrder('LITTLE_ENDIAN', 1);
@@ -85,12 +85,9 @@
85
85
  return ByteOrder_LITTLE_ENDIAN_instance;
86
86
  }
87
87
  function Companion() {
88
- Companion_instance = this;
89
88
  }
90
89
  var Companion_instance;
91
90
  function Companion_getInstance() {
92
- if (Companion_instance == null)
93
- new Companion();
94
91
  return Companion_instance;
95
92
  }
96
93
  function PositionBuffer() {
@@ -107,7 +104,7 @@
107
104
  zone = zone === VOID ? Heap_getInstance() : zone;
108
105
  byteOrder = byteOrder === VOID ? ByteOrder_BIG_ENDIAN_getInstance() : byteOrder;
109
106
  if (zone instanceof Custom) {
110
- return zone.db_1(size);
107
+ return zone.da_1(size);
111
108
  }
112
109
  var tmp;
113
110
  try {
@@ -155,111 +152,113 @@
155
152
  limit = limit === VOID ? 0 : limit;
156
153
  capacity = capacity === VOID ? buffer.byteLength : capacity;
157
154
  sharedArrayBuffer = sharedArrayBuffer === VOID ? null : sharedArrayBuffer;
158
- this.eb_1 = buffer;
159
- this.fb_1 = littleEndian;
160
- this.gb_1 = position;
161
- this.hb_1 = limit;
162
- this.ib_1 = capacity;
163
- this.jb_1 = sharedArrayBuffer;
164
- this.kb_1 = this.fb_1 ? ByteOrder_LITTLE_ENDIAN_getInstance() : ByteOrder_BIG_ENDIAN_getInstance();
165
- this.hb_1 = this.eb_1.length;
155
+ this.ea_1 = buffer;
156
+ this.fa_1 = littleEndian;
157
+ this.ga_1 = position;
158
+ this.ha_1 = limit;
159
+ this.ia_1 = capacity;
160
+ this.ja_1 = sharedArrayBuffer;
161
+ this.ka_1 = this.fa_1 ? ByteOrder_LITTLE_ENDIAN_getInstance() : ByteOrder_BIG_ENDIAN_getInstance();
162
+ this.ha_1 = this.ea_1.length;
166
163
  }
167
- protoOf(JsBuffer).lb = function () {
168
- return this.ib_1;
164
+ protoOf(JsBuffer).la = function () {
165
+ return this.ia_1;
169
166
  };
170
- protoOf(JsBuffer).mb = function () {
171
- var tmp = this.eb_1.buffer;
172
- var tmp1 = this.gb_1;
173
- this.gb_1 = tmp1 + 1 | 0;
167
+ protoOf(JsBuffer).ma = function () {
168
+ var tmp = this.ea_1.buffer;
169
+ var tmp1 = this.ga_1;
170
+ this.ga_1 = tmp1 + 1 | 0;
174
171
  var dataView = new DataView(tmp, tmp1, 1);
175
172
  return dataView.getInt8(0);
176
173
  };
177
- protoOf(JsBuffer).g = function (index) {
178
- var dataView = new DataView(this.eb_1.buffer, index, 1);
174
+ protoOf(JsBuffer).t = function (index) {
175
+ var dataView = new DataView(this.ea_1.buffer, index, 1);
179
176
  return dataView.getInt8(0);
180
177
  };
181
- protoOf(JsBuffer).nb = function (size) {
178
+ protoOf(JsBuffer).na = function (size) {
182
179
  // Inline function 'kotlin.js.unsafeCast' call
183
180
  // Inline function 'kotlin.js.asDynamic' call
184
- var byteArray = new Int8Array(this.eb_1.buffer, this.gb_1, size);
185
- this.gb_1 = this.gb_1 + size | 0;
181
+ var byteArray = new Int8Array(this.ea_1.buffer, this.ga_1, size);
182
+ this.ga_1 = this.ga_1 + size | 0;
186
183
  return byteArray;
187
184
  };
188
- protoOf(JsBuffer).ob = function (index, byte) {
189
- var tmp = this.eb_1.buffer;
190
- ByteCompanionObject_getInstance();
185
+ protoOf(JsBuffer).aa = function (index, byte) {
186
+ var tmp = this.ea_1.buffer;
191
187
  var dataView = new DataView(tmp, index, 1);
192
188
  dataView.setInt8(0, byte);
193
189
  return this;
194
190
  };
195
- protoOf(JsBuffer).cb = function (bytes, offset, length) {
191
+ protoOf(JsBuffer).ca = function (bytes, offset, length) {
196
192
  // Inline function 'kotlin.js.unsafeCast' call
197
193
  // Inline function 'kotlin.js.asDynamic' call
198
194
  var uint8Array = bytes.subarray(offset, offset + length | 0);
199
- this.eb_1.set(uint8Array, this.gb_1);
200
- this.gb_1 = this.gb_1 + uint8Array.length | 0;
195
+ this.ea_1.set(uint8Array, this.ga_1);
196
+ this.ga_1 = this.ga_1 + uint8Array.length | 0;
201
197
  return this;
202
198
  };
203
- protoOf(JsBuffer).xa = function () {
204
- return this.hb_1;
199
+ protoOf(JsBuffer).v9 = function () {
200
+ return this.ha_1;
205
201
  };
206
- protoOf(JsBuffer).ya = function () {
207
- return this.gb_1;
202
+ protoOf(JsBuffer).w9 = function () {
203
+ return this.ga_1;
208
204
  };
209
- protoOf(JsBuffer).pb = function (newPosition) {
210
- this.gb_1 = newPosition;
205
+ protoOf(JsBuffer).x9 = function (newPosition) {
206
+ this.ga_1 = newPosition;
211
207
  };
212
208
  protoOf(JsBuffer).equals = function (other) {
213
209
  if (this === other)
214
210
  return true;
215
- if (other == null ? true : !equals(this.constructor, other.constructor))
211
+ if (other == null ? true : !(this.constructor == other.constructor))
216
212
  return false;
217
213
  if (!(other instanceof JsBuffer))
218
214
  THROW_CCE();
219
- if (!(this.fb_1 === other.fb_1))
215
+ if (!(this.fa_1 === other.fa_1))
220
216
  return false;
221
- if (!(this.gb_1 === other.gb_1))
217
+ if (!(this.ga_1 === other.ga_1))
222
218
  return false;
223
- if (!(this.hb_1 === other.hb_1))
219
+ if (!(this.ha_1 === other.ha_1))
224
220
  return false;
225
- if (!(this.ib_1 === other.ib_1))
221
+ if (!(this.ia_1 === other.ia_1))
226
222
  return false;
227
- var size = this.za();
223
+ var size = this.y9();
228
224
  try {
229
- if (!contentEquals(this.nb(size), other.nb(size)))
225
+ if (!contentEquals(this.na(size), other.na(size)))
230
226
  return false;
231
227
  }finally {
232
- this.gb_1 = this.gb_1 - size | 0;
233
- other.gb_1 = other.gb_1 - size | 0;
228
+ this.ga_1 = this.ga_1 - size | 0;
229
+ other.ga_1 = other.ga_1 - size | 0;
234
230
  }
235
231
  return true;
236
232
  };
237
233
  protoOf(JsBuffer).hashCode = function () {
238
- var result = this.fb_1 | 0;
239
- result = imul(31, result) + this.gb_1 | 0;
240
- result = imul(31, result) + this.hb_1 | 0;
241
- result = imul(31, result) + this.ib_1 | 0;
242
- var size = this.za();
234
+ var result = getBooleanHashCode(this.fa_1);
235
+ result = imul(31, result) + this.ga_1 | 0;
236
+ result = imul(31, result) + this.ha_1 | 0;
237
+ result = imul(31, result) + this.ia_1 | 0;
238
+ var size = this.y9();
243
239
  try {
244
- result = imul(31, result) + hashCode(this.nb(size)) | 0;
240
+ result = imul(31, result) + hashCode(this.na(size)) | 0;
245
241
  }finally {
246
- this.gb_1 = this.gb_1 - size | 0;
242
+ this.ga_1 = this.ga_1 - size | 0;
247
243
  }
248
244
  return result;
249
245
  };
250
246
  protoOf(JsBuffer).toString = function () {
251
- return 'JsBuffer(buffer=' + this.eb_1 + ', littleEndian=' + this.fb_1 + ', position=' + this.gb_1 + ', limit=' + this.hb_1 + ', capacity=' + this.ib_1 + ', sharedArrayBuffer=' + this.jb_1 + ')';
247
+ return 'JsBuffer(buffer=' + this.ea_1 + ', littleEndian=' + this.fa_1 + ', position=' + this.ga_1 + ', limit=' + this.ha_1 + ', capacity=' + this.ia_1 + ', sharedArrayBuffer=' + this.ja_1 + ')';
252
248
  };
253
249
  //region block: post-declaration
254
- protoOf(JsBuffer).za = remaining;
255
- protoOf(JsBuffer).ab = hasRemaining;
256
- protoOf(JsBuffer).bb = writeBytes;
250
+ protoOf(JsBuffer).y9 = remaining;
251
+ protoOf(JsBuffer).z9 = hasRemaining;
252
+ protoOf(JsBuffer).ba = writeBytes;
253
+ //endregion
254
+ //region block: init
255
+ Companion_instance = new Companion();
257
256
  //endregion
258
257
  //region block: exports
259
258
  _.$_$ = _.$_$ || {};
260
259
  _.$_$.a = allocate;
261
260
  _.$_$.b = wrap;
262
- _.$_$.c = Companion_getInstance;
261
+ _.$_$.c = Companion_instance;
263
262
  //endregion
264
263
  return _;
265
264
  }));
package/buffer-kt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/PositionBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/WriteBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/AllocationZone.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/ByteOrder.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/PlatformBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/jsMain/kotlin/com/ditchoom/buffer/BufferFactory.kt","jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../../../../../../runner/work/buffer/buffer/src/jsMain/kotlin/com/ditchoom/buffer/JsBuffer.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["remaining","hasRemaining","writeBytes","bytes","<init>","wrap","<this>","array","byteOrder","allocate","size","zone","t","sharedArrayBuffer","arrayBuffer","buffer","littleEndian","position","limit","capacity","<get-capacity>","readByte","dataView","get","index","readByteArray","byteArray","set","byte","offset","length","uint8Array","newPosition","equals","other","hashCode","result","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAQIA,CAAAA,EAAkB;A,IAAoB,OAApB,YAAU,SAAU,I;EAAD,C;uBACrCC,CAAAA,EAAqB;A,IAAoB,OAApB,YAAa,S;EAAM,C;;qBCKxCC,CAAeC,KAAfD,EAAgD;A,IAAgC,OAAhC,QAAW,KAAX,EAAkB,CAAlB,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D,OAAO,K;UAE/D,K;;IAEA,IAAI,gBAAgB,KAAhB,CAAsB,IAAtB,CAAJ,C;MAAwC,OAAO,K;IAC/C,IAAI,gBAAY,KAAZ,CAAkB,IAAlB,CAAJ,C;MAAgC,OAAO,K;IACvC,IAAI,gBAAS,KAAT,CAAe,IAAf,CAAJ,C;MAA0B,OAAO,K;IACjC,IAAI,gBAAY,KAAZ,CAAkB,IAAlB,CAAJ,C;MAAgC,OAAO,K;QACvCvB,OAAW,S;IACX,IAAI;A,MACA,IAAI,CAAqB,cAApB,QAAc,IAAd,CAAoB,EAAc,KAAM,IAAc,IAAd,CAApB,CAAzB,C;QAAmE,OAAO,K;IAC9E,C,QAAU;A,MACN,wBAAY,IAAZ,I;MACA,0BAAkB,IAAlB,I;IACJ,C;IACA,OAAO,I;EACX,C;wCAESyB,CAAAA,EAAoB;A,QACzBC,SAAa,IAAbA,CAAa,IAAbA,I;IACA,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;IACA,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;IACA,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;QACA1B,OAAW,S;IACX,IAAI;A,MACA,SAAS,SAAK,MAAL,IAAkC,SAApB,QAAc,IAAd,CAAoB,CAA3C,I;IACJ,C,QAAU;A,MACN,wBAAY,IAAZ,I;IACJ,C;IACA,OAAO,M;EACX,C;wCA7PJ2B,CAAAA,EAAA;A,IAAA,iM;EAAA,C;;;;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/PositionBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/WriteBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/AllocationZone.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/ByteOrder.kt","../../../../../../../../../../runner/work/buffer/buffer/src/commonMain/kotlin/com/ditchoom/buffer/PlatformBuffer.kt","../../../../../../../../../../runner/work/buffer/buffer/src/jsMain/kotlin/com/ditchoom/buffer/BufferFactory.kt","src/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../../../../../../runner/work/buffer/buffer/src/jsMain/kotlin/com/ditchoom/buffer/JsBuffer.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":["remaining","hasRemaining","writeBytes","bytes","<init>","wrap","<this>","array","byteOrder","allocate","size","zone","t","sharedArrayBuffer","arrayBuffer","buffer","littleEndian","position","limit","capacity","<get-capacity>","readByte","dataView","get","index","readByteArray","byteArray","set","byte","offset","length","uint8Array","newPosition","equals","other","hashCode","result","toString"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAQIA,CAAAA,EAAkB;A,IAAoB,OAApB,YAAU,SAAU,I;EAAD,C;uBACrCC,CAAAA,EAAqB;A,IAAoB,OAApB,YAAa,S;EAAM,C;;qBCKxCC,CAAeC,KAAfD,EAAgD;A,IAAgC,OAAhC,QAAW,KAAX,EAAkB,CAAlB,EAAqB,KAArB,CAA2B,MAA3B,C;EAA+B,C;;;;eCT/EE,CAAAA,EAAA;A;IAAc,yB;EAAd,C;;;;;;;;;;;yBAHGA,CAAAA,EAAP;A,EAAA,C;;;;;;;;;;;oBCAKA,C,aAAAA,EAAL;A;EAAA,C;;;;;;;;;oBCGIA,CAAAA,EAAA;A,EAAA,C;;;;;;;;;eC0CGC,CAAIC,a,EAA8BC,K,EAAkBC,SAApDH,EACH;A;;;IAGC,OAHD,aCDwP,KDCxP,EAEmB,uDAFnB,C;EAGA,C;mBAxCGI,CAAIH,a,EACPI,I,EACAC,I,EACAH,SAHGC,EAIW;A;;IACd,IAAI,IAAJ,mB,CAAmC;A,MAC/B,OAAO,IAAK,MAAU,IAAV,C;IAChB,C;;IACwB,I;;MACpB,IAAI,IAAJ,yB;gBACI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CAAAA,EAAoB;A,QACzBC,SAA0B,mBAAb,IAAa,CAAb,IAAa,C;IAC1B,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;IACA,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;IACA,SAAS,SAAK,MAAL,IAAc,IAAd,CAAc,IAAvB,I;QACA1B,OAAW,S;IACX,IAAI;A,MACA,SAAS,SAAK,MAAL,IAAkC,SAApB,QAAc,IAAd,CAAoB,CAA3C,I;IACJ,C,QAAU;A,MACN,wBAAY,IAAZ,I;IACJ,C;IACA,OAAO,M;EACX,C;wCA7PJ2B,CAAAA,EAAA;A,IAAA,iM;EAAA,C;;;;;;;;;;;;;;;;;"}
@@ -22,6 +22,7 @@ export declare namespace com.d10ng.common.base {
22
22
  function hexStringToByteArray(_this_: string): Int8Array;
23
23
  function getStringByteLength(_this_: string): number;
24
24
  function getStringFirstUpperCase(_this_: string): string;
25
+ function stringToFullWidthString(_this_: string): string;
25
26
  }
26
27
  export declare namespace com.d10ng.common.calculate {
27
28
  abstract class ChecksumType {
@@ -82,25 +83,6 @@ export declare namespace com.d10ng.common.coordinate {
82
83
  equals(other: Nullable<any>): boolean;
83
84
  }
84
85
  }
85
- export declare namespace com.d10ng.common.coordinate {
86
- function getDistanceAndBearing(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate): com.d10ng.common.coordinate.DistanceAndBearing;
87
- function getDistanceOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, highPrecision?: boolean): number;
88
- function toRadians(degree: number): number;
89
- function toDegrees(radian: number): number;
90
- function isPointInCircle(point: com.d10ng.common.coordinate.Coordinate, center: com.d10ng.common.coordinate.Coordinate, radius: number): boolean;
91
- function getAngleOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, highPrecision?: boolean): number;
92
- function getPointOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, present: number): com.d10ng.common.coordinate.Coordinate;
93
- function getTotalDistance(points: Array<com.d10ng.common.coordinate.Coordinate>): number;
94
- function getPointsOnDistance(points: Array<com.d10ng.common.coordinate.Coordinate>, distance: number): Array<com.d10ng.common.coordinate.Coordinate>;
95
- function compressTrack(points: Array<com.d10ng.common.coordinate.Coordinate>): Array<com.d10ng.common.coordinate.Coordinate>;
96
- function getPointByBasePoint(point: com.d10ng.common.coordinate.Coordinate, distance: number, angle: number): com.d10ng.common.coordinate.Coordinate;
97
- function getRandomPoint(point: com.d10ng.common.coordinate.Coordinate, radius: number): com.d10ng.common.coordinate.Coordinate;
98
- function getNearPartsOnLine(point: com.d10ng.common.coordinate.Coordinate, line: Array<com.d10ng.common.coordinate.Coordinate>, offset?: number): Array<number>;
99
- function getProjectionPointOnLinePart(point: com.d10ng.common.coordinate.Coordinate, part: Array<com.d10ng.common.coordinate.Coordinate>): com.d10ng.common.coordinate.Coordinate;
100
- function getProjectionPointOnLine(point: com.d10ng.common.coordinate.Coordinate, line: Array<com.d10ng.common.coordinate.Coordinate>): com.d10ng.common.coordinate.Coordinate;
101
- function getProjectionLineOnLineWithPoint(point: com.d10ng.common.coordinate.Coordinate, targetLine: Array<com.d10ng.common.coordinate.Coordinate>): Array<com.d10ng.common.coordinate.Coordinate>;
102
- function getProjectionLineOnLineWithLine(line: Array<com.d10ng.common.coordinate.Coordinate>, targetLine: Array<com.d10ng.common.coordinate.Coordinate>, offset?: number): Array<com.d10ng.common.coordinate.Coordinate>;
103
- }
104
86
  export declare namespace com.d10ng.common.coordinate {
105
87
  abstract class CoordinateSystemType {
106
88
  private constructor();
@@ -171,19 +153,38 @@ export declare namespace com.d10ng.common.coordinate {
171
153
  equals(other: Nullable<any>): boolean;
172
154
  }
173
155
  }
156
+ export declare namespace com.d10ng.common.coordinate {
157
+ function getDistanceAndBearing(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate): com.d10ng.common.coordinate.DistanceAndBearing;
158
+ function getDistanceOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, highPrecision?: boolean): number;
159
+ function toRadians(degree: number): number;
160
+ function toDegrees(radian: number): number;
161
+ function isPointInCircle(point: com.d10ng.common.coordinate.Coordinate, center: com.d10ng.common.coordinate.Coordinate, radius: number): boolean;
162
+ function getAngleOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, highPrecision?: boolean): number;
163
+ function getPointOn2Points(point1: com.d10ng.common.coordinate.Coordinate, point2: com.d10ng.common.coordinate.Coordinate, present: number): com.d10ng.common.coordinate.Coordinate;
164
+ function getTotalDistance(points: Array<com.d10ng.common.coordinate.Coordinate>): number;
165
+ function getPointsOnDistance(points: Array<com.d10ng.common.coordinate.Coordinate>, distance: number): Array<com.d10ng.common.coordinate.Coordinate>;
166
+ function compressTrack(points: Array<com.d10ng.common.coordinate.Coordinate>): Array<com.d10ng.common.coordinate.Coordinate>;
167
+ function getPointByBasePoint(point: com.d10ng.common.coordinate.Coordinate, distance: number, angle: number): com.d10ng.common.coordinate.Coordinate;
168
+ function getRandomPoint(point: com.d10ng.common.coordinate.Coordinate, radius: number): com.d10ng.common.coordinate.Coordinate;
169
+ function getNearPartsOnLine(point: com.d10ng.common.coordinate.Coordinate, line: Array<com.d10ng.common.coordinate.Coordinate>, offset?: number): Array<number>;
170
+ function getProjectionPointOnLinePart(point: com.d10ng.common.coordinate.Coordinate, part: Array<com.d10ng.common.coordinate.Coordinate>): com.d10ng.common.coordinate.Coordinate;
171
+ function getProjectionPointOnLine(point: com.d10ng.common.coordinate.Coordinate, line: Array<com.d10ng.common.coordinate.Coordinate>): com.d10ng.common.coordinate.Coordinate;
172
+ function getProjectionLineOnLineWithPoint(point: com.d10ng.common.coordinate.Coordinate, targetLine: Array<com.d10ng.common.coordinate.Coordinate>): Array<com.d10ng.common.coordinate.Coordinate>;
173
+ function getProjectionLineOnLineWithLine(line: Array<com.d10ng.common.coordinate.Coordinate>, targetLine: Array<com.d10ng.common.coordinate.Coordinate>, offset?: number): Array<com.d10ng.common.coordinate.Coordinate>;
174
+ }
174
175
  export declare namespace com.d10ng.common.transform {
175
176
  function encodeGBK(_this_: string): Int8Array;
176
177
  function decodeGBK(_this_: Int8Array): string;
177
178
  function encodeUTF8(_this_: string): Int8Array;
178
179
  function decodeUTF8(_this_: Int8Array): string;
179
180
  function encodeUnicode(_this_: string): Int8Array;
180
- function encodeUnicodeString(_this_: string, isNeedU: boolean): string;
181
+ function encodeUnicodeString(_this_: string, isNeedU?: boolean): string;
181
182
  function decodeUnicode(_this_: Int8Array): string;
182
183
  function decodeUnicodeString(_this_: string): string;
183
184
  function encodeASCII(_this_: string): Int8Array;
184
185
  function encodeASCIIString(_this_: string): string;
185
- function decodeASCIIString(_this_: string): string;
186
186
  function decodeASCII(_this_: Int8Array): string;
187
+ function decodeASCIIString(_this_: string): string;
187
188
  }
188
189
  export declare namespace com.d10ng.common.transform {
189
190
  function toPinYin(_this_: string, separator?: string): string;
@@ -192,4 +193,4 @@ export declare namespace com.d10ng.common.base {
192
193
  function numberToString(_this_: any/* kotlin.Number */, maxDecimalCount: number): string;
193
194
  function numberToByteArray(_this_: any/* kotlin.Number */, size?: number): Int8Array;
194
195
  }
195
- export as namespace dl_common_util;
196
+ export as namespace com_github_D10NGYANG_DLCommonUtil;