@malloydata/render 0.0.225-dev241231223221 → 0.0.225-dev250103194727
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/DEVELOPING.md +6 -1
- package/dist/component/types.d.ts +1 -1
- package/dist/component/util.d.ts +1 -0
- package/dist/module/index.mjs +4917 -4885
- package/dist/module/index.umd.js +161 -161
- package/dist/register/register.mjs +8500 -8462
- package/dist/register/register.umd.js +205 -205
- package/dist/webcomponent/malloy-render.mjs +8500 -8462
- package/dist/webcomponent/malloy-render.umd.js +205 -205
- package/package.json +2 -2
package/DEVELOPING.md
CHANGED
|
@@ -8,11 +8,16 @@ The legacy renderer is deprecated but is still available and in use for features
|
|
|
8
8
|
|
|
9
9
|
## Viewing the renderer locally
|
|
10
10
|
|
|
11
|
-
Storybook is used to view the renderer locally. To launch the storybook
|
|
11
|
+
Storybook is used to view the renderer locally. To launch the storybook, run the storybook script in `packages/malloy-render/package.json`:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
$ npm run storybook
|
|
15
15
|
```
|
|
16
|
+
Or, on a Windows machine, and from the Malloy repo directory:
|
|
17
|
+
```bash
|
|
18
|
+
$ npm run --prefix packages/malloy-render storybook-windows
|
|
19
|
+
```
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
Then navigate to the URL provided. In this storybook, you can navigate between different stories that render Malloy queries from the Malloy source code.
|
|
18
23
|
|
|
@@ -35,7 +35,7 @@ export interface FieldRenderMetadata {
|
|
|
35
35
|
max: number | null;
|
|
36
36
|
minString: string | null;
|
|
37
37
|
maxString: string | null;
|
|
38
|
-
values: Set<string | number>;
|
|
38
|
+
values: Set<string | number | boolean>;
|
|
39
39
|
maxRecordCt: number | null;
|
|
40
40
|
maxUniqueFieldValueCounts: Map<string, number>;
|
|
41
41
|
vegaChartProps?: VegaChartProps;
|
package/dist/component/util.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Explore, Field } from '@malloydata/malloy';
|
|
|
2
2
|
export declare function isLastChild(f: Field | Explore): boolean;
|
|
3
3
|
export declare function isFirstChild(f: Field | Explore): boolean;
|
|
4
4
|
export declare function valueIsNumber(f: Field, v: unknown): v is number;
|
|
5
|
+
export declare function valueIsBoolean(f: Field, v: unknown): v is boolean;
|
|
5
6
|
export declare function valueIsString(f: Field, s: unknown): s is string;
|
|
6
7
|
export declare function valueIsDateTime(f: Field, v: unknown): v is Date;
|
|
7
8
|
export declare function getTextWidthCanvas(text: string, font: string, canvasToUse?: HTMLCanvasElement): number;
|