@kizmann/pico-js 2.0.0 → 2.0.1
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/pico-js.browser.js +1 -1
- package/dist/pico-js.browser.js.map +1 -1
- package/dist/pico-js.esm.js +1 -1
- package/dist/pico-js.esm.js.map +1 -1
- package/package.json +1 -2
- package/src/dom/DomAttribute.js +13 -11
- package/src/dom/DomBuilder.js +9 -7
- package/src/dom/DomEvent.js +11 -9
- package/src/dom/DomFinder.js +7 -5
- package/src/dom/DomForm.js +5 -3
- package/src/dom/DomGlobal.js +7 -5
- package/src/dom/DomInview.js +4 -2
- package/src/dom/DomMeta.js +5 -3
- package/src/dom/DomObserver.js +5 -3
- package/src/dom/DomRectangle.js +7 -6
- package/src/format/FormatFile.js +4 -2
- package/src/format/FormatOption.js +4 -2
- package/src/format/FormatParam.js +4 -2
- package/src/format/FormatParser.js +4 -2
- package/src/format/FormatUrl.js +4 -2
- package/src/index.browser.js +30 -9
- package/src/index.esm.js +46 -68
- package/src/now/NowDefault.js +4 -2
- package/src/now/NowFormat.js +4 -2
- package/src/now/NowGrid.js +4 -2
- package/src/now/NowHuman.js +4 -2
- package/src/now/NowMatch.js +4 -2
- package/src/now/NowRange.js +4 -2
- package/src/now/NowWalker.js +4 -2
- package/src/utils/Array.js +1 -1
- package/src/utils/Cookie.js +1 -1
- package/src/utils/Data.js +1 -1
- package/src/utils/Dom.js +28 -28
- package/src/utils/Event.js +2 -2
- package/src/utils/Format.js +10 -10
- package/src/utils/Hash.js +1 -1
- package/src/utils/Locale.js +1 -1
- package/src/utils/Mixed.js +1 -1
- package/src/utils/Now.js +15 -15
- package/src/utils/Number.js +1 -1
- package/src/utils/Object.js +1 -1
- package/src/utils/Route.js +1 -1
- package/src/utils/Runner.js +4 -4
- package/src/utils/String.js +1 -1
- package/src/wip/Element.js +4 -4
- package/src/wip/Map.js +4 -4
- package/types/dom/DomAttribute.d.ts +21 -20
- package/types/dom/DomBuilder.d.ts +12 -11
- package/types/dom/DomEvent.d.ts +17 -16
- package/types/dom/DomFinder.d.ts +8 -7
- package/types/dom/DomForm.d.ts +4 -3
- package/types/dom/DomGlobal.d.ts +8 -7
- package/types/dom/DomInview.d.ts +2 -1
- package/types/dom/DomMeta.d.ts +4 -3
- package/types/dom/DomObserver.d.ts +4 -3
- package/types/dom/DomRectangle.d.ts +9 -8
- package/types/format/FormatFile.d.ts +2 -1
- package/types/format/FormatOption.d.ts +2 -1
- package/types/format/FormatParam.d.ts +2 -1
- package/types/format/FormatParser.d.ts +2 -1
- package/types/format/FormatUrl.d.ts +2 -1
- package/types/index.esm.d.ts +67 -41
- package/types/now/NowDefault.d.ts +2 -1
- package/types/now/NowFormat.d.ts +2 -1
- package/types/now/NowGrid.d.ts +2 -1
- package/types/now/NowHuman.d.ts +2 -1
- package/types/now/NowMatch.d.ts +2 -1
- package/types/now/NowRange.d.ts +2 -1
- package/types/now/NowWalker.d.ts +2 -1
- package/types/utils/Array.d.ts +6 -6
- package/types/utils/Dom.d.ts +35 -35
- package/types/utils/Event.d.ts +2 -2
- package/types/utils/Format.d.ts +11 -11
- package/types/utils/Now.d.ts +14 -14
- package/types/utils/Runner.d.ts +6 -6
- package/types/wip/Element.d.ts +8 -8
- package/types/wip/Map.d.ts +8 -8
- package/types/index.browser.d.ts +0 -1
package/types/now/NowRange.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export class PicoNowRangeInstance {
|
|
|
18
18
|
*/
|
|
19
19
|
getDatesRange(...args: any[]): PicoNow[];
|
|
20
20
|
}
|
|
21
|
-
export function PicoNowRangePlugin(self:
|
|
21
|
+
export function PicoNowRangePlugin(self: typeof PicoNow): typeof PicoNow;
|
|
22
|
+
import { PicoNow } from "../utils/Now.js";
|
package/types/now/NowWalker.d.ts
CHANGED
|
@@ -298,4 +298,5 @@ export class PicoNowWalkerInstance {
|
|
|
298
298
|
*/
|
|
299
299
|
lastDecade(): PicoNow;
|
|
300
300
|
}
|
|
301
|
-
export function PicoNowWalkerPlugin(self:
|
|
301
|
+
export function PicoNowWalkerPlugin(self: typeof PicoNow): typeof PicoNow;
|
|
302
|
+
import { PicoNow } from "../utils/Now.js";
|
package/types/utils/Array.d.ts
CHANGED
|
@@ -455,26 +455,26 @@ export namespace PicoArray {
|
|
|
455
455
|
/**
|
|
456
456
|
* @see PicoArray.sortPrim
|
|
457
457
|
*/
|
|
458
|
-
function sortString(...args: any[]): any
|
|
458
|
+
function sortString(...args: any[]): any;
|
|
459
459
|
/**
|
|
460
460
|
* @see PicoArray.append
|
|
461
461
|
*/
|
|
462
|
-
function push(...args: any[]): any
|
|
462
|
+
function push(...args: any[]): any;
|
|
463
463
|
/**
|
|
464
464
|
* @see PicoArray.merge
|
|
465
465
|
*/
|
|
466
|
-
function concat(...args: any[]): any
|
|
466
|
+
function concat(...args: any[]): any;
|
|
467
467
|
/**
|
|
468
468
|
* @see PicoArray.matches
|
|
469
469
|
*/
|
|
470
|
-
function equal(...args: any[]):
|
|
470
|
+
function equal(...args: any[]): any;
|
|
471
471
|
/**
|
|
472
472
|
* @see PicoArray.diff
|
|
473
473
|
*/
|
|
474
|
-
function diffrence(...args: any[]): any
|
|
474
|
+
function diffrence(...args: any[]): any;
|
|
475
475
|
/**
|
|
476
476
|
* @see PicoArray.isect
|
|
477
477
|
*/
|
|
478
|
-
function intersect(...args: any[]): any
|
|
478
|
+
function intersect(...args: any[]): any;
|
|
479
479
|
}
|
|
480
480
|
export default PicoArray;
|
package/types/utils/Dom.d.ts
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
* @returns {typeof PicoDom}
|
|
3
3
|
*/
|
|
4
4
|
export function PicoDomBuilder(): typeof PicoDom;
|
|
5
|
-
export const PicoDomPlugins: ((self:
|
|
5
|
+
export const PicoDomPlugins: ((self: typeof PicoDom) => typeof PicoDom)[];
|
|
6
6
|
/**
|
|
7
7
|
* @class PicoDom
|
|
8
8
|
*
|
|
9
|
-
* @typedef {import('
|
|
10
|
-
* @typedef {import('
|
|
11
|
-
* @typedef {import('
|
|
12
|
-
* @typedef {import('
|
|
13
|
-
* @typedef {import('
|
|
14
|
-
* @typedef {import('
|
|
15
|
-
* @typedef {import('
|
|
16
|
-
* @typedef {import('
|
|
17
|
-
* @typedef {import('
|
|
18
|
-
* @typedef {import('
|
|
19
|
-
* @typedef {import('
|
|
20
|
-
* @typedef {import('
|
|
21
|
-
* @typedef {import('
|
|
22
|
-
* @typedef {import('
|
|
23
|
-
* @typedef {import('
|
|
24
|
-
* @typedef {import('
|
|
25
|
-
* @typedef {import('
|
|
9
|
+
* @typedef {import('../dom/DomFinder.js').PicoDomFinderInstance} PicoDomFinderInstance
|
|
10
|
+
* @typedef {import('../dom/DomGlobal.js').PicoDomGlobalStatic} PicoDomGlobalStatic
|
|
11
|
+
* @typedef {import('../dom/DomGlobal.js').PicoDomGlobalInstance} PicoDomGlobalInstance
|
|
12
|
+
* @typedef {import('../dom/DomEvent.js').PicoDomEventStatic} PicoDomEventStatic
|
|
13
|
+
* @typedef {import('../dom/DomEvent.js').PicoDomEventInstance} PicoDomEventInstance
|
|
14
|
+
* @typedef {import('../dom/DomBuilder.js').PicoDomBuilderStatic} PicoDomBuilderStatic
|
|
15
|
+
* @typedef {import('../dom/DomBuilder.js').PicoDomBuilderInstance} PicoDomBuilderInstance
|
|
16
|
+
* @typedef {import('../dom/DomRectangle.js').PicoDomRectangleStatic} PicoDomRectangleStatic
|
|
17
|
+
* @typedef {import('../dom/DomRectangle.js').PicoDomRectangleInstance} PicoDomRectangleInstance
|
|
18
|
+
* @typedef {import('../dom/DomAttribute.js').PicoDomAttributeStatic} PicoDomAttributeStatic
|
|
19
|
+
* @typedef {import('../dom/DomAttribute.js').PicoDomAttributeInstance} PicoDomAttributeInstance
|
|
20
|
+
* @typedef {import('../dom/DomInview.js').PicoDomInviewStatic} PicoDomInviewStatic
|
|
21
|
+
* @typedef {import('../dom/DomInview.js').PicoDomInviewInstance} PicoDomInviewInstance
|
|
22
|
+
* @typedef {import('../dom/DomMeta.js').PicoDomMetaStatic} PicoDomMetaStatic
|
|
23
|
+
* @typedef {import('../dom/DomMeta.js').PicoDomMetaInstance} PicoDomMetaInstance
|
|
24
|
+
* @typedef {import('../dom/DomObserver.js').PicoDomObserverStatic} PicoDomObserverStatic
|
|
25
|
+
* @typedef {import('../dom/DomObserver.js').PicoDomObserverInstance} PicoDomObserverInstance
|
|
26
26
|
*
|
|
27
27
|
* @mixes PicoDomFinderStatic
|
|
28
28
|
* @mixes PicoDomGlobalStatic
|
|
@@ -119,20 +119,20 @@ export class PicoDom {
|
|
|
119
119
|
els: Array<HTMLElement>;
|
|
120
120
|
}
|
|
121
121
|
export default PicoDomBuilder;
|
|
122
|
-
export type PicoDomFinderInstance = import("
|
|
123
|
-
export type PicoDomGlobalStatic = import("
|
|
124
|
-
export type PicoDomGlobalInstance = import("
|
|
125
|
-
export type PicoDomEventStatic = import("
|
|
126
|
-
export type PicoDomEventInstance = import("
|
|
127
|
-
export type PicoDomBuilderStatic = import("
|
|
128
|
-
export type PicoDomBuilderInstance = import("
|
|
129
|
-
export type PicoDomRectangleStatic = import("
|
|
130
|
-
export type PicoDomRectangleInstance = import("
|
|
131
|
-
export type PicoDomAttributeStatic = import("
|
|
132
|
-
export type PicoDomAttributeInstance = import("
|
|
133
|
-
export type PicoDomInviewStatic = import("
|
|
134
|
-
export type PicoDomInviewInstance = import("
|
|
135
|
-
export type PicoDomMetaStatic = import("
|
|
136
|
-
export type PicoDomMetaInstance = import("
|
|
137
|
-
export type PicoDomObserverStatic = import("
|
|
138
|
-
export type PicoDomObserverInstance = import("
|
|
122
|
+
export type PicoDomFinderInstance = import("../dom/DomFinder.js").PicoDomFinderInstance;
|
|
123
|
+
export type PicoDomGlobalStatic = import("../dom/DomGlobal.js").PicoDomGlobalStatic;
|
|
124
|
+
export type PicoDomGlobalInstance = import("../dom/DomGlobal.js").PicoDomGlobalInstance;
|
|
125
|
+
export type PicoDomEventStatic = import("../dom/DomEvent.js").PicoDomEventStatic;
|
|
126
|
+
export type PicoDomEventInstance = import("../dom/DomEvent.js").PicoDomEventInstance;
|
|
127
|
+
export type PicoDomBuilderStatic = import("../dom/DomBuilder.js").PicoDomBuilderStatic;
|
|
128
|
+
export type PicoDomBuilderInstance = import("../dom/DomBuilder.js").PicoDomBuilderInstance;
|
|
129
|
+
export type PicoDomRectangleStatic = import("../dom/DomRectangle.js").PicoDomRectangleStatic;
|
|
130
|
+
export type PicoDomRectangleInstance = import("../dom/DomRectangle.js").PicoDomRectangleInstance;
|
|
131
|
+
export type PicoDomAttributeStatic = import("../dom/DomAttribute.js").PicoDomAttributeStatic;
|
|
132
|
+
export type PicoDomAttributeInstance = import("../dom/DomAttribute.js").PicoDomAttributeInstance;
|
|
133
|
+
export type PicoDomInviewStatic = import("../dom/DomInview.js").PicoDomInviewStatic;
|
|
134
|
+
export type PicoDomInviewInstance = import("../dom/DomInview.js").PicoDomInviewInstance;
|
|
135
|
+
export type PicoDomMetaStatic = import("../dom/DomMeta.js").PicoDomMetaStatic;
|
|
136
|
+
export type PicoDomMetaInstance = import("../dom/DomMeta.js").PicoDomMetaInstance;
|
|
137
|
+
export type PicoDomObserverStatic = import("../dom/DomObserver.js").PicoDomObserverStatic;
|
|
138
|
+
export type PicoDomObserverInstance = import("../dom/DomObserver.js").PicoDomObserverInstance;
|
package/types/utils/Event.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ export class PicoEvent {
|
|
|
30
30
|
* @example Event.fire("x", 1) // => Event
|
|
31
31
|
*
|
|
32
32
|
* @param {string} event Event name
|
|
33
|
-
* @param {...any}
|
|
33
|
+
* @param {...any} args Event args
|
|
34
34
|
* @returns {typeof PicoEvent} Event class
|
|
35
35
|
*/
|
|
36
|
-
static fire(event: string, ...args
|
|
36
|
+
static fire(event: string, ...args: any[]): typeof PicoEvent;
|
|
37
37
|
/**
|
|
38
38
|
* Pause listeners for event
|
|
39
39
|
*
|
package/types/utils/Format.d.ts
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* @returns {typeof PicoFormat}
|
|
3
3
|
*/
|
|
4
4
|
export function PicoFormatBuilder(): typeof PicoFormat;
|
|
5
|
-
export const PicoFormatPlugins: ((self:
|
|
5
|
+
export const PicoFormatPlugins: ((self: typeof PicoFormat) => typeof PicoFormat)[];
|
|
6
6
|
/**
|
|
7
7
|
* @class PicoFormat
|
|
8
8
|
*
|
|
9
|
-
* @typedef {import('
|
|
10
|
-
* @typedef {import('
|
|
11
|
-
* @typedef {import('
|
|
12
|
-
* @typedef {import('
|
|
13
|
-
* @typedef {import('
|
|
9
|
+
* @typedef {import('../format/FormatParser.js').PicoFormatParserStatic} PicoFormatParserStatic
|
|
10
|
+
* @typedef {import('../format/FormatParam.js').PicoFormatParamStatic} PicoFormatParamStatic
|
|
11
|
+
* @typedef {import('../format/FormatOption.js').PicoFormatOptionStatic} PicoFormatOptionStatic
|
|
12
|
+
* @typedef {import('../format/FormatUrl.js').PicoFormatUrlStatic} PicoFormatUrlStatic
|
|
13
|
+
* @typedef {import('../format/FormatFile.js').PicoFormatFileStatic} PicoFormatFileStatic
|
|
14
14
|
*
|
|
15
15
|
* @mixes PicoFormatParserStatic
|
|
16
16
|
* @mixes PicoFormatParamStatic
|
|
@@ -30,8 +30,8 @@ export class PicoFormat {
|
|
|
30
30
|
static extend(plugin: Function): void;
|
|
31
31
|
}
|
|
32
32
|
export default PicoFormatBuilder;
|
|
33
|
-
export type PicoFormatParserStatic = import("
|
|
34
|
-
export type PicoFormatParamStatic = import("
|
|
35
|
-
export type PicoFormatOptionStatic = import("
|
|
36
|
-
export type PicoFormatUrlStatic = import("
|
|
37
|
-
export type PicoFormatFileStatic = import("
|
|
33
|
+
export type PicoFormatParserStatic = import("../format/FormatParser.js").PicoFormatParserStatic;
|
|
34
|
+
export type PicoFormatParamStatic = import("../format/FormatParam.js").PicoFormatParamStatic;
|
|
35
|
+
export type PicoFormatOptionStatic = import("../format/FormatOption.js").PicoFormatOptionStatic;
|
|
36
|
+
export type PicoFormatUrlStatic = import("../format/FormatUrl.js").PicoFormatUrlStatic;
|
|
37
|
+
export type PicoFormatFileStatic = import("../format/FormatFile.js").PicoFormatFileStatic;
|
package/types/utils/Now.d.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* @returns {typeof PicoNow}
|
|
3
3
|
*/
|
|
4
4
|
export function PicoNowBuilder(): typeof PicoNow;
|
|
5
|
-
export const PicoNowPlugins: ((self:
|
|
5
|
+
export const PicoNowPlugins: ((self: typeof PicoNow) => typeof PicoNow)[];
|
|
6
6
|
/**
|
|
7
7
|
* @class PicoNow
|
|
8
8
|
*
|
|
9
|
-
* @typedef {import('
|
|
10
|
-
* @typedef {import('
|
|
11
|
-
* @typedef {import('
|
|
12
|
-
* @typedef {import('
|
|
13
|
-
* @typedef {import('
|
|
14
|
-
* @typedef {import('
|
|
15
|
-
* @typedef {import('
|
|
9
|
+
* @typedef {import('../now/NowMatch.js').PicoNowMatchInstance} PicoNowMatchInstance
|
|
10
|
+
* @typedef {import('../now/NowFormat.js').PicoNowFormatInstance} PicoNowFormatInstance
|
|
11
|
+
* @typedef {import('../now/NowMatch.js').PicoNowMatchInstance} PicoNowMatchInstance
|
|
12
|
+
* @typedef {import('../now/NowGrid.js').PicoNowGridInstance} PicoNowGridInstance
|
|
13
|
+
* @typedef {import('../now/NowWalker.js').PicoNowWalkerInstance} PicoNowWalkerInstance
|
|
14
|
+
* @typedef {import('../now/NowRange.js').PicoNowRangeInstance} PicoNowRangeInstance
|
|
15
|
+
* @typedef {import('../now/NowHuman.js').PicoNowHumanInstance} PicoNowHumanInstance
|
|
16
16
|
*
|
|
17
17
|
* @extends PicoNowDefaultInstance
|
|
18
18
|
* @extends PicoNowFormatInstance
|
|
@@ -117,9 +117,9 @@ export class PicoNow {
|
|
|
117
117
|
resetTime(): PicoNow;
|
|
118
118
|
}
|
|
119
119
|
export default PicoNowBuilder;
|
|
120
|
-
export type PicoNowMatchInstance = import("
|
|
121
|
-
export type PicoNowFormatInstance = import("
|
|
122
|
-
export type PicoNowGridInstance = import("
|
|
123
|
-
export type PicoNowWalkerInstance = import("
|
|
124
|
-
export type PicoNowRangeInstance = import("
|
|
125
|
-
export type PicoNowHumanInstance = import("
|
|
120
|
+
export type PicoNowMatchInstance = import("../now/NowMatch.js").PicoNowMatchInstance;
|
|
121
|
+
export type PicoNowFormatInstance = import("../now/NowFormat.js").PicoNowFormatInstance;
|
|
122
|
+
export type PicoNowGridInstance = import("../now/NowGrid.js").PicoNowGridInstance;
|
|
123
|
+
export type PicoNowWalkerInstance = import("../now/NowWalker.js").PicoNowWalkerInstance;
|
|
124
|
+
export type PicoNowRangeInstance = import("../now/NowRange.js").PicoNowRangeInstance;
|
|
125
|
+
export type PicoNowHumanInstance = import("../now/NowHuman.js").PicoNowHumanInstance;
|
package/types/utils/Runner.d.ts
CHANGED
|
@@ -59,20 +59,20 @@ export class PicoRunner {
|
|
|
59
59
|
* @example Run.frame(() => {}) // => Run
|
|
60
60
|
*
|
|
61
61
|
* @param {function} fn Callback to run
|
|
62
|
-
* @param {...any}
|
|
62
|
+
* @param {...any} args Callback args
|
|
63
63
|
* @returns {typeof PicoRunner} Runner class
|
|
64
64
|
*/
|
|
65
|
-
static frame(fn: Function, ...args
|
|
65
|
+
static frame(fn: Function, ...args: any[]): typeof PicoRunner;
|
|
66
66
|
/**
|
|
67
67
|
* Run callback async soon
|
|
68
68
|
*
|
|
69
69
|
* @example Run.async(() => {}) // => Run
|
|
70
70
|
*
|
|
71
71
|
* @param {function} fn Callback to run
|
|
72
|
-
* @param {...any}
|
|
72
|
+
* @param {...any} args Callback args
|
|
73
73
|
* @returns {typeof PicoRunner} Runner class
|
|
74
74
|
*/
|
|
75
|
-
static async(fn: Function, ...args
|
|
75
|
+
static async(fn: Function, ...args: any[]): typeof PicoRunner;
|
|
76
76
|
/**
|
|
77
77
|
* Run callback after delay
|
|
78
78
|
*
|
|
@@ -80,10 +80,10 @@ export class PicoRunner {
|
|
|
80
80
|
*
|
|
81
81
|
* @param {function} fn Callback to run
|
|
82
82
|
* @param {number} [delay] Delay ms
|
|
83
|
-
* @param {...any}
|
|
83
|
+
* @param {...any} args Callback args
|
|
84
84
|
* @returns {function} Cancel function
|
|
85
85
|
*/
|
|
86
|
-
static delay(fn: Function, delay?: number, ...args
|
|
86
|
+
static delay(fn: Function, delay?: number, ...args: any[]): Function;
|
|
87
87
|
/**
|
|
88
88
|
* Create debounced callback
|
|
89
89
|
*
|
package/types/wip/Element.d.ts
CHANGED
|
@@ -42,9 +42,9 @@ export class PicoElement {
|
|
|
42
42
|
*
|
|
43
43
|
* @param {string} key Alias key
|
|
44
44
|
* @param {any} instance Class instance
|
|
45
|
-
* @returns {
|
|
45
|
+
* @returns {PicoElement} Current class
|
|
46
46
|
*/
|
|
47
|
-
static alias(key: string, instance: any):
|
|
47
|
+
static alias(key: string, instance: any): PicoElement;
|
|
48
48
|
/**
|
|
49
49
|
* Bind element to selector
|
|
50
50
|
*
|
|
@@ -53,9 +53,9 @@ export class PicoElement {
|
|
|
53
53
|
* @param {string} key Alias key
|
|
54
54
|
* @param {any} selector Dom selector
|
|
55
55
|
* @param {any} [options] Init options
|
|
56
|
-
* @returns {
|
|
56
|
+
* @returns {PicoElement} Current class
|
|
57
57
|
*/
|
|
58
|
-
static bind(key: string, selector: any, options?: any):
|
|
58
|
+
static bind(key: string, selector: any, options?: any): PicoElement;
|
|
59
59
|
/**
|
|
60
60
|
* Unbind element from selector
|
|
61
61
|
*
|
|
@@ -64,9 +64,9 @@ export class PicoElement {
|
|
|
64
64
|
* @param {string} key Alias key
|
|
65
65
|
* @param {any} selector Dom selector
|
|
66
66
|
* @param {any} [options] Init options
|
|
67
|
-
* @returns {
|
|
67
|
+
* @returns {PicoElement} Current class
|
|
68
68
|
*/
|
|
69
|
-
static unbind(key: string, selector: any, options?: any):
|
|
69
|
+
static unbind(key: string, selector: any, options?: any): PicoElement;
|
|
70
70
|
/**
|
|
71
71
|
* Observe DOM changes
|
|
72
72
|
*
|
|
@@ -74,9 +74,9 @@ export class PicoElement {
|
|
|
74
74
|
*
|
|
75
75
|
* @param {string} key Alias key
|
|
76
76
|
* @param {boolean} [plain] Plain options
|
|
77
|
-
* @returns {
|
|
77
|
+
* @returns {PicoElement} Current class
|
|
78
78
|
*/
|
|
79
|
-
static observe(key: string, plain?: boolean):
|
|
79
|
+
static observe(key: string, plain?: boolean): PicoElement;
|
|
80
80
|
/**
|
|
81
81
|
* Bind element on inview
|
|
82
82
|
*
|
package/types/wip/Map.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export class PicoMap {
|
|
|
12
12
|
* @example Map.setMapStyle(style)
|
|
13
13
|
*
|
|
14
14
|
* @param {Array<any>} [style] Style array
|
|
15
|
-
* @returns {
|
|
15
|
+
* @returns {PicoMap} Current class
|
|
16
16
|
*/
|
|
17
|
-
static setMapStyle(style?: Array<any>):
|
|
17
|
+
static setMapStyle(style?: Array<any>): PicoMap;
|
|
18
18
|
/**
|
|
19
19
|
* Set marker style
|
|
20
20
|
*
|
|
@@ -23,9 +23,9 @@ export class PicoMap {
|
|
|
23
23
|
* @param {string} key Style key
|
|
24
24
|
* @param {any} [style] Style options
|
|
25
25
|
* @param {any} [extra] Extra options
|
|
26
|
-
* @returns {
|
|
26
|
+
* @returns {PicoMap} Current class
|
|
27
27
|
*/
|
|
28
|
-
static setMarkerStyle(key: string, style?: any, extra?: any):
|
|
28
|
+
static setMarkerStyle(key: string, style?: any, extra?: any): PicoMap;
|
|
29
29
|
/**
|
|
30
30
|
* Create map instance
|
|
31
31
|
*
|
|
@@ -218,9 +218,9 @@ export class PicoMap {
|
|
|
218
218
|
* @example map.showMarkers()
|
|
219
219
|
*
|
|
220
220
|
* @param {any} [filter] Marker filter
|
|
221
|
-
* @returns {
|
|
221
|
+
* @returns {PicoMap} Current instance
|
|
222
222
|
*/
|
|
223
|
-
showMarkers(filter?: any):
|
|
223
|
+
showMarkers(filter?: any): PicoMap;
|
|
224
224
|
/**
|
|
225
225
|
* Get marker boundary
|
|
226
226
|
*
|
|
@@ -238,9 +238,9 @@ export class PicoMap {
|
|
|
238
238
|
* @param {any} [filter] Marker filter
|
|
239
239
|
* @param {number} [maxZoom] Max zoom level
|
|
240
240
|
* @param {number} [boundSpace] Viewport space
|
|
241
|
-
* @returns {
|
|
241
|
+
* @returns {PicoMap} Current instance
|
|
242
242
|
*/
|
|
243
|
-
focusMarkers(filter?: any, maxZoom?: number, boundSpace?: number):
|
|
243
|
+
focusMarkers(filter?: any, maxZoom?: number, boundSpace?: number): PicoMap;
|
|
244
244
|
/**
|
|
245
245
|
* Render directions on map
|
|
246
246
|
*
|
package/types/index.browser.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|