@graphysdk/theme-shiny 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.
@@ -0,0 +1,9 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Each area a sheet in the finish in its group's colour, its rim widest along its upper edge, the edge
5
+ * that is its value. The hovered reading wears a round piece of the finish.
6
+ */
7
+ export declare const defineArea: (finish: Finish) => ResolvedGeomRenderer;
8
+ /** A filled radar as a sheet in the finish, its widest rim all the way round. */
9
+ export declare const defineRadarArea: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,8 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Each bar a piece in the finish filling exactly the bar's own rectangle. Its corners round inside the
5
+ * rectangle, so its end is flat at exactly its value. A bar in a stack is a piece of its own. The
6
+ * hovered bar is ruled in light.
7
+ */
8
+ export declare const defineBar: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,67 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleState } from '@graphysdk/react';
3
+ import { PixelSize } from './utils/projections';
4
+ import { MaterialIds } from './material';
5
+ import { LinePaint, ShapePaint } from './paint';
6
+ /** One filled piece: a bar, a slice, a tile, a point or an area. */
7
+ export interface CellProps {
8
+ /** Unique to the piece, for the clip and the gradients it defines. */
9
+ id: string;
10
+ ids: MaterialIds;
11
+ /** The piece's outline, which is the data's shape. */
12
+ path: string;
13
+ paint: ShapePaint;
14
+ /** How wide the finish's rim is round this piece, as the piece's size asks. */
15
+ rimWidth: number;
16
+ /** A path along an edge where the rim runs wider: a pin's bezel, or an area's upper edge. */
17
+ cap?: string;
18
+ capWidth?: number;
19
+ /** A bar's end that is its value, which a finish may mark; only a bar that ends its stack has one. */
20
+ valueEnd?: string;
21
+ /** Whether the piece's colour is its value, as a tile's is, so the finish keeps it even. */
22
+ isEven?: boolean;
23
+ state?: StyleState;
24
+ }
25
+ /** One line, through its readings. */
26
+ export interface TubeProps {
27
+ /** Unique to the line, for any gradient it defines. */
28
+ id: string;
29
+ ids: MaterialIds;
30
+ path: string;
31
+ paint: LinePaint;
32
+ panel: PixelSize;
33
+ /** The blur a finish may glow the line with, written once for the layer. */
34
+ glowId: string;
35
+ }
36
+ /** How wide a finish draws its rims on each kind of mark, from the mark's size in pixels. */
37
+ export interface FinishRims {
38
+ bar: (breadth: number) => number;
39
+ /** How round a bar's corners are; they curve inside its rectangle, so its end stays at its value. */
40
+ barCorner: (breadth: number) => number;
41
+ tile: (size: number) => number;
42
+ tileCorner: number;
43
+ /** The card left showing between two tiles. */
44
+ tileGap: number;
45
+ bead: (diameter: number) => number;
46
+ /** A slice of a pie or a donut, from the ring's width. */
47
+ ringSlice: (width: number) => number;
48
+ /** A rose's petal or a radial bar's track, from its width. */
49
+ petal: (width: number) => number;
50
+ areaSide: number;
51
+ areaValue: number;
52
+ }
53
+ /** What a pie or a donut adds round its slices, as an enamel pin. */
54
+ export interface FinishPin {
55
+ /** Whether its outer edge is a wide bezel of the holographic colours cut with rays. */
56
+ hasBezel: boolean;
57
+ /** Whether it glows behind in the pink to blue of the mascot's ring. */
58
+ hasGlow: boolean;
59
+ /** The enamel a donut's hole is filled with, or `null` to leave the card showing. */
60
+ hole: string | null;
61
+ }
62
+ export interface Finish {
63
+ Cell: (props: CellProps) => ReactNode;
64
+ Tube: (props: TubeProps) => ReactNode;
65
+ rims: FinishRims;
66
+ pin: FinishPin;
67
+ }
@@ -0,0 +1,3 @@
1
+ import { Finish } from '../finish';
2
+ /** Flat colours with no finish on any mark, the card's foil border being the one holographic moment. */
3
+ export declare const FLAT_FINISH: Finish;
@@ -0,0 +1,9 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * A line drawn in the finish in its group's colour, its middle through every reading. The hovered
5
+ * reading wears a round piece of the finish.
6
+ */
7
+ export declare const defineLine: (finish: Finish) => ResolvedGeomRenderer;
8
+ /** A radar's outline as a closed line in the finish. */
9
+ export declare const defineRadarLine: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,46 @@
1
+ import { ReactNode } from 'react';
2
+ import { PixelSize } from './utils/projections';
3
+ export declare const MOST_RIM = 6;
4
+ /** The white of the light caught on the glass. */
5
+ export declare const LIGHT: "#FFFBFF";
6
+ /** The near-black of the glass's shadowed rim, and of a pin's black enamel. */
7
+ export declare const SHADE: "#0C0B0F";
8
+ /** An id a `url()` can name: React's own holds characters one cannot. */
9
+ export declare const useDefId: (prefix: string) => string;
10
+ /** The thick rim of a piece of glass `breadth` pixels across its narrow way. */
11
+ export declare const readRimWidth: (breadth: number) => number;
12
+ /** `color` moved `amount` of the way to `target`; a colour that is not six-digit hex is returned as it is. */
13
+ export declare const mixColors: (color: string, target: string, amount: number) => string;
14
+ /** The ids of the light a layer's pieces are drawn with, written once for the layer. */
15
+ export interface MaterialIds {
16
+ foil: string;
17
+ rimLight: string;
18
+ rimShade: string;
19
+ gloss: string;
20
+ catchlight: string;
21
+ reflection: string;
22
+ }
23
+ export declare const toMaterialIds: (id: string) => MaterialIds;
24
+ /**
25
+ * The rim's refracted colours and the light on the glass. The colours are measured on the panel and
26
+ * repeat, reflected, so they flow without a seam; the light is measured on each piece, so every piece
27
+ * is lit from its own top left, as each of a tray of glass beads catches the light.
28
+ */
29
+ export declare const Material: ({ ids, panel }: {
30
+ ids: MaterialIds;
31
+ panel: PixelSize;
32
+ }) => ReactNode;
33
+ interface Rect {
34
+ x: number;
35
+ y: number;
36
+ width: number;
37
+ height: number;
38
+ }
39
+ /**
40
+ * A closed path round a rectangle in panel pixels, its corners rounded by `radius`. Each straight side
41
+ * still lies on the rectangle's own edge, so a bar's end is flat at exactly its value.
42
+ */
43
+ export declare const toRoundedRectPath: ({ x, y, width, height }: Rect, radius: number) => string;
44
+ /** A closed path round a circle, as two half arcs. */
45
+ export declare const toCirclePath: (cx: number, cy: number, radius: number) => string;
46
+ export {};
@@ -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, or rules it when hovered. */
8
+ edge: string;
9
+ edgeWidth: number;
10
+ }
11
+ /** What a line is drawn with. */
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,10 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Every built-in geom a version of the theme repaints, under each coordinate system it is drawn in, all
5
+ * in one finish. Positions, scales and axes come from the compiled layer unchanged, and colour and
6
+ * opacity come from the stylesheet, so `style.geom.*` still decides each piece's colour.
7
+ */
8
+ export declare const createShinyPlugins: (finish: Finish) => readonly ResolvedGeomRenderer[];
9
+ /** The repaints of every built-in geom, as flat marks inside the card's foil border. */
10
+ export declare const shinyPlugins: readonly ResolvedGeomRenderer[];
@@ -0,0 +1,9 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Scatter and bubble: each point a round piece in the finish, centred exactly on its reading and as
5
+ * wide as its size. The hovered point grows and is ruled in light.
6
+ */
7
+ export declare const definePoint: (finish: Finish) => ResolvedGeomRenderer;
8
+ /** A radar's vertices as round pieces in the finish. */
9
+ export declare const defineRadarPoint: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,8 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Pie, donut, rose and radial bar as pieces in the finish, each in its group's colour; a pie or a donut
5
+ * made as a pin where the finish asks. Every slice keeps its angle and radius. The hovered slice is
6
+ * ruled in light.
7
+ */
8
+ export declare const defineSlice: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,7 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ import { Finish } from './finish';
3
+ /**
4
+ * Heatmap and waffle as small tiles in the finish, each kept one even colour from the colormap so its
5
+ * value reads true, parted from its neighbours by a sliver of the card. The hovered tile is ruled in light.
6
+ */
7
+ export declare const defineTile: (finish: Finish) => ResolvedGeomRenderer;
@@ -0,0 +1,19 @@
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. */
4
+ export interface Trace {
5
+ key: string;
6
+ path: string;
7
+ observation: Observation;
8
+ }
9
+ /** One trace per group, from whatever turns a group's observations into its path. */
10
+ export declare const readTraces: (layer: SceneLayer, buildPath: (observations: Observation[]) => string | null) => Trace[];
11
+ /** A radar group's vertices in panel pixels, in angular order so its outline never crosses itself. */
12
+ export declare const readRadarPoints: (observations: Observation[], panel: PixelSize) => XYPoint[];
13
+ export declare const buildRadarPath: (observations: Observation[], panel: PixelSize) => string | null;
14
+ /** Each reading of every group in panel pixels, with the observation it is read from. */
15
+ export declare const readReadings: (layer: SceneLayer, panel: PixelSize, project: Projection) => Array<{
16
+ key: string;
17
+ observation: Observation;
18
+ point: XYPoint;
19
+ }>;
@@ -0,0 +1,7 @@
1
+ import { PixelSize } from './projections';
2
+ /**
3
+ * A path written in the unit square, in the panel's pixels. A shape 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,16 @@
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
+ /** The whole panel, for a shape that may reach any part of it. */
15
+ export declare const toPanelBounds: (panel: PixelSize) => PixelRect;
16
+ export declare const toClosedPath: (points: XYPoint[]) => string;
@@ -0,0 +1,16 @@
1
+ import { Theme } from '@graphysdk/react';
2
+ /**
3
+ * Graphs on a dark card scattered with faint stars, inside one holographic border: a band of foil running
4
+ * round the card's edge, as an enamel pin wears an iridescent rim round its black disc, and nothing
5
+ * holographic inside it. Every mark is one clean flat colour, slices and stacked bars parted by a hairline
6
+ * of the card, lines with a soft glow. Groups take the theme's named colours, Pulse pink, Sirius cyan and
7
+ * Lagoon violet first. Notes are set in terminal windows, and whatever an author points at is in Pulse.
8
+ * Drawn for the dark scheme only.
9
+ *
10
+ * Headings are set in Inter Tight and small type in JetBrains Mono. Import
11
+ * `@graphysdk/theme-shiny/fonts.css` once to load them.
12
+ *
13
+ * @example
14
+ * const kit = createGraphyKit({ theme: shiny });
15
+ */
16
+ export declare const shiny: Theme;
@@ -0,0 +1,78 @@
1
+ import { Stylesheet } from '@graphysdk/react';
2
+ /** The theme's named colours. */
3
+ export declare const SHINY_NAMED: {
4
+ readonly pulse: "#E94FF3";
5
+ readonly nebula: "#EC9BFF";
6
+ readonly starlight: "#FFFBFF";
7
+ readonly sirius: "#9AF2FF";
8
+ readonly lagoon: "#9F98FF";
9
+ readonly void: "#0C0B0F";
10
+ readonly obsidian: "#1A1721";
11
+ };
12
+ /**
13
+ * The holographic colours the glass refracts into, lilac to pink to cyan to mint to lavender, as
14
+ * a glass rim and a foil edge do. A finish on marks, never a
15
+ * group's colour.
16
+ */
17
+ export declare const FOIL_COLORS: readonly ["#B9A2FF", "#FF9DE4", "#8DEEFF", "#9FFCCD", "#C6ADFF"];
18
+ export declare const SHINY_COLORS: {
19
+ readonly ground: "#1A1721";
20
+ readonly window: "#121017";
21
+ readonly text: "#FFFBFF";
22
+ readonly secondary: "#B3ABC4";
23
+ readonly edge: "rgba(255, 251, 255, 0.12)";
24
+ readonly grid: "rgba(236, 155, 255, 0.11)";
25
+ readonly baseline: "rgba(255, 251, 255, 0.32)";
26
+ readonly star: "#FFFBFF";
27
+ readonly accent: "#E94FF3";
28
+ readonly accentEdge: "rgba(233, 79, 243, 0.6)";
29
+ };
30
+ export declare const CARD_CORNER_RADIUS = 20;
31
+ /**
32
+ * The order groups take their colours in: Pulse pink first, then Sirius cyan and Lagoon
33
+ * violet, which differ from it and each other in hue and lightness, then Nebula and a mint caught from
34
+ * the glass. Starlight, nearly white, comes last, so it only appears when six groups need it and never
35
+ * sits as a stark white piece among the first five.
36
+ */
37
+ export declare const SHINY_PALETTE: readonly string[];
38
+ /** For a colour that stands for a number: from a violet barely off the card, through Pulse, to a pale blush. */
39
+ export declare const SHINY_COLORMAP: readonly string[];
40
+ /** How much of its colour an area's glass shows, so the grid behind it is softened but not lost. */
41
+ export declare const AREA_FILL_ALPHA = 0.88;
42
+ /** Everything the stylesheet takes from the card it is drawn on. */
43
+ export interface Tone {
44
+ /** The card, as a data URI for the graph's fill, and the one colour that stands for it. */
45
+ card: string;
46
+ ground: string;
47
+ edge: string;
48
+ text: string;
49
+ secondary: string;
50
+ grid: string;
51
+ baseline: string;
52
+ /** What an author points at, and its hairline. */
53
+ accent: string;
54
+ accentEdge: string;
55
+ /** The terminal window notes are set in, and the glow it throws. */
56
+ window: string;
57
+ windowGlow: string;
58
+ hoverGuideFill: string;
59
+ tooltipPrimaryRow: string;
60
+ /** How strongly a shaded period's holographic wash shows on the card. */
61
+ washAlpha: number;
62
+ }
63
+ /** The sizes a version of the theme gives its lines and points, which its finish asks for. */
64
+ export interface MarkSizes {
65
+ lineWidth: number;
66
+ pointSize: number;
67
+ }
68
+ /** The dark Obsidian card with faint stars, and the colours that read on it. */
69
+ export declare const DARK_TONE: Tone;
70
+ /**
71
+ * The Shiny look on a card: no frame, a faint grid for the values and a baseline, headings in a
72
+ * heavy grotesk and everything small in a monospace, the accent for whatever an author points at, and
73
+ * notes in terminal windows. The marks are drawn by the finish; the stylesheet
74
+ * gives each its colour and size.
75
+ */
76
+ export declare const buildShinyStyles: (tone: Tone, marks: MarkSizes) => Stylesheet;
77
+ /** The dark starred card with the holographic foil border drawn over its edge in place of a stroke. */
78
+ export declare const shinyStyles: Stylesheet;
package/fonts.css ADDED
@@ -0,0 +1,2 @@
1
+ /* Inter Tight for headings and JetBrains Mono for small type, the faces the theme's stylesheet names. Import this once, before the first graph is measured. */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@@ -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.