dphelper 1.9.19 → 1.9.20

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.
@@ -1,614 +0,0 @@
1
- # All Functions List
2
-
3
- ## Overview
4
-
5
- This document provides a comprehensive list of all available functions in the `dphelper` library along with their descriptions.
6
-
7
- ## Functions
8
-
9
- ### Anchor
10
-
11
- - `dphelper.anchor.toOnClick(el)`
12
- <br/> Converts an element's href attribute to an onclick event.
13
-
14
- ### Array
15
-
16
- - `dphelper.array.find(array, key)`
17
- <br> Finds an element in an array by key.
18
- - `dphelper.array.unique(array)`
19
- <br> Returns an array with unique elements.
20
- - `dphelper.array.delete(array, key)`
21
- <br> Deletes an element from an array by key.
22
- - `dphelper.array.merge(arrayA, arrayB)`
23
- <br> Merges two arrays.
24
- - `dphelper.array.mergeByKey(arrayA, arrayB, key)`
25
- <br> Merges two arrays by a specific key.
26
- - `dphelper.array.asc(array)`
27
- <br> Sorts an array in ascending order.
28
- - `dphelper.array.desc(array)`
29
- <br> Sorts an array in descending order.
30
- - `dphelper.array.duplicates(array)`
31
- <br> Returns an array of duplicate elements.
32
- - `dphelper.array.even(array)`
33
- <br> Returns an array of even numbers.
34
- - `dphelper.array.odd(array)`
35
- <br> Returns an array of odd numbers.
36
- - `dphelper.array.toObj(array)`
37
- <br> Converts an array to an object.
38
- - `dphelper.array.sumColumn(array, column)`
39
- <br> Sums the values of a specific column in an array.
40
- - `dphelper.array.shuffle(array)`
41
- <br> Shuffles the elements of an array.
42
- - `dphelper.array.generate(num)`
43
- <br> Generates an array with a specified number of elements.
44
- - `dphelper.array.testArrayInt(array)`
45
- <br> Tests if the elements of an array are integers.
46
- - `dphelper.array.rand32(number)`
47
- <br> Generates a random 32-bit number.
48
- - `dphelper.array.findindex(array, key)`
49
- <br> Finds the index of an element in an array by key.
50
- - `dphelper.array.pathToJson(array, separator?)`
51
- <br> Converts an array to a JSON object using a separator.
52
- - `deepClone(src)`
53
- <br> Creates a deep clone of an object.
54
- - `dphelper.array.match(arrayWords, arrayToCheck)`
55
- <br> Checks if two arrays match.
56
- - `dphelper.array.shallow(array)`
57
- <br> Generate a shallow copy of an object.
58
- - `dphelper.array.deeCopy(array)`
59
- <br> Generate a structured copy of an object.
60
- - `dphelper.array.groupBy(array, key)`
61
- <br> Generate a structured copy of an object.
62
-
63
- ### Audio
64
-
65
- - `dphelper.audio.play(url)`
66
- <br> Plays an audio file from a URL.
67
-
68
- ### Avoid
69
-
70
- - `dphelper.avoid.cache(uri)`
71
- <br> Caches a URI.
72
-
73
- ### Browser
74
-
75
- - `dphelper.browser.state(state, title, url)`
76
- <br> Changes the browser state.
77
- - `dphelper.browser.forw(times)`
78
- <br> Moves forward in the browser history.
79
- - `dphelper.browser.back(times)`
80
- <br> Moves backward in the browser history.
81
- - `dphelper.browser.reload()`
82
- <br> Reloads the current page.
83
- - `dphelper.browser.href(url)`
84
- <br> Navigates to a URL.
85
- - `dphelper.browser.offLine(text?)`
86
- <br> Displays an offline message.
87
- - `dphelper.browser.zoom()`
88
- <br> Gets the current zoom level.
89
- - `dphelper.browser.status(code)`
90
- <br> Gets the status text for a status code.
91
-
92
- ### Check
93
-
94
- - `dphelper.check.url(url)`
95
- <br> Checks if a URL is valid.
96
- - `dphelper.check.version(v1, v2, opts)`
97
- <br> Compares two version strings.
98
- - `dphelper.check.npmVer(npm)`
99
- <br> Gets the version of an npm package.
100
-
101
- ### Color
102
-
103
- - `dphelper.color.hex(c)`
104
- <br> Converts a color to hex format.
105
- - `dphelper.color.toHex(rgb)`
106
- <br> Converts RGB to hex format.
107
- - `dphelper.color.toRGB(c)`
108
- <br> Converts a color to RGB format.
109
- - `dphelper.color.oleColor(c)`
110
- <br> Converts a color to OLE format.
111
- - `dphelper.color.gradient(colorStart, colorEnd, colorCount)`
112
- <br> Generates a gradient between two colors.
113
-
114
- ### Console
115
-
116
- - `dphelper.console.info(name, message, fn)`
117
- <br> Logs an info message to the console.
118
- - `dphelper.console.stop(options?[])`
119
- <br> Stops the console.
120
- - `dphelper.console.toHtml(el)`
121
- <br> Converts console output to HTML.
122
-
123
- ### Cookie
124
-
125
- - `dphelper.cookie.set(params: { name, value, time?, path?: "/", sameSite?: "Lax", secure?: "Secure" | "false" })`
126
- <br> Sets a cookie.
127
- - `dphelper.cookie.get(name)`
128
- <br> Gets a cookie by name.
129
- - `dphelper.cookie.delete(name)`
130
- <br> Deletes a cookie by name.
131
- - `dphelper.cookie.removeAll()`
132
- <br> Clears all cookies.
133
-
134
- ### Coords
135
-
136
- - `dphelper.coods.degreesToRadians(degrees)`
137
- <br> Converts degrees to radians.
138
- - `dphelper.coods.latToMeters(points)`
139
- <br> Converts latitude to meters.
140
- - `dphelper.coods.toVector(points)`
141
- <br> Converts points to a vector.
142
- - `dphelper.coods.convertToDecDegrees(deg, minutes, sec, direction)`
143
- <br> Converts coordinates to decimal degrees.
144
- - `dphelper.coods.distance(point1, point2)`
145
- <br> Calculates the distance between two points.
146
- - `dphelper.coods.polarToCartesian(centerX, centerY, radius, angleInDegrees)`
147
- <br> Converts polar coordinates to Cartesian coordinates.
148
- - `dphelper.coods.mapDegreesToPixels(degree, minDegree, maxDegree, minPixel, maxPixel, padding)`
149
- <br> Maps degrees to pixels.
150
-
151
- ### Date
152
-
153
- - `dphelper.date.days(lang?)`
154
- <br> Returns the days of the week in a specified language.
155
- - `dphelper.date.months(lang?)`
156
- <br> Returns the months of the year in a specified language.
157
- - `dphelper.date.year()`
158
- <br> Returns the current year.
159
- - `dphelper.date.toIso(value, int?)`
160
- <br> Converts a date to ISO format.
161
- - `dphelper.date.toMMDDYYYY(value)`
162
- <br> Converts a date to MM/DD/YYYY format.
163
- - `dphelper.date.toYYYYMMDD(value)`
164
- <br> Converts a date to YYYY/MM/DD format.
165
- - `dphelper.date.toHuman(value)`
166
- <br> Converts a date to a human-readable format.
167
- - `dphelper.date.convert(value, format[])`
168
- <br> Converts a date to a specified format.
169
- - `dphelper.date.iso2Epoch(value)`
170
- <br> Converts an ISO date to epoch time.
171
- - `dphelper.date.localIsoTime(value)`
172
- <br> Converts a date to local ISO time.
173
- - `dphelper.date.utc()`
174
- <br> Returns the current UTC time.
175
- - `dphelper.date.parse(value, separator?)`
176
- <br> Parses a date string.
177
- - `dphelper.date.addDays(date, days)`
178
- <br> Adds days to a date.
179
- - `dphelper.date.dateTimeToString(dateObject)`
180
- <br> Converts a date object to a string.
181
- - `dphelper.date.isoToHuman(value, symbol?)`
182
- <br> Converts an ISO date to a human-readable format.
183
- - `dphelper.date.fullDate()`
184
- <br> Returns the full date.
185
- - `dphelper.date.epoch()`
186
- <br> Returns the current epoch time.
187
- - `dphelper.date.diffInDays(d1, d2)`
188
- <br> Calculates the difference in days between two dates.
189
- - `dphelper.date.diffInWeeks(d1, d2)`
190
- <br> Calculates the difference in weeks between two dates.
191
- - `dphelper.date.diffInMonths(d1, d2)`
192
- <br> Calculates the difference in months between two dates.
193
- - `dphelper.date.diffInYears(d1, d2)`
194
- <br> Calculates the difference in years between two dates.
195
- - `dphelper.date.dateToYMD(date)`
196
- <br> Converts a date to YYYY-MM-DD format.
197
- - `dphelper.date.collection(params: { date?; type; locale? })`
198
- <br> Returns a collection of dates.
199
- - `dphelper.date.timeZones()`
200
- <br> Returns a list of time zones.
201
-
202
- ### Disable
203
-
204
- - `dphelper.disable.select(el?)`
205
- <br> Disables text selection.
206
- - `dphelper.disable.spellCheck(tmr?)`
207
- <br> Disables spell check.
208
- - `dphelper.disable.rightClick(el?)`
209
- <br> Disables right-click.
210
- - `dphelper.disable.copy(el?)`
211
- <br> Disables copy.
212
- - `dphelper.disable.paste(el?)`
213
- <br> Disables paste.
214
- - `dphelper.disable.cut(el?)`
215
- <br> Disables cut.
216
- - `dphelper.disable.drag(el?)`
217
- <br> Disables drag.
218
-
219
- ### Dispatch
220
-
221
- - `dphelper.dispatch.set(name, value?)`
222
- <br> Sets a dispatch event.
223
- - `dphelper.dispatch.listen(name, cb?, flag?)`
224
- <br> Listens for a dispatch event.
225
- - `dphelper.dispatch.remove(name)`
226
- <br> Removes a dispatch event.
227
-
228
- ### Element
229
-
230
- - `dphelper.element.fitScale(el, scale?, fit?)`
231
- <br> Fits an element to a scale.
232
- - `dphelper.element.scaleBasedOnWindow(elm, scale, fit)`
233
- <br> Scales an element based on the window size.
234
-
235
- ### Events
236
-
237
- - `dphelper.events.list(el)`
238
- <br> Lists all events on an element.
239
- - `dphelper.events.multi(element, eventNames, listenerListener)`
240
- <br> Adds multiple event listeners to an element.
241
- - `dphelper.events.copy(el)`
242
- <br> Copies an element.
243
- - `dphelper.events.onDrag(elem)`
244
- <br> Adds a drag event to an element.
245
- - `dphelper.events.keys(e): { key; ctrl; alt; shift }`
246
- <br> Gets the key, ctrl, alt, and shift status from a keyboard event.
247
-
248
- ### Form
249
-
250
- - `dphelper.form.serialize(form): { [key] }`
251
- <br> Serializes a form to an object.
252
- - `dphelper.form.confirmType(type, value)`
253
- <br> Confirms the type of a value.
254
- - `dphelper.form.required(value)`
255
- <br> Checks if a value is required.
256
- - `dphelper.form.minLength(value, num?)`
257
- <br> Checks if a value meets the minimum length.
258
- - `dphelper.form.maxLength(value, num?)`
259
- <br> Checks if a value exceeds the maximum length.
260
- - `dphelper.form.maxPhoneNumber(value, num?)`
261
- <br> Checks if a phone number exceeds the maximum length.
262
- - `dphelper.form.isNumeric(value)`
263
- <br> Checks if a value is numeric.
264
- - `dphelper.form.isEmail(value)`
265
- <br> Checks if a value is an email.
266
- - `dphelper.form.pattern(e)`
267
- <br> Validates a pattern.
268
- - `dphelper.form.noSpecialChars(e)`
269
- <br> Disallows special characters.
270
- - `dphelper.form.table(size, id, elem)`
271
- <br> Creates a table.
272
- - `dphelper.form.sanitize(str)`
273
- <br> Sanitizes a string.
274
-
275
- ### Format
276
-
277
- - `dphelper.format.currency(value, locale?, currency?)`
278
- <br> Formats a value as currency.
279
- - `dphelper.format.phoneNumber(value, countryCode?)`
280
- <br> Formats a phone number.
281
-
282
- ### Imports
283
-
284
- - `dphelper.imports.file(elem, file)`
285
- <br> Imports a file.
286
-
287
- ### Json
288
-
289
- - `dphelper.json.counter(json, key?, val?)`
290
- <br> Counts occurrences in a JSON object.
291
- - `dphelper.json.toCsv(jsonInput)`
292
- <br> Converts JSON to CSV.
293
- - `dphelper.json.saveCsvAs(csvData, fileName)`
294
- <br> Saves CSV data as a file.
295
- - `dphelper.json.is(str)`
296
- <br> Checks if a string is valid JSON.
297
- - `dphelper.json.parse(file)`
298
- <br> Parses a JSON file.
299
- - `dphelper.json.sanitize(str)`
300
- <br> Sanitizes a JSON string.
301
- - `dphelper.json.sanitizeJsonValue(str)`
302
- <br> Sanitizes a JSON value.
303
-
304
- ### Load
305
-
306
- - `dphelper.load.all(context, cacheName?)`
307
- <br> Loads all modules in a context.
308
- - `dphelper.load.file(filePath)`
309
- <br> Loads a file.
310
- - `dphelper.load.fileToElement(elementSelector, filePath)`
311
- <br> Loads a file into an element.
312
- - `dphelper.load.json(filePath)`
313
- <br> Loads a JSON file.
314
- - `dphelper.load.remote(path, method?, headers?)`
315
- <br> Loads data from a remote URL.
316
- - `dphelper.load.script(scripts[], elementSelector?)`
317
- <br> Loads scripts.
318
- - `dphelper.load.toJson(context, cacheName?)`
319
- <br> Converts a context to JSON.
320
-
321
- ### Logging
322
-
323
- - `dphelper.logging.list: { type; message }`
324
- <br> List of log messages.
325
- - `dphelper.logging.reg(txt)`
326
- <br> Logs a regular message.
327
- - `dphelper.logging.debug(txt)`
328
- <br> Logs a debug message.
329
- - `dphelper.logging.error(txt)`
330
- <br> Logs an error message.
331
-
332
- ### Math
333
-
334
- - `dphelper.math.rnd()`
335
- <br> Generates a random number.
336
- - `dphelper.math.tmr()`
337
- <br> Returns the current time in milliseconds.
338
- - `dphelper.math.add(a, b)`
339
- <br> Adds two numbers.
340
- - `dphelper.math.sub(a, b)`
341
- <br> Subtracts two numbers.
342
- - `dphelper.math.multi(a, b)`
343
- <br> Multiplies two numbers.
344
- - `dphelper.math.div(a, b)`
345
- <br> Divides two numbers.
346
- - `dphelper.math.rem(a, b)`
347
- <br> Returns the remainder of two numbers.
348
- - `dphelper.math.exp(a, b)`
349
- <br> Returns the exponent of two numbers.
350
- - `dphelper.math.isOdd(a)`
351
- <br> Checks if a number is odd.
352
- - `dphelper.math.float2int(a)`
353
- <br> Converts a float to an integer.
354
- - `dphelper.math.percent(n, tot)`
355
- <br> Calculates the percentage.
356
- - `dphelper.math.isPrime(n)`
357
- <br> Checks if a number is prime.
358
-
359
- ### Memory
360
-
361
- - `dphelper.memory.lock(obj)`
362
- <br> Locks an object in memory.
363
- - `dphelper.memory.unlock(obj)`
364
- <br> Unlocks an object in memory.
365
-
366
- ### Object
367
-
368
- - `dphelper.obj.toArray(object)`
369
- <br> Converts an object to an array.
370
- - `dphelper.obj.replaceNullObjects(data)`
371
- <br> Replaces null objects in a record.
372
- - `dphelper.obj.serialize(value)`
373
- <br> Serializes a value.
374
- - `dphelper.obj.deSerialize(valueNew)`
375
- <br> Deserializes a value.
376
- - `dphelper.obj.sort(o)`
377
- <br> Sorts an object.
378
- - `dphelper.obj.toXML(obj)`
379
- <br> Converts an object to XML.
380
- - `dphelper.obj.find(object, key, value)`
381
- <br> Finds an element in an object by key and value.
382
- - `dphelper.obj.instance(obj)`
383
- <br> Returns the instance of an object.
384
- - `dphelper.obj.updateByKey(obj, key, newValue)`
385
- <br> Updates an object by key.
386
- - `dphelper.obj.findindex(object, key)`
387
- <br> Finds the index of an element in an object by key.
388
- - `dphelper.obj.parse(val)`
389
- <br> Parses a value.
390
- - `dphelper.obj.isObject(val)`
391
- <br> Checks if a value is an object.
392
- - `dphelper.obj.diff(obj1, obj2)`
393
- <br> Finds the difference between two objects.
394
- - `dphelper.obj.path(prop, object[], separator?)`
395
- <br> Converts a property path to a string.
396
- - `dphelper.obj.shallow(object)`
397
- <br> Generate a shallow copy of an object.
398
- - `dphelper.obj.deeCopy(object)`
399
- <br> Generate a structured copy of an object.
400
-
401
- ### Path
402
-
403
- - `dphelper.path.rail()`
404
- <br> Returns the rail path.
405
- - `dphelper.path.hash()`
406
- <br> Returns the hash path.
407
- - `dphelper.path.query(url)`
408
- <br> Parses the query string of a URL.
409
-
410
- ### Promise
411
-
412
- - `dphelper.promise.check(p)`
413
- <br> Checks if a value is a promise.
414
- - `dphelper.promise.resolve(data)`
415
- <br> Resolves a promise with data.
416
-
417
- ### Sanitize
418
-
419
- - `dphelper.sanitize.html(s)`
420
- <br> Sanitizes HTML.
421
-
422
- ### Screen
423
-
424
- - `dphelper.screen.fullScreen(el)`
425
- <br> Enables full screen mode for an element.
426
- - `dphelper.screen.toggle(el)`
427
- <br> Toggles full screen mode for an element.
428
- - `dphelper.screen.info(): { width; height; availWidth; availHeight; colorDepth; pixelDepth }`
429
- <br> Gets screen information.
430
-
431
- ### Scrollbar
432
-
433
- - `dphelper.scrollbar.custom(el, options)`
434
- <br> Customizes a scrollbar.
435
- - `dphelper.scrollbar.indicator(props)`
436
- <br> Adds a scrollbar indicator.
437
- - `dphelper.scrollbar.position: { get(el); set(el) }`
438
- <br> Gets and sets scrollbar position.
439
- - `dphelper.scrollbar.smooth(target, speed, smooth)`
440
- <br> Smooth scrolls to a target.
441
- - `dphelper.scrollbar.scrollTo(container, element, gap?)`
442
- <br> Scrolls to an element within a container.
443
-
444
- ### Security
445
-
446
- - `dphelper.security.uuid: { byVal(string); v4; v5 }`
447
- <br> Generates UUIDs.
448
- - `dphelper.security.hashPass(u, p, t?)`
449
- <br> Hashes a password.
450
- - `dphelper.security.crypt(u, p, mode?)`
451
- <br> Encrypts data.
452
- - `dphelper.security.deCrypt(u, p, mode?)`
453
- <br> Decrypts data.
454
- - `dphelper.security.AES_KeyGen(passKey?)`
455
- <br> Generates an AES key.
456
- - `dphelper.security.SHA256_Hex(passKey)`
457
- <br> Generates a SHA256 hash.
458
- - `dphelper.security.ulid()`
459
- <br> Generates ULID (Universally Unique Lexicographically Sortable Identifier).
460
-
461
- ### Shortcut
462
-
463
- - `dphelper.shortcut.keys(e, trigger)`
464
- <br> Adds a keyboard shortcut.
465
-
466
- ### Socket
467
-
468
- - `dphelper.socket.info()`
469
- <br> Gets socket information.
470
- - `dphelper.socket.start(element, server)`
471
- <br> Starts a socket connection.
472
- - `dphelper.socket.conn(id, server)`
473
- <br> Connects to a socket server.
474
- - `dphelper.socket.connect(server)`
475
- <br> Connects to a server.
476
- - `dphelper.socket.open(id, server)`
477
- <br> Opens a socket connection.
478
- - `dphelper.socket.send(mex, type?)`
479
- <br> Sends a message through a socket.
480
- - `dphelper.socket.ping()`
481
- <br> Sends a ping through a socket.
482
- - `dphelper.socket.receive(el?)`
483
- <br> Receives a message through a socket.
484
- - `dphelper.socket.keepAlive()`
485
- <br> Keeps a socket connection alive.
486
- - `dphelper.socket.check()`
487
- <br> Checks the status of a socket connection.
488
- - `dphelper.socket.list()`
489
- <br> Lists all socket connections.
490
-
491
- ### SVG
492
-
493
- - `dphelper.svg.init(container, source1, source2, cb?)`
494
- <br> Initializes an SVG container.
495
- - `dphelper.svg.check()`
496
- <br> Checks if SVG is supported.
497
- - `dphelper.svg.update(rect1, rect2, cxn)`
498
- <br> Updates an SVG element.
499
- - `dphelper.svg.getCurve(p1, p2, dx)`
500
- <br> Gets a curve path between two points.
501
- - `dphelper.svg.getIntersection(dx, dy, cx, cy, w, h)`
502
- <br> Gets the intersection point of a curve.
503
- - `dphelper.svg.setConnector(source, side)`
504
- <br> Sets a connector for an SVG element.
505
- - `dphelper.svg.removeConnection(container)`
506
- <br> Removes a connection from an SVG container.
507
- - `dphelper.svg.makeScrollable(svgContainer, scrollContainer, elm1, elm2, rect1, rect2)`
508
- <br> Makes an SVG container scrollable.
509
- - `dphelper.svg.makeDraggable(evt)`
510
- <br> Makes an SVG element draggable.
511
- - `dphelper.svg.toggle(evt, container, source1, source2)`
512
- <br> Toggles an SVG element.
513
- - `dphelper.svg.convert(options)`
514
- <br> Converts an SVG element.
515
-
516
- ### System
517
-
518
- - `dphelper.svg.multiSplit()`
519
- <br> Splits a string into multiple parts.
520
-
521
- ### Terminal
522
-
523
- - `dphelper.terminal()`
524
- <br> Initializes a terminal.
525
-
526
- ### Text
527
-
528
- - `dphelper.text.trim(s, c, b, e)`
529
- <br> Trims a string.
530
- - `dphelper.text.capitalize(txt)`
531
- <br> Capitalizes a string.
532
- - `dphelper.text.lower(txt)`
533
- <br> Converts a string to lowercase.
534
- - `dphelper.text.upper(txt)`
535
- <br> Converts a string to uppercase.
536
- - `dphelper.text.nl2br(str)`
537
- <br> Converts newlines to <br> tags.
538
- - `dphelper.text.sanitize(str)`
539
- <br> Sanitizes a string.
540
- - `dphelper.text.camelCase(str)`
541
- <br> Converts camelCase to space or underscore.
542
- - `dphelper.text.fitContainer(el)`
543
- <br> Fits a text element to its container.
544
-
545
- ### Timer
546
-
547
- - `dphelper.timer.sleep(ms)`
548
- <br> Pauses execution for a specified time.
549
- - `dphelper.timer.percentage(start, end)`
550
- <br> Calculates the percentage of time elapsed.
551
-
552
- ### Tools
553
-
554
- - `dphelper.dev.getip()`
555
- <br> Gets the IP address.
556
- - `dphelper.dev.byteSize(bytes)`
557
- <br> Converts bytes to a human-readable format.
558
- - `dphelper.dev.zIndex()`
559
- <br> Gets the z-index.
560
- - `dphelper.dev.zeroToFalse(value)`
561
- <br> Converts zero to false.
562
-
563
- ### Translators
564
-
565
- - `dphelper.translator.convertMatrixToScale(values)`
566
- <br> Converts a matrix to a scale.
567
-
568
- ### Trigger
569
-
570
- - `dphelper.trigger.click(elem)`
571
- <br> Triggers a click event.
572
- - `dphelper.trigger.change(elem)`
573
- <br> Triggers a change event.
574
- - `dphelper.trigger.input(elem)`
575
- <br> Triggers an input event.
576
-
577
- ### Type
578
-
579
- - `dphelper.type.of(p)`
580
- <br> Gets the type of a value.
581
- - `dphelper.type.instOfObj(p)`
582
- <br> Checks if a value is an instance of an object.
583
- - `dphelper.type.isNull(p)`
584
- <br> Checks if a value is null.
585
- - `dphelper.type.isBool(val)`
586
- <br> Checks if a value is a boolean.
587
-
588
- ### UI
589
-
590
- - `dphelper.ui: null`
591
- <br> User interface operations.
592
-
593
- ### Window
594
-
595
- - `dphelper.window.enhancement()`
596
- <br> Enhances the window.
597
- - `dphelper.window.animationframe()`
598
- <br> Gets the animation frame.
599
- - `dphelper.window.center(params: { url; title; name; w; h })`
600
- <br> Centers a window.
601
- - `dphelper.window.onBeforeUnLoad(e)`
602
- <br> Handles the before unload event.
603
- - `dphelper.window.purge(d?, time?)`
604
- <br> Purges the document.
605
- - `dphelper.window.stopZoomWheel(e)`
606
- <br> Stops the zoom wheel.
607
- - `dphelper.window.setZoom(element?, zoom?)`
608
- <br> Sets the zoom level.
609
- - `dphelper.window.getZoom(element?)`
610
- <br> Gets the zoom level.
611
-
612
- ## License
613
-
614
- This project is licensed under the MIT License.
package/index.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /*!
2
- dphelper
3
- Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
4
- Licensed under MIT License, see
5
- https://dario.passariello.ca
6
- */
7
-
8
- // VENDORS
9
- /// <reference path="./types/jquery.d.ts" />
10
- /// <reference path="./types/idb.d.ts" />
11
-
12
- // BY DARIO PASSARIELLO
13
- /// <reference path="./types/dphelper.d.ts" />
14
- /// <reference path="./types/memorio.d.ts" />
15
- /// <reference path="./types/observer.d.ts" />
16
- /// <reference path="./types/state.d.ts" />
17
- /// <reference path="./types/session.d.ts" />
18
- /// <reference path="./types/store.d.ts" />
19
- /// <reference path="./types/cache.d.ts" />
20
-
21
-