@graphysdk/theme-bauhaus 0.0.0-stage → 0.1.0
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/LICENSE.md +17 -0
- package/README.md +61 -2
- package/dist/bauhaus.d.ts +21 -0
- package/dist/frame.d.ts +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +882 -0
- package/dist/palette.d.ts +19 -0
- package/dist/renderer/bar-frame.d.ts +18 -0
- package/dist/renderer/bar.d.ts +9 -0
- package/dist/renderer/forms.d.ts +40 -0
- package/dist/renderer/line.d.ts +9 -0
- package/dist/renderer/overprint.d.ts +5 -0
- package/dist/renderer/paint.d.ts +21 -0
- package/dist/renderer/plugins.d.ts +7 -0
- package/dist/renderer/point.d.ts +9 -0
- package/dist/renderer/slice.d.ts +8 -0
- package/dist/renderer/trace.d.ts +22 -0
- package/dist/renderer/utils/paths.d.ts +7 -0
- package/dist/renderer/utils/projections.d.ts +14 -0
- package/dist/styles.d.ts +9 -0
- package/fonts.css +2 -0
- package/licenses/PolyForm-Free-Trial-1.0.0.md +93 -0
- package/licenses/PolyForm-NonCommercial-1.0.0.md +131 -0
- package/licenses/PolyForm-Small-Business-1.0.0.md +121 -0
- package/package.json +79 -3
- package/src/fonts.css.d.ts +2 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const BAUHAUS_COLORS: {
|
|
2
|
+
readonly paper: "#F3EEE1";
|
|
3
|
+
readonly black: "#141414";
|
|
4
|
+
readonly secondary: "#4A4640";
|
|
5
|
+
readonly rule: "#C9C2B1";
|
|
6
|
+
};
|
|
7
|
+
export declare const BAUHAUS_HUES: {
|
|
8
|
+
readonly red: "#D62718";
|
|
9
|
+
readonly blue: "#1B4FA3";
|
|
10
|
+
readonly yellow: "#E9A800";
|
|
11
|
+
readonly black: "#141414";
|
|
12
|
+
readonly green: "#1F7A4D";
|
|
13
|
+
readonly orange: "#CF4F14";
|
|
14
|
+
readonly violet: "#6A3D9A";
|
|
15
|
+
};
|
|
16
|
+
/** The order groups take their colours in: the primaries and black, then the secondaries. */
|
|
17
|
+
export declare const BAUHAUS_PALETTE: readonly string[];
|
|
18
|
+
/** For a colour that stands for a number: from yellow through red to black, each darker than the last. */
|
|
19
|
+
export declare const BAUHAUS_COLORMAP: readonly string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MainAxis, Observation, XYPoint } from '@graphysdk/react';
|
|
2
|
+
import { PixelSize } from './utils/projections';
|
|
3
|
+
export interface BarFrame {
|
|
4
|
+
/** Across the band. */
|
|
5
|
+
breadth: number;
|
|
6
|
+
/** Along the value, from the foot. */
|
|
7
|
+
length: number;
|
|
8
|
+
/** Whether the bar ends its stack, so its value's end is its own to shape. */
|
|
9
|
+
endsStack: boolean;
|
|
10
|
+
/** Whether the bar stands alone, with no neighbour in a stack at either end. */
|
|
11
|
+
isSolo: boolean;
|
|
12
|
+
/** A point across and along the bar, in panel pixels. */
|
|
13
|
+
at: (across: number, along: number) => XYPoint;
|
|
14
|
+
}
|
|
15
|
+
/** A bar's frame in panel pixels, drawn in from any edge it shares with a neighbour in its stack. */
|
|
16
|
+
export declare const readBarFrame: (observation: Observation, mainAxis: MainAxis, panel: PixelSize, stackGap: number) => BarFrame | null;
|
|
17
|
+
/** A path through local points: `M` at the first, `L` to each plain point, `C` through each triple. */
|
|
18
|
+
export declare const toBarPath: (frame: BarFrame, segments: ReadonlyArray<ReadonlyArray<[number, number]>>) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResolvedGeomRenderer } from '@graphysdk/react';
|
|
2
|
+
import { BarFrame } from './bar-frame';
|
|
3
|
+
/** The plane from the foot to the value, square at both ends. */
|
|
4
|
+
export declare const buildPlane: (frame: BarFrame) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Each bar as a flat plane of its group's ink, square at both ends. A stack is planes laid end to end
|
|
7
|
+
* with the paper showing between them. The hovered bar is drawn again, ruled round in black.
|
|
8
|
+
*/
|
|
9
|
+
export declare const bauhausBar: ResolvedGeomRenderer;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { XYPoint } from '@graphysdk/react';
|
|
3
|
+
/**
|
|
4
|
+
* The forms a group is drawn in. Kandinsky's questionnaire, sent round the Bauhaus workshops in 1923,
|
|
5
|
+
* asked which of the three primary forms each primary colour belonged in; the school's answer, the one
|
|
6
|
+
* its posters and teaching repeated, was the yellow triangle, the red square and the blue circle. The
|
|
7
|
+
* theme gives each group that form as well as its colour, so two groups stay apart for a reader who
|
|
8
|
+
* cannot tell the colours apart, and on paper printed in one ink.
|
|
9
|
+
*
|
|
10
|
+
* Each name is also one of the engine's point symbols, so the stylesheet can hand it to the legend.
|
|
11
|
+
*/
|
|
12
|
+
export type BauhausForm = 'square' | 'circle' | 'triangle' | 'diamond' | 'cross';
|
|
13
|
+
/**
|
|
14
|
+
* The form of each colour in the palette. Black, the fourth ink, takes the square turned on its point.
|
|
15
|
+
* The secondaries are rarer, so they repeat the primary forms in new colours, except the green, which
|
|
16
|
+
* takes a cross so it never shares a form with the red it is most often confused with.
|
|
17
|
+
*/
|
|
18
|
+
export declare const BAUHAUS_FORMS: ReadonlyArray<readonly [color: string, form: BauhausForm]>;
|
|
19
|
+
/** The form a colour is drawn in. A colour from outside the palette is drawn as a circle. */
|
|
20
|
+
export declare const readForm: (color: string) => BauhausForm;
|
|
21
|
+
/**
|
|
22
|
+
* The outline of a form centred on `centre`, covering the area of a circle `size` wide, as the engine's
|
|
23
|
+
* symbols do, so a square reads as heavy as a circle of the same size and a bubble keeps its area. A
|
|
24
|
+
* triangle is centred on its centroid, so its point of balance is the reading.
|
|
25
|
+
*/
|
|
26
|
+
export declare const buildFormPath: (form: BauhausForm, centre: XYPoint, size: number) => string;
|
|
27
|
+
interface FormProps {
|
|
28
|
+
form: BauhausForm;
|
|
29
|
+
centre: XYPoint;
|
|
30
|
+
size: number;
|
|
31
|
+
color: string;
|
|
32
|
+
opacity?: number;
|
|
33
|
+
fillOpacity?: number;
|
|
34
|
+
/** The edge drawn round the form: the paper's colour to part it from the line it sits on, or black when hovered. */
|
|
35
|
+
edge?: string;
|
|
36
|
+
edgeWidth?: number;
|
|
37
|
+
}
|
|
38
|
+
/** One form in flat ink. Its centre, or a triangle's centroid, is the reading, exactly. */
|
|
39
|
+
export declare const Form: ({ form, centre, size, color, opacity, fillOpacity, edge, edgeWidth, }: FormProps) => ReactNode;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResolvedGeomRenderer } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* A line as a heavy rule in its group's ink with its group's form, the red square, the blue circle or
|
|
4
|
+
* the yellow triangle, at each reading, centred on it. A line with too many readings to give each a
|
|
5
|
+
* form is left to its rule. The hovered reading's form grows and is ruled round in black.
|
|
6
|
+
*/
|
|
7
|
+
export declare const bauhausLine: ResolvedGeomRenderer;
|
|
8
|
+
/** A radar's outline as a closed heavy rule, with a form at each reading. */
|
|
9
|
+
export declare const bauhausRadarLine: ResolvedGeomRenderer;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observation, SceneLayerFor, StyleState } from '@graphysdk/react';
|
|
2
|
+
/** What a filled shape is drawn with. */
|
|
3
|
+
export interface ShapePaint {
|
|
4
|
+
color: string;
|
|
5
|
+
opacity: number;
|
|
6
|
+
fillOpacity: number;
|
|
7
|
+
/** The edge that parts it from its neighbours in the paper's colour, or rules it in black when hovered. */
|
|
8
|
+
edge: string;
|
|
9
|
+
edgeWidth: number;
|
|
10
|
+
}
|
|
11
|
+
/** What a line is drawn with: one heavy rule of `color`. */
|
|
12
|
+
export interface LinePaint {
|
|
13
|
+
color: string;
|
|
14
|
+
opacity: number;
|
|
15
|
+
width: number;
|
|
16
|
+
dashArray: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export type ReadShapePaint = (observation: Observation, state?: StyleState) => ShapePaint;
|
|
19
|
+
export type ReadLinePaint = (observation: Observation, state?: StyleState) => LinePaint;
|
|
20
|
+
export declare const useShapePaint: (layer: SceneLayerFor<"bar" | "point" | "tile" | "area">) => ReadShapePaint;
|
|
21
|
+
export declare const useLinePaint: (layer: SceneLayerFor<"line">) => ReadLinePaint;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ResolvedGeomRenderer } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* Every built-in geom the theme repaints, under each coordinate system it is drawn in. Positions,
|
|
4
|
+
* scales and axes come from the compiled layer unchanged, and colour, opacity, edge and form come from
|
|
5
|
+
* the stylesheet, so `style.geom.*` still decides what a shape is printed in.
|
|
6
|
+
*/
|
|
7
|
+
export declare const bauhausPlugins: readonly ResolvedGeomRenderer[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResolvedGeomRenderer } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* Scatter and bubble: each point a flat form in its group's ink, the red square, the blue circle or the
|
|
4
|
+
* yellow triangle, as large in area as the point's size, its centre the reading. Forms that overlap
|
|
5
|
+
* overprint. The hovered point is drawn again, larger and ruled round in black.
|
|
6
|
+
*/
|
|
7
|
+
export declare const bauhausPoint: ResolvedGeomRenderer;
|
|
8
|
+
/** A radar's points, as forms at its readings. */
|
|
9
|
+
export declare const bauhausRadarPoint: ResolvedGeomRenderer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResolvedGeomRenderer } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* Pie, donut, rose and radial bar as flat fields of ink parted by the paper. A rose's or a radial bar's
|
|
4
|
+
* slice reaches out by its value and ends in the bar's heavy black rule along its outer arc, whose
|
|
5
|
+
* outer edge is the value; a pie's or a donut's slices carry their value in their angle, kept exactly,
|
|
6
|
+
* and are left unruled. The hovered slice is drawn again, ruled round in black.
|
|
7
|
+
*/
|
|
8
|
+
export declare const bauhausSlice: ResolvedGeomRenderer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Observation, SceneLayer, XYPoint } from '@graphysdk/react';
|
|
2
|
+
import { PixelSize, Projection } from './utils/projections';
|
|
3
|
+
/** One group's path in panel pixels, with the observation its paint is read for and its readings. */
|
|
4
|
+
export interface Trace {
|
|
5
|
+
key: string;
|
|
6
|
+
path: string;
|
|
7
|
+
observation: Observation;
|
|
8
|
+
/** Each reading of the group, in panel pixels, in the order the path passes through them. */
|
|
9
|
+
readings: Reading[];
|
|
10
|
+
}
|
|
11
|
+
export interface Reading {
|
|
12
|
+
key: string;
|
|
13
|
+
observation: Observation;
|
|
14
|
+
point: XYPoint;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* One trace per group, from whatever turns a group's observations into its path, with each reading
|
|
18
|
+
* placed by `project`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const readTraces: (layer: SceneLayer, panel: PixelSize, project: Projection, buildPath: (observations: Observation[]) => string | null) => Trace[];
|
|
21
|
+
/** A radar group's closed outline in panel pixels, its vertices in angular order so it never crosses itself. */
|
|
22
|
+
export declare const buildRadarPath: (observations: Observation[], panel: PixelSize) => string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PixelSize } from './projections';
|
|
2
|
+
/**
|
|
3
|
+
* A path written in the unit square, in the panel's pixels. A keyline is measured in pixels on every
|
|
4
|
+
* side, which a path stretched by a transform is not. Reads the commands a line or an area is written
|
|
5
|
+
* in; an arc is not one of them.
|
|
6
|
+
*/
|
|
7
|
+
export declare const scalePathToPanel: (path: string, panel: PixelSize) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observation, XYPoint } from '@graphysdk/react';
|
|
2
|
+
export interface PixelSize {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
export interface PixelRect extends PixelSize {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}
|
|
10
|
+
/** Where an observation is drawn in the panel, in pixels; `null` for one missing a position. */
|
|
11
|
+
export type Projection = (observation: Observation, panel: PixelSize) => XYPoint | null;
|
|
12
|
+
export declare const projectCartesian: Projection;
|
|
13
|
+
export declare const projectPolar: Projection;
|
|
14
|
+
export declare const toClosedPath: (points: XYPoint[]) => string;
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Stylesheet } from '@graphysdk/react';
|
|
2
|
+
export { BAUHAUS_COLORMAP, BAUHAUS_COLORS, BAUHAUS_HUES, BAUHAUS_PALETTE } from './palette';
|
|
3
|
+
/**
|
|
4
|
+
* The poster look: off-white paper with no frame but the poster's black bar along its head, heavy
|
|
5
|
+
* black axes on the left and along the bottom with no rules across the plot, and flat shapes with
|
|
6
|
+
* square corners parted by the paper. Nothing casts a shadow. The renderer draws bars, slices, lines
|
|
7
|
+
* and points; the stylesheet hands it their colour, edge, size and form.
|
|
8
|
+
*/
|
|
9
|
+
export declare const bauhausStyles: Stylesheet;
|
package/fonts.css
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# PolyForm Free Trial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/free-trial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software
|
|
14
|
+
to do everything you might do with the software that would
|
|
15
|
+
otherwise infringe the licensor's copyright in it for any
|
|
16
|
+
permitted purpose. However, you may only make changes or
|
|
17
|
+
new works based on the software according to [Changes and New
|
|
18
|
+
Works License](#changes-and-new-works-license), and you may
|
|
19
|
+
not distribute copies of the software.
|
|
20
|
+
|
|
21
|
+
## Changes and New Works License
|
|
22
|
+
|
|
23
|
+
The licensor grants you an additional copyright license to
|
|
24
|
+
make changes and new works based on the software for any
|
|
25
|
+
permitted purpose.
|
|
26
|
+
|
|
27
|
+
## Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that
|
|
30
|
+
covers patent claims the licensor can license, or becomes able
|
|
31
|
+
to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Fair Use
|
|
34
|
+
|
|
35
|
+
You may have "fair use" rights for the software under the
|
|
36
|
+
law. These terms do not limit them.
|
|
37
|
+
|
|
38
|
+
## Free Trial
|
|
39
|
+
|
|
40
|
+
Use to evaluate whether the software suits a particular
|
|
41
|
+
application for less than 32 consecutive calendar days, on
|
|
42
|
+
behalf of you or your company, is use for a permitted purpose.
|
|
43
|
+
|
|
44
|
+
## No Other Rights
|
|
45
|
+
|
|
46
|
+
These terms do not allow you to sublicense or transfer any of
|
|
47
|
+
your licenses to anyone else, or prevent the licensor from
|
|
48
|
+
granting licenses to anyone else. These terms do not imply
|
|
49
|
+
any other licenses.
|
|
50
|
+
|
|
51
|
+
## Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or
|
|
54
|
+
contributes to infringement of any patent, your patent license
|
|
55
|
+
for the software granted under these terms ends immediately. If
|
|
56
|
+
your company makes such a claim, your patent license ends
|
|
57
|
+
immediately for work on behalf of your company.
|
|
58
|
+
|
|
59
|
+
## Violations
|
|
60
|
+
|
|
61
|
+
If you violate any of these terms, or do anything with the
|
|
62
|
+
software not covered by your licenses, all your licenses
|
|
63
|
+
end immediately.
|
|
64
|
+
|
|
65
|
+
## No Liability
|
|
66
|
+
|
|
67
|
+
_**As far as the law allows, the software comes as is, without
|
|
68
|
+
any warranty or condition, and the licensor will not be liable
|
|
69
|
+
to you for any damages arising out of these terms or the use
|
|
70
|
+
or nature of the software, under any kind of legal claim.**_
|
|
71
|
+
|
|
72
|
+
## Definitions
|
|
73
|
+
|
|
74
|
+
The **licensor** is the individual or entity offering these
|
|
75
|
+
terms, and the **software** is the software the licensor makes
|
|
76
|
+
available under these terms.
|
|
77
|
+
|
|
78
|
+
**You** refers to the individual or entity agreeing to these
|
|
79
|
+
terms.
|
|
80
|
+
|
|
81
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
82
|
+
or other kind of organization that you work for, plus all
|
|
83
|
+
organizations that have control over, are under the control of,
|
|
84
|
+
or are under common control with that organization. **Control**
|
|
85
|
+
means ownership of substantially all the assets of an entity,
|
|
86
|
+
or the power to direct its management and policies by vote,
|
|
87
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
88
|
+
|
|
89
|
+
**Your licenses** are all the licenses granted to you for the
|
|
90
|
+
software under these terms.
|
|
91
|
+
|
|
92
|
+
**Use** means anything you do with the software requiring one
|
|
93
|
+
of your licenses.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Noncommercial Purposes
|
|
53
|
+
|
|
54
|
+
Any noncommercial purpose is a permitted purpose.
|
|
55
|
+
|
|
56
|
+
## Personal Uses
|
|
57
|
+
|
|
58
|
+
Personal use for research, experiment, and testing for
|
|
59
|
+
the benefit of public knowledge, personal study, private
|
|
60
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
61
|
+
observance, without any anticipated commercial application,
|
|
62
|
+
is use for a permitted purpose.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Organizations
|
|
65
|
+
|
|
66
|
+
Use by any charitable organization, educational institution,
|
|
67
|
+
public research organization, public safety or health
|
|
68
|
+
organization, environmental protection organization,
|
|
69
|
+
or government institution is use for a permitted purpose
|
|
70
|
+
regardless of the source of funding or obligations resulting
|
|
71
|
+
from the funding.
|
|
72
|
+
|
|
73
|
+
## Fair Use
|
|
74
|
+
|
|
75
|
+
You may have "fair use" rights for the software under the
|
|
76
|
+
law. These terms do not limit them.
|
|
77
|
+
|
|
78
|
+
## No Other Rights
|
|
79
|
+
|
|
80
|
+
These terms do not allow you to sublicense or transfer any of
|
|
81
|
+
your licenses to anyone else, or prevent the licensor from
|
|
82
|
+
granting licenses to anyone else. These terms do not imply
|
|
83
|
+
any other licenses.
|
|
84
|
+
|
|
85
|
+
## Patent Defense
|
|
86
|
+
|
|
87
|
+
If you make any written claim that the software infringes or
|
|
88
|
+
contributes to infringement of any patent, your patent license
|
|
89
|
+
for the software granted under these terms ends immediately. If
|
|
90
|
+
your company makes such a claim, your patent license ends
|
|
91
|
+
immediately for work on behalf of your company.
|
|
92
|
+
|
|
93
|
+
## Violations
|
|
94
|
+
|
|
95
|
+
The first time you are notified in writing that you have
|
|
96
|
+
violated any of these terms, or done anything with the software
|
|
97
|
+
not covered by your licenses, your licenses can nonetheless
|
|
98
|
+
continue if you come into full compliance with these terms,
|
|
99
|
+
and take practical steps to correct past violations, within
|
|
100
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
101
|
+
end immediately.
|
|
102
|
+
|
|
103
|
+
## No Liability
|
|
104
|
+
|
|
105
|
+
_**As far as the law allows, the software comes as is, without
|
|
106
|
+
any warranty or condition, and the licensor will not be liable
|
|
107
|
+
to you for any damages arising out of these terms or the use
|
|
108
|
+
or nature of the software, under any kind of legal claim.**_
|
|
109
|
+
|
|
110
|
+
## Definitions
|
|
111
|
+
|
|
112
|
+
The **licensor** is the individual or entity offering these
|
|
113
|
+
terms, and the **software** is the software the licensor makes
|
|
114
|
+
available under these terms.
|
|
115
|
+
|
|
116
|
+
**You** refers to the individual or entity agreeing to these
|
|
117
|
+
terms.
|
|
118
|
+
|
|
119
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
120
|
+
or other kind of organization that you work for, plus all
|
|
121
|
+
organizations that have control over, are under the control of,
|
|
122
|
+
or are under common control with that organization. **Control**
|
|
123
|
+
means ownership of substantially all the assets of an entity,
|
|
124
|
+
or the power to direct its management and policies by vote,
|
|
125
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
126
|
+
|
|
127
|
+
**Your licenses** are all the licenses granted to you for the
|
|
128
|
+
software under these terms.
|
|
129
|
+
|
|
130
|
+
**Use** means anything you do with the software requiring one
|
|
131
|
+
of your licenses.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# PolyForm Small Business License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/small-business/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright Graphy Technologies Ltd. (https://graphy.dev)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Fair Use
|
|
53
|
+
|
|
54
|
+
You may have "fair use" rights for the software under the
|
|
55
|
+
law. These terms do not limit them.
|
|
56
|
+
|
|
57
|
+
## Small Business
|
|
58
|
+
|
|
59
|
+
Use of the software for the benefit of your company is use for
|
|
60
|
+
a permitted purpose if your company has fewer than 100 total
|
|
61
|
+
individuals working as employees and independent contractors,
|
|
62
|
+
and less than 1,000,000 USD (2019) total revenue in the prior
|
|
63
|
+
tax year. Adjust this revenue threshold for inflation according
|
|
64
|
+
to the United States Bureau of Labor Statistics' consumer price
|
|
65
|
+
index for all urban consumers, U.S. city average, for all items,
|
|
66
|
+
not seasonally adjusted, with 1982–1984=100 reference base.
|
|
67
|
+
|
|
68
|
+
## No Other Rights
|
|
69
|
+
|
|
70
|
+
These terms do not allow you to sublicense or transfer any of
|
|
71
|
+
your licenses to anyone else, or prevent the licensor from
|
|
72
|
+
granting licenses to anyone else. These terms do not imply
|
|
73
|
+
any other licenses.
|
|
74
|
+
|
|
75
|
+
## Patent Defense
|
|
76
|
+
|
|
77
|
+
If you make any written claim that the software infringes or
|
|
78
|
+
contributes to infringement of any patent, your patent license
|
|
79
|
+
for the software granted under these terms ends immediately. If
|
|
80
|
+
your company makes such a claim, your patent license ends
|
|
81
|
+
immediately for work on behalf of your company.
|
|
82
|
+
|
|
83
|
+
## Violations
|
|
84
|
+
|
|
85
|
+
The first time you are notified in writing that you have
|
|
86
|
+
violated any of these terms, or done anything with the software
|
|
87
|
+
not covered by your licenses, your licenses can nonetheless
|
|
88
|
+
continue if you come into full compliance with these terms,
|
|
89
|
+
and take practical steps to correct past violations, within
|
|
90
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
91
|
+
end immediately.
|
|
92
|
+
|
|
93
|
+
## No Liability
|
|
94
|
+
|
|
95
|
+
_**As far as the law allows, the software comes as is, without
|
|
96
|
+
any warranty or condition, and the licensor will not be liable
|
|
97
|
+
to you for any damages arising out of these terms or the use
|
|
98
|
+
or nature of the software, under any kind of legal claim.**_
|
|
99
|
+
|
|
100
|
+
## Definitions
|
|
101
|
+
|
|
102
|
+
The **licensor** is the individual or entity offering these
|
|
103
|
+
terms, and the **software** is the software the licensor makes
|
|
104
|
+
available under these terms.
|
|
105
|
+
|
|
106
|
+
**You** refers to the individual or entity agreeing to these
|
|
107
|
+
terms.
|
|
108
|
+
|
|
109
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
110
|
+
or other kind of organization that you work for, plus all
|
|
111
|
+
organizations that have control over, are under the control of,
|
|
112
|
+
or are under common control with that organization. **Control**
|
|
113
|
+
means ownership of substantially all the assets of an entity,
|
|
114
|
+
or the power to direct its management and policies by vote,
|
|
115
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
116
|
+
|
|
117
|
+
**Your licenses** are all the licenses granted to you for the
|
|
118
|
+
software under these terms.
|
|
119
|
+
|
|
120
|
+
**Use** means anything you do with the software requiring one
|
|
121
|
+
of your licenses.
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphysdk/theme-bauhaus",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"author": "Graphy",
|
|
4
|
+
"description": "Bauhaus theme for the Graphy charting SDK (beta)",
|
|
5
|
+
"homepage": "https://docs.graphy.dev/sdk-next/themes/bauhaus",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"graphy",
|
|
9
|
+
"chart",
|
|
10
|
+
"react",
|
|
11
|
+
"visualization",
|
|
12
|
+
"grammar-of-graphics",
|
|
13
|
+
"theme",
|
|
14
|
+
"bauhaus"
|
|
15
|
+
],
|
|
16
|
+
"version": "0.1.0",
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css"
|
|
20
|
+
],
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"fonts.css",
|
|
25
|
+
"src/fonts.css.d.ts",
|
|
26
|
+
"LICENSE.md",
|
|
27
|
+
"licenses",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.mjs",
|
|
34
|
+
"require": "./dist/index.cjs"
|
|
35
|
+
},
|
|
36
|
+
"./fonts.css": {
|
|
37
|
+
"types": "./src/fonts.css.d.ts",
|
|
38
|
+
"default": "./fonts.css"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^19.0.0",
|
|
43
|
+
"@graphysdk/react": "^1.9.0-beta.1791447671234"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@testing-library/react": "^16.3.1",
|
|
47
|
+
"@types/react": "^19.2.14",
|
|
48
|
+
"@types/react-dom": "^19.2.3",
|
|
49
|
+
"react": "^19.2.4",
|
|
50
|
+
"react-dom": "^19.2.4",
|
|
51
|
+
"rollup-plugin-node-externals": "^8.1.1",
|
|
52
|
+
"vite": "^8.1.5",
|
|
53
|
+
"vite-plugin-dts": "^4.5.4",
|
|
54
|
+
"vitest": "^4.1.11",
|
|
55
|
+
"@graphysdk/react": "1.9.0-beta.1791447671234",
|
|
56
|
+
"@graphytools/typescript-config": "0.0.1",
|
|
57
|
+
"@graphytools/vitest-config": "1.0.0",
|
|
58
|
+
"@graphysdk/viz-engine": "1.8.0",
|
|
59
|
+
"@graphytools/eslint-config": "0.0.1"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"lint-staged": {
|
|
65
|
+
"*.{ts,tsx,js,jsx,json,css,md}": [
|
|
66
|
+
"prettier --write"
|
|
67
|
+
],
|
|
68
|
+
"*.{ts,tsx}": [
|
|
69
|
+
"eslint --max-warnings=0 --fix"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "vite build",
|
|
74
|
+
"test": "vitest run",
|
|
75
|
+
"test:watch": "TZ=utc vitest",
|
|
76
|
+
"lint": "eslint . --max-warnings 0",
|
|
77
|
+
"lint:fix": "eslint . --fix",
|
|
78
|
+
"format": "prettier --write .",
|
|
79
|
+
"format:check": "prettier --check .",
|
|
80
|
+
"typecheck": "tsc --noEmit"
|
|
81
|
+
}
|
|
6
82
|
}
|