@wox-launcher/wox-plugin 0.0.20 → 0.0.22
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 +6 -6
- package/dist/index.js +22 -24
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -63,10 +63,10 @@ export interface WoxImage {
|
|
|
63
63
|
ImageType: WoxImageType;
|
|
64
64
|
ImageData: string;
|
|
65
65
|
}
|
|
66
|
-
export declare
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
export declare class WoxImageCreator {
|
|
67
|
+
static FromAbsolutePath(path: string): WoxImage;
|
|
68
|
+
static FromRelativeToPluginPath(path: string): WoxImage;
|
|
69
|
+
static FromSvg(svg: string): WoxImage;
|
|
70
|
+
static FromBase64(base64: string): WoxImage;
|
|
71
|
+
static FromRemote(url: string): WoxImage;
|
|
72
72
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
exports.WoxImageCreator = void 0;
|
|
4
|
+
var WoxImageCreator = /** @class */ (function () {
|
|
5
|
+
function WoxImageCreator() {
|
|
6
|
+
}
|
|
7
|
+
WoxImageCreator.FromAbsolutePath = function (path) {
|
|
7
8
|
return {
|
|
8
9
|
ImageType: "AbsolutePath",
|
|
9
|
-
ImageData: path
|
|
10
|
+
ImageData: path
|
|
10
11
|
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function FromRelativeToPluginPath(path) {
|
|
12
|
+
};
|
|
13
|
+
WoxImageCreator.FromRelativeToPluginPath = function (path) {
|
|
14
14
|
return {
|
|
15
15
|
ImageType: "RelativeToPluginPath",
|
|
16
|
-
ImageData: path
|
|
16
|
+
ImageData: path
|
|
17
17
|
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function FromSvg(svg) {
|
|
18
|
+
};
|
|
19
|
+
WoxImageCreator.FromSvg = function (svg) {
|
|
21
20
|
return {
|
|
22
21
|
ImageType: "Svg",
|
|
23
|
-
ImageData: svg
|
|
22
|
+
ImageData: svg
|
|
24
23
|
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function FromBase64(base64) {
|
|
24
|
+
};
|
|
25
|
+
WoxImageCreator.FromBase64 = function (base64) {
|
|
28
26
|
return {
|
|
29
27
|
ImageType: "Base64",
|
|
30
|
-
ImageData: base64
|
|
28
|
+
ImageData: base64
|
|
31
29
|
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function FromRemote(url) {
|
|
30
|
+
};
|
|
31
|
+
WoxImageCreator.FromRemote = function (url) {
|
|
35
32
|
return {
|
|
36
33
|
ImageType: "Remote",
|
|
37
|
-
ImageData: url
|
|
34
|
+
ImageData: url
|
|
38
35
|
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
36
|
+
};
|
|
37
|
+
return WoxImageCreator;
|
|
38
|
+
}());
|
|
39
|
+
exports.WoxImageCreator = WoxImageCreator;
|