@graphysdk/theme-chalkboard 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,5 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /** Each area shaded with the side of its chalk, its top edge drawn by hand along the readings. */
3
+ export declare const chalkboardArea: ResolvedGeomRenderer;
4
+ /** A filled radar: shaded inside a closed chalk outline. */
5
+ export declare const chalkboardRadarArea: ResolvedGeomRenderer;
@@ -0,0 +1,8 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /**
3
+ * Each bar as a teacher draws one on the board: outlined twice in its chalk, the two passes wandering
4
+ * their own ways between corners both meet exactly, and shaded inside with the side of the stick in
5
+ * broad strokes that skip. Each chalk is shaded at its own angle. The hovered bar is shaded again,
6
+ * closer, and outlined in white.
7
+ */
8
+ export declare const chalkboardBar: ResolvedGeomRenderer;
@@ -0,0 +1,34 @@
1
+ import { ReactNode } from 'react';
2
+ import { PixelRect } from './utils/projections';
3
+ /** The direction a shape in `color` is shaded in: each chalk of the box has its own. */
4
+ export declare const readShadeAngle: (color: string, fallback?: number) => number;
5
+ /** An id a `url()` can name: React's own holds characters one cannot. */
6
+ export declare const useDefId: (prefix: string) => string;
7
+ interface ChalkLineProps {
8
+ path: string;
9
+ color: string;
10
+ width: number;
11
+ seed: number;
12
+ opacity?: number;
13
+ }
14
+ /** A stroke of chalk along `path`: a body, a press that skips, and a grain of dabs, all drawn. */
15
+ export declare const ChalkLine: ({ path, color, width, seed, opacity }: ChalkLineProps) => ReactNode;
16
+ interface ChalkShadingProps {
17
+ /** The shape shaded; the strokes are clipped to it, so none crosses its edge. */
18
+ region: string;
19
+ /** A box round the shape, which the strokes are laid across. */
20
+ bounds: PixelRect;
21
+ color: string;
22
+ angle: number;
23
+ spacing: number;
24
+ width: number;
25
+ seed: number;
26
+ /** The stylesheet's `fillAlpha`: how hard the chalk is pressed. */
27
+ pressure: number;
28
+ }
29
+ /**
30
+ * A shape shaded with the side of the chalk: the board under it rubbed clean, a little dust, then
31
+ * broad strokes at `angle` that skip, each with a fine grain along it. Clipped to `region`.
32
+ */
33
+ export declare const ChalkShading: ({ region, bounds, color, angle, spacing, width, seed, pressure, }: ChalkShadingProps) => ReactNode;
34
+ export {};
@@ -0,0 +1,62 @@
1
+ import { XYPoint } from '@graphysdk/react';
2
+ import { PixelRect } from './utils/projections';
3
+ /** A number from a string, so a shape wanders the same way every time it is drawn. */
4
+ export declare const hashSeed: (text: string) => number;
5
+ /** Numbers in `[0, 1)` from a seed, the same run of them for the same seed. */
6
+ export declare const createRandom: (seed: number) => (() => number);
7
+ export interface HandOptions {
8
+ /** How far, in pixels, the chalk may stray from the true line between two of its points. */
9
+ wander: number;
10
+ seed: number;
11
+ closed?: boolean;
12
+ /** Pixels between the points the stroke is bent at. */
13
+ step?: number;
14
+ /**
15
+ * Whether the chalk turns sharply at each given point, as it does at the corner of a box, rather
16
+ * than sweeping through it as it does along a curve.
17
+ */
18
+ cornered?: boolean;
19
+ }
20
+ /**
21
+ * A stroke through `points` as a hand draws it: it passes through every given point exactly, since
22
+ * those are where the readings are, and wanders smoothly between them.
23
+ */
24
+ export declare const drawByHand: (points: readonly XYPoint[], { wander, seed, closed, step, cornered }: HandOptions) => string;
25
+ export declare const format: (value: number) => string;
26
+ export interface DashOptions {
27
+ /** The shortest and longest run of chalk before it skips, in pixels. */
28
+ run: readonly [number, number];
29
+ /** The shortest and longest skip, where the chalk rode over the pits of the board. */
30
+ skip: readonly [number, number];
31
+ }
32
+ /**
33
+ * Where a stick of chalk skips as it is dragged: runs of chalk broken by short gaps of bare board, as
34
+ * an SVG dash array. The skips are drawn gaps, not noise, so the stroke keeps its smooth edge.
35
+ */
36
+ export declare const buildChalkSkips: ({ run, skip }: DashOptions, seed: number) => string;
37
+ export interface HatchOptions {
38
+ /** The direction the strokes run in, in radians from the horizontal. */
39
+ angle: number;
40
+ /** Pixels between neighbouring strokes. */
41
+ spacing: number;
42
+ seed: number;
43
+ }
44
+ /**
45
+ * Parallel strokes laid across `bounds` at `angle`, as a teacher shades a shape with the side of the
46
+ * chalk: each stroke drawn by hand, its spacing a little uneven. The strokes run past the bounds, so
47
+ * whatever draws them clips them to the shape they shade.
48
+ */
49
+ export declare const buildHatch: (bounds: PixelRect, { angle, spacing, seed }: HatchOptions) => string;
50
+ /** A cross as a teacher plots a reading: two short strokes whose crossing sits exactly on `centre`. */
51
+ export declare const buildCross: (centre: XYPoint, reach: number, seed: number) => string;
52
+ /**
53
+ * A circle as a hand draws one in a single sweep: it starts somewhere on the rim and runs a little past
54
+ * where it began, the run past drifting off the rim by up to `drift` pixels, as a hand lifting away
55
+ * does. Every point of the first full turn is bent at the true radius.
56
+ */
57
+ export declare const drawCircleByHand: (centre: XYPoint, radius: number, { seed, overshoot, wander, drift }: {
58
+ seed: number;
59
+ overshoot: number;
60
+ wander: number;
61
+ drift?: number;
62
+ }) => string;
@@ -0,0 +1,8 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /**
3
+ * A line as a teacher plots one: a cross at each reading, crossing exactly on it, and a stroke of
4
+ * chalk drawn by hand through every one. Readings packed too close for crosses keep the stroke alone.
5
+ */
6
+ export declare const chalkboardLine: ResolvedGeomRenderer;
7
+ /** A radar's outline as a closed chalk stroke, crossed at its readings. */
8
+ export declare const chalkboardRadarLine: 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, or rules it when hovered. */
8
+ edge: string;
9
+ edgeWidth: number;
10
+ }
11
+ /** What a line is drawn with. Its chalk takes `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 and chalk width come
5
+ * from the stylesheet, so `style.geom.*` still decides what a shape is drawn with.
6
+ */
7
+ export declare const chalkboardPlugins: readonly ResolvedGeomRenderer[];
@@ -0,0 +1,8 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /**
3
+ * Scatter and bubble: a small chalk ring drawn carefully round each reading, a little dust rubbed
4
+ * inside it. The hovered one is ringed again, as a teacher rings the one being talked about.
5
+ */
6
+ export declare const chalkboardPoint: ResolvedGeomRenderer;
7
+ /** A radar's vertices as chalk rings. */
8
+ export declare const chalkboardRadarPoint: ResolvedGeomRenderer;
@@ -0,0 +1,2 @@
1
+ import { GeomShapes } from '@graphysdk/react';
2
+ export declare const chalkboardShapes: GeomShapes;
@@ -0,0 +1,7 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /**
3
+ * Pie and donut as a teacher draws one on the board: a circle in one sweep of white chalk that runs
4
+ * past where it began, spokes ruled out to it, and each slice shaded with the side of its own chalk,
5
+ * neighbours at different angles. A rose's and a radial bar's slices are each outlined on their own.
6
+ */
7
+ export declare const chalkboardSlice: ResolvedGeomRenderer;
@@ -0,0 +1,6 @@
1
+ import { ResolvedGeomRenderer } from '@graphysdk/react';
2
+ /**
3
+ * Heatmap and waffle: each cell rubbed in with its chalk inside a hand-drawn edge, streaked along the
4
+ * row where the side of the stick went over it, bare board between cells. The hovered cell is outlined.
5
+ */
6
+ export declare const chalkboardTile: ResolvedGeomRenderer;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { Observation, SceneLayer } from '@graphysdk/react';
3
+ import { PixelSize, Projection } from './utils/projections';
4
+ /** One group's path in panel pixels, with the observation its paint is read for. */
5
+ export interface Trace {
6
+ key: string;
7
+ path: string;
8
+ observation: Observation;
9
+ }
10
+ /** One trace per group, from whatever turns a group's observations into its path. */
11
+ export declare const readTraces: (layer: SceneLayer, buildPath: (observations: Observation[]) => string | null) => Trace[];
12
+ /** A radar group's closed outline in panel pixels, its vertices in angular order so it never crosses itself. */
13
+ export declare const buildRadarPath: (observations: Observation[], panel: PixelSize) => string | null;
14
+ interface HoverRingProps {
15
+ geom: 'line' | 'area' | 'point';
16
+ observation: Observation;
17
+ panel: PixelSize;
18
+ project: Projection;
19
+ color: string;
20
+ opacity: number;
21
+ /** How far out from the reading the ring is drawn, past whatever already marks it. */
22
+ radius?: number;
23
+ }
24
+ /** The hovered reading, ringed in its chalk the way a teacher rings the answer, centred on the reading. */
25
+ export declare const HoverRing: ({ geom, observation, panel, project, color, opacity, radius, }: HoverRingProps) => ReactNode;
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PixelSize } from './projections';
2
+ /**
3
+ * A path written in the unit square, in the panel's pixels. An ink line 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,33 @@
1
+ import { Stylesheet } from '@graphysdk/react';
2
+ export declare const CHALKBOARD_COLORS: {
3
+ readonly board: "#27362F";
4
+ readonly wiped: "#1F2C26";
5
+ readonly chalk: "#F4F1E8";
6
+ readonly dusty: "#C9D1C8";
7
+ readonly grid: "rgba(244, 241, 232, 0.24)";
8
+ readonly edge: "rgba(244, 241, 232, 0.45)";
9
+ readonly axis: "rgba(244, 241, 232, 0.85)";
10
+ readonly wood: "#86643F";
11
+ readonly woodLight: "#A88456";
12
+ readonly woodDark: "#4F3923";
13
+ readonly felt: "#5E5A55";
14
+ };
15
+ /** The chalks of the box. */
16
+ export declare const CHALKBOARD_CHALKS: {
17
+ readonly white: "#F4F1E8";
18
+ readonly yellow: "#F7DC6F";
19
+ readonly pink: "#F49AC2";
20
+ readonly blue: "#8FD3F4";
21
+ readonly green: "#A8E6A1";
22
+ readonly orange: "#F9A65A";
23
+ };
24
+ /** The order groups take their chalks in. */
25
+ export declare const CHALKBOARD_PALETTE: readonly string[];
26
+ /** For a colour that stands for a number: from a thin rub of blue chalk to white pressed hard. */
27
+ export declare const CHALKBOARD_COLORMAP: readonly string[];
28
+ /**
29
+ * The chalkboard look: a smeared board in a wooden frame with a ledge along its foot, chalk axes on the
30
+ * left and bottom, a dashed grid, and shapes outlined and shaded in chalk by the theme's repaints. A
31
+ * shape is white until a graph maps its colour.
32
+ */
33
+ export declare const chalkboardStyles: Stylesheet;
package/fonts.css ADDED
@@ -0,0 +1,2 @@
1
+ /* Gochi Hand, the handwriting the theme's stylesheet names. Import this once, before the first graph is measured. */
2
+ @import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&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.
@@ -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.