@dodona/papyros 0.3.0 → 0.3.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/dist/Library.js +1 -1
- package/dist/util/HTMLShapes.d.ts +3 -3
- package/dist/util/Util.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Draw a circle
|
|
2
|
+
* Draw a spinning circle to represent a loading animation
|
|
3
3
|
* @param {string} id HTML id for this element
|
|
4
|
-
* @param {string}
|
|
4
|
+
* @param {string} borderColors The tailwind color classes for the borders of the circle
|
|
5
5
|
* @return {string} A string representation of the circle
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const spinningCircle: (id: string, borderColors: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* Wrap text (best a single character) in a circle to provide information to the user
|
|
10
10
|
* @param {string} content The symbol in the circle, e.g. ? of !
|
package/dist/util/Util.d.ts
CHANGED
|
@@ -39,4 +39,10 @@ export declare function removeSelection(selectId: string): void;
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function parseData(data: string, contentType?: string): any;
|
|
41
41
|
export declare function downloadResults(data: string, filename: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* Obtain the url of the current page without hashes, identifiers, query params, ...
|
|
44
|
+
* @param {boolean} endingSlash Whether the url should end in a slash
|
|
45
|
+
* @return {string} The current url
|
|
46
|
+
*/
|
|
47
|
+
export declare function cleanCurrentUrl(endingSlash?: boolean): string;
|
|
42
48
|
export {};
|