dozy 1.0.60 → 1.0.62

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 CHANGED
@@ -19,10 +19,18 @@ declare class Dozy {
19
19
  }
20
20
  declare const dozy: Dozy;
21
21
 
22
- type Any = Items$1<any>;
23
- type Items$1<T> = {
22
+ type Any = Items<any>;
23
+ type Null<T> = T | undefined | null;
24
+ type Nullable<T> = Null<T>;
25
+ type Items<T> = {
24
26
  [x: string]: T;
25
27
  };
28
+ type Hel = HTMLElement;
29
+ type UNumber = number | [number, number];
30
+ type Coord = [number, number];
31
+ type Coord3 = [number, number, number];
32
+ type IOpt = Object | undefined;
33
+ type Atoa<T> = (i: T) => T;
26
34
 
27
35
  declare function $isObject(value: unknown): value is Record<string, unknown>;
28
36
  declare function $deepClone<T>(value: T): T;
@@ -188,6 +196,7 @@ declare class Scaler {
188
196
  #private;
189
197
  heightElement: HTMLElement;
190
198
  widthElement: HTMLElement;
199
+ offsetHorizontal: number;
191
200
  set base(val: number);
192
201
  get base(): number;
193
202
  set mainScale(val: number);
@@ -215,6 +224,7 @@ declare const standardIniter: (args: {
215
224
  setFullScreenWidth?: (x: number) => void;
216
225
  setFullContentHeight?: (x: number) => void;
217
226
  setMainScale?: (x: number) => void;
227
+ offsetHorizontal?: number;
218
228
  heightElement?: HTMLElement;
219
229
  widthElement?: HTMLElement;
220
230
  base?: number;
@@ -229,10 +239,6 @@ declare class StringObfuscator {
229
239
  de(obfuscated: string): string;
230
240
  }
231
241
 
232
- type Items<T> = {
233
- [key: string]: T;
234
- };
235
-
236
242
  declare function $escapeHTML(str: string): string;
237
243
  declare class RainbowGen {
238
244
  i: number;
@@ -327,6 +333,6 @@ declare function toRgbString(input: string | Color | any): string | undefined;
327
333
  */
328
334
  declare function toHslString(input: string | Color | any): string | undefined;
329
335
 
330
- declare const DOZY = "1.0.60";
336
+ declare const DOZY = "1.0.62";
331
337
 
332
- export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatWithCommas, $freeze, $genSSF, $getFileType, $getTimeString, $hasKey, $if, $inRange, $inRange2, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $validName, $values, $window, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Items, RainbowGen, type ScaleComputer, type ScaleIniter, StringObfuscator, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isValidColor, maybeString, registerCustomColor, s, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
338
+ export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatWithCommas, $freeze, $genSSF, $getFileType, $getTimeString, $hasKey, $if, $inRange, $inRange2, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, type ScaleComputer, type ScaleIniter, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isValidColor, maybeString, registerCustomColor, s, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };