@evercam/ui 1.0.0-preview-smart-search-dash-7b3999ff2 → 1.0.0-preview-stats-monitor-commponent-6baabcfb7
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/CHANGELOG.md +1 -2
- package/dist/index.mjs +140 -148
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/types.d.ts +28 -0
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -327,5 +327,33 @@ export declare enum CompareMode {
|
|
|
327
327
|
Curtain = "curtain",
|
|
328
328
|
Transparency = "transparency"
|
|
329
329
|
}
|
|
330
|
+
export type StatsPanel = {
|
|
331
|
+
dom: HTMLCanvasElement;
|
|
332
|
+
update: (value: number, maxValue: number) => void;
|
|
333
|
+
};
|
|
334
|
+
export type StatsInstance = {
|
|
335
|
+
REVISION: number;
|
|
336
|
+
dom: HTMLDivElement;
|
|
337
|
+
addPanel: (panel: StatsPanel) => StatsPanel;
|
|
338
|
+
showPanel: (id: number) => void;
|
|
339
|
+
begin: () => void;
|
|
340
|
+
end: () => number;
|
|
341
|
+
update: () => void;
|
|
342
|
+
domElement: HTMLDivElement;
|
|
343
|
+
setMode: (id: number) => void;
|
|
344
|
+
panels: StatsPanel[];
|
|
345
|
+
};
|
|
346
|
+
export type CustomPanel = {
|
|
347
|
+
name: string;
|
|
348
|
+
foregroundColor: string;
|
|
349
|
+
backgroundColor: string;
|
|
350
|
+
};
|
|
351
|
+
export type PanelConfig = {
|
|
352
|
+
showFPS: boolean;
|
|
353
|
+
showMS: boolean;
|
|
354
|
+
showMemory: boolean;
|
|
355
|
+
customPanels: Array<CustomPanel>;
|
|
356
|
+
};
|
|
357
|
+
export type StatsPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
330
358
|
declare const _default: {};
|
|
331
359
|
export default _default;
|
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@evercam/ui",
|
|
5
|
-
"version": "1.0.0-preview-
|
|
5
|
+
"version": "1.0.0-preview-stats-monitor-commponent-6baabcfb7",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|