@graphysdk/geom-boxplot 0.0.0-stage → 0.1.1-beta.1791459323341
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 +58 -2
- package/dist/engine/boxplot.geom.d.ts +189 -0
- package/dist/engine/boxplot.stat.d.ts +15 -0
- package/dist/engine/utils/summarise-box.d.ts +24 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +852 -0
- package/dist/renderer/boxplot-edit-outline.d.ts +6 -0
- package/dist/renderer/boxplot-highlight.d.ts +16 -0
- package/dist/renderer/boxplot-hover.d.ts +16 -0
- package/dist/renderer/boxplot-layer.d.ts +18 -0
- package/dist/renderer/boxplot-paint.d.ts +28 -0
- package/dist/renderer/boxplot.d.ts +15 -0
- package/dist/renderer/utils/box-geometry.d.ts +36 -0
- package/dist/renderer/utils/boxplot-keys.d.ts +22 -0
- package/dist/renderer/utils/panel-path.d.ts +15 -0
- package/dist/utils/boxplot-columns.d.ts +32 -0
- package/dist/utils/read-boxplot.d.ts +43 -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 +71 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EditOutlineShape, GeomEditOutlineShapesRendererInput } from '@graphysdk/react';
|
|
2
|
+
/**
|
|
3
|
+
* What point and edit outlines round the boxes they take: each box as its region, notched or not, each whisker
|
|
4
|
+
* and cap as the stroke it is painted, and each outlier and mean marker at its painted size.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getBoxplotEditOutlineShapes: ({ layer, coordSystem, panelRect, styleReaders, }: GeomEditOutlineShapesRendererInput) => EditOutlineShape[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GeomStyleReaders, MainAxis, SceneLayer } from '@graphysdk/react';
|
|
2
|
+
import { PanelSize } from './utils/panel-path';
|
|
3
|
+
interface HighlightedBoxesProps {
|
|
4
|
+
layer: SceneLayer;
|
|
5
|
+
/** The whole layer the matched observations were taken from. */
|
|
6
|
+
sourceLayer: SceneLayer;
|
|
7
|
+
mainAxis: MainAxis;
|
|
8
|
+
panelSize: PanelSize;
|
|
9
|
+
styleReaders: GeomStyleReaders;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Repaints the matched boxes and outliers above the dimmed layer. A matched box raises its outliers with it,
|
|
13
|
+
* so a highlight on a summary column (`boxplotQ3`, which an outlier does not carry) still shows the box whole.
|
|
14
|
+
*/
|
|
15
|
+
export declare const HighlightedBoxes: ({ layer, sourceLayer, mainAxis, panelSize, styleReaders }: HighlightedBoxesProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GeomStyleReaders, HoverHit, MainAxis, SceneLayer } from '@graphysdk/react';
|
|
2
|
+
import { PanelSize } from './utils/panel-path';
|
|
3
|
+
interface HoveredBoxesProps {
|
|
4
|
+
layer: SceneLayer;
|
|
5
|
+
primary: HoverHit;
|
|
6
|
+
mainAxis: MainAxis;
|
|
7
|
+
panelSize: PanelSize;
|
|
8
|
+
styleReaders: GeomStyleReaders;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The hovered box, with the outliers standing over it, or the hovered outlier alone, repainted above the
|
|
12
|
+
* dimmed layer. The engine groups a dodged box with the rest of its band, as it does a grouped bar, but the
|
|
13
|
+
* tooltip reads the one box's summary, or the one outlier's value, so only that is raised.
|
|
14
|
+
*/
|
|
15
|
+
export declare const HoveredBoxes: ({ layer, primary, mainAxis, panelSize, styleReaders }: HoveredBoxesProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GeomStyleReaders, LayerIntroPlan, MainAxis, SceneLayer } from '@graphysdk/react';
|
|
2
|
+
import { PanelSize } from './utils/panel-path';
|
|
3
|
+
interface BoxplotLayerProps {
|
|
4
|
+
layer: SceneLayer;
|
|
5
|
+
mainAxis: MainAxis;
|
|
6
|
+
panelSize: PanelSize;
|
|
7
|
+
styleReaders: GeomStyleReaders;
|
|
8
|
+
shouldAnimateTransitions: boolean;
|
|
9
|
+
intro: LayerIntroPlan | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The layer's own paint. The engine plans a `rects` layer's entrance as a grow from the axis, which would
|
|
13
|
+
* draw each box as a length rising from zero; a box encodes where values sit, so the whole layer fades up on
|
|
14
|
+
* the plan's clock instead. The fade is independent of `shouldAnimateTransitions`: it rides the group rather
|
|
15
|
+
* than moving the marks, so it plays even when data changes snap.
|
|
16
|
+
*/
|
|
17
|
+
export declare const BoxplotLayer: ({ layer, mainAxis, panelSize, styleReaders, shouldAnimateTransitions, intro, }: BoxplotLayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GeomStyleReaders, MainAxis, SceneLayer } from '@graphysdk/react';
|
|
2
|
+
import { Box, Outlier } from '../utils/read-boxplot';
|
|
3
|
+
import { BoxplotKeys } from './utils/boxplot-keys';
|
|
4
|
+
import { PanelSize } from './utils/panel-path';
|
|
5
|
+
/**
|
|
6
|
+
* What one pass paints: every whisker below, every box above them with its median and mean, and the outliers
|
|
7
|
+
* on top.
|
|
8
|
+
*/
|
|
9
|
+
export interface BoxplotPaintProps {
|
|
10
|
+
boxes: readonly Box[];
|
|
11
|
+
outliers: readonly Outlier[];
|
|
12
|
+
mainAxis: MainAxis;
|
|
13
|
+
/** A notched box is a path, which has no percentage units, so it is drawn in the panel's pixels. */
|
|
14
|
+
panelSize: PanelSize;
|
|
15
|
+
/** The layer the marks are drawn from, so a notched box's path redraws on a resize rather than morphing. */
|
|
16
|
+
source: SceneLayer;
|
|
17
|
+
styleReaders: GeomStyleReaders;
|
|
18
|
+
/** What identifies each mark across a data change, so a spring moves a mark rather than swapping it. */
|
|
19
|
+
keys: BoxplotKeys;
|
|
20
|
+
/** Paints in the `hovered` state. */
|
|
21
|
+
isHovered?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether marks spring to their new positions when the data changes. The hover and highlight repaints
|
|
24
|
+
* mount and unmount with the interaction, so only the layer's own paint animates.
|
|
25
|
+
*/
|
|
26
|
+
shouldAnimateTransitions?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const BoxplotPaint: ({ boxes, outliers, mainAxis, panelSize, source, styleReaders, keys, isHovered, shouldAnimateTransitions, }: BoxplotPaintProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BoundGeomRendererDefinition } from '@graphysdk/react';
|
|
2
|
+
import { BoxplotGeom } from '../engine/boxplot.geom';
|
|
3
|
+
/**
|
|
4
|
+
* The boxplot plugin: pass it to `createGraphyKit({ plugins: [boxplot] })` for `kit.geom.boxplot()`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* const kit = createGraphyKit({ plugins: [boxplot] });
|
|
8
|
+
* const spec = kit.pipe(
|
|
9
|
+
* kit.createSpec({ x: 'team', y: 'salary' }),
|
|
10
|
+
* kit.geom.boxplot(),
|
|
11
|
+
* kit.scale.x.discrete(),
|
|
12
|
+
* kit.scale.y.continuous()
|
|
13
|
+
* );
|
|
14
|
+
*/
|
|
15
|
+
export declare const boxplot: BoundGeomRendererDefinition<BoxplotGeom>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MainAxis, XYPoint } from '@graphysdk/react';
|
|
2
|
+
import { Box } from '../../utils/read-boxplot';
|
|
3
|
+
/** A box in the `[0, 1]` view box, from its top left, y growing downward. */
|
|
4
|
+
export interface ViewBoxRect {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
/** A straight line in the `[0, 1]` view box. */
|
|
11
|
+
export interface ViewBoxSegment {
|
|
12
|
+
from: XYPoint;
|
|
13
|
+
to: XYPoint;
|
|
14
|
+
}
|
|
15
|
+
/** One whisker: the stem from the box to its reach, and the cap across its end. */
|
|
16
|
+
export interface Whisker {
|
|
17
|
+
side: 'lower' | 'upper';
|
|
18
|
+
stem: ViewBoxSegment;
|
|
19
|
+
cap: ViewBoxSegment;
|
|
20
|
+
}
|
|
21
|
+
/** The box from the first quartile to the third, across its share of the band. */
|
|
22
|
+
export declare const readBoxRect: (box: Box, mainAxis: MainAxis) => ViewBoxRect;
|
|
23
|
+
/**
|
|
24
|
+
* A notched box's outline, clockwise from the first quartile: each side pinches in to the median across the
|
|
25
|
+
* notch. A notch reaching past a quartile is drawn as it falls, folding over the box's end, as ggplot2 draws
|
|
26
|
+
* it: the median's interval is wider than the box, which is worth seeing. `null` for a box with no notch.
|
|
27
|
+
*/
|
|
28
|
+
export declare const readNotchedOutline: (box: Box, mainAxis: MainAxis) => XYPoint[] | null;
|
|
29
|
+
/** The median line, across the box's width at the median: its full width, or the notch's waist. */
|
|
30
|
+
export declare const readMedianSegment: (box: Box, mainAxis: MainAxis) => ViewBoxSegment;
|
|
31
|
+
/** Where the mean marker sits, on the box's centre line; `null` for a box that shows no mean. */
|
|
32
|
+
export declare const readMeanPoint: (box: Box, mainAxis: MainAxis) => XYPoint | null;
|
|
33
|
+
/** The whiskers that reach past the box; one that ends on its quartile draws nothing. */
|
|
34
|
+
export declare const readWhiskers: (box: Box, mainAxis: MainAxis) => Whisker[];
|
|
35
|
+
/** A point placed by its main-axis and value-axis fractions, in the view box. */
|
|
36
|
+
export declare const toViewBox: (mainAxis: MainAxis, main: number, cross: number) => XYPoint;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Observation, SceneLayer } from '@graphysdk/react';
|
|
2
|
+
import { Box, Outlier } from '../../utils/read-boxplot';
|
|
3
|
+
export interface BoxplotKeys {
|
|
4
|
+
/** What a box and the outliers standing over it share: its category and group. */
|
|
5
|
+
readBoxKey: (observation: Observation) => string;
|
|
6
|
+
/** One key per outlier of a list, in its order: its box's key and its value, then which repeat of it it is. */
|
|
7
|
+
readOutlierKeys: (outliers: readonly Outlier[]) => string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A box keys on its category and group, read from the raw values rather than the band: the band moves with
|
|
11
|
+
* the domain, the very change a mark should spring through, not remount on. An outlier keys on its value
|
|
12
|
+
* too, so one that stays an outlier across a data change springs to its new place.
|
|
13
|
+
*/
|
|
14
|
+
export declare const createBoxplotKeys: (layer: SceneLayer) => BoxplotKeys;
|
|
15
|
+
/**
|
|
16
|
+
* The source outliers a highlight matched. An outlier keeps its whole row, so it is found by every value it
|
|
17
|
+
* carries: two outliers of one box and value that differ elsewhere (`region`) are told apart, and two that
|
|
18
|
+
* differ nowhere no predicate could tell apart either.
|
|
19
|
+
*/
|
|
20
|
+
export declare const selectMatchedOutliers: (sourceLayer: SceneLayer, sourceOutliers: readonly Outlier[], matchedOutliers: readonly Outlier[]) => Outlier[];
|
|
21
|
+
/** The outliers standing over any of the given boxes: a hovered or highlighted box raises its own. */
|
|
22
|
+
export declare const selectOutliersOfBoxes: (outliers: readonly Outlier[], boxes: readonly Box[], readBoxKey: BoxplotKeys["readBoxKey"]) => Outlier[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { XYPoint } from '@graphysdk/react';
|
|
2
|
+
import { ViewBoxRect, ViewBoxSegment } from './box-geometry';
|
|
3
|
+
/** The panel's paint size, in pixels. */
|
|
4
|
+
export interface PanelSize {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
/** A view-box point in panel pixels from the top left. */
|
|
9
|
+
export declare const scaleToPanel: (point: XYPoint, panelSize: PanelSize) => XYPoint;
|
|
10
|
+
/** A closed polygon through view-box points, in the panel's pixels. */
|
|
11
|
+
export declare const toPolygonPathData: (points: readonly XYPoint[], panelSize: PanelSize) => string;
|
|
12
|
+
/** A view-box rect as a closed path in the panel's pixels, clockwise from its top left. */
|
|
13
|
+
export declare const toRectPathData: (rect: ViewBoxRect, panelSize: PanelSize) => string;
|
|
14
|
+
/** A view-box segment as an open path in the panel's pixels. */
|
|
15
|
+
export declare const toSegmentPathData: (segment: ViewBoxSegment, panelSize: PanelSize) => string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The columns `compile()` writes and the renderer reads, beside the position columns. The values sit in the
|
|
3
|
+
* units of the variable `y` maps, and carry its format, so the tooltip reads them like the value axis. Authors name them
|
|
4
|
+
* in a `highlight` or an entry's `where`, so they are part of the geom's API.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BOXPLOT_COLUMNS: {
|
|
7
|
+
/** The first quartile, where the box starts. */
|
|
8
|
+
readonly q1: "boxplotQ1";
|
|
9
|
+
/** The median, where the line across the box sits. */
|
|
10
|
+
readonly median: "boxplotMedian";
|
|
11
|
+
/** The third quartile, where the box ends. */
|
|
12
|
+
readonly q3: "boxplotQ3";
|
|
13
|
+
/** The lowest value the lower whisker reaches: the smallest one inside its fence. */
|
|
14
|
+
readonly lowerWhisker: "boxplotLowerWhisker";
|
|
15
|
+
/** The highest value the upper whisker reaches: the largest one inside its fence. */
|
|
16
|
+
readonly upperWhisker: "boxplotUpperWhisker";
|
|
17
|
+
/** How many values the box summarises, outliers included. */
|
|
18
|
+
readonly count: "boxplotCount";
|
|
19
|
+
/** The mean of the values the box summarises, outliers included. */
|
|
20
|
+
readonly mean: "boxplotMean";
|
|
21
|
+
/** The lower end of the notch: the median's rough 95% interval. */
|
|
22
|
+
readonly notchLower: "boxplotNotchLower";
|
|
23
|
+
/** The upper end of the notch. */
|
|
24
|
+
readonly notchUpper: "boxplotNotchUpper";
|
|
25
|
+
/**
|
|
26
|
+
* With `varwidth`, the box's width as a fraction of its share of the band, by the root of its count against
|
|
27
|
+
* the layer's largest; empty otherwise.
|
|
28
|
+
*/
|
|
29
|
+
readonly relativeWidth: "boxplotRelativeWidth";
|
|
30
|
+
/** A value beyond a whisker, on an outlier's own observation; empty on a box's. */
|
|
31
|
+
readonly outlier: "boxplotOutlier";
|
|
32
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MainAxis, Observation } from '@graphysdk/react';
|
|
2
|
+
/** A box placed by its share of the band on the main axis and its summary on the other, each a `[0, 1]` fraction. */
|
|
3
|
+
export interface Box {
|
|
4
|
+
observation: Observation;
|
|
5
|
+
/** The box's two edges on the main axis: its group's share of the band once dodged. */
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
lowerWhisker: number;
|
|
9
|
+
q1: number;
|
|
10
|
+
median: number;
|
|
11
|
+
q3: number;
|
|
12
|
+
upperWhisker: number;
|
|
13
|
+
/** Where the mean marker sits; `null` unless the layer shows it. */
|
|
14
|
+
mean: number | null;
|
|
15
|
+
/** The notch's two ends around the median; `null` unless the layer notches its boxes. */
|
|
16
|
+
notch: {
|
|
17
|
+
lower: number;
|
|
18
|
+
upper: number;
|
|
19
|
+
} | null;
|
|
20
|
+
}
|
|
21
|
+
/** A value past its box's whiskers, standing on the box's centre line. */
|
|
22
|
+
export interface Outlier {
|
|
23
|
+
observation: Observation;
|
|
24
|
+
/** The centre of its box's share of the band. */
|
|
25
|
+
band: number;
|
|
26
|
+
value: number;
|
|
27
|
+
}
|
|
28
|
+
export interface Boxplot {
|
|
29
|
+
boxes: Box[];
|
|
30
|
+
outliers: Outlier[];
|
|
31
|
+
}
|
|
32
|
+
/** The centre line a box's whiskers and outliers stand on. */
|
|
33
|
+
export declare const readBoxCentre: (box: Pick<Box, "start" | "end">) => number;
|
|
34
|
+
/**
|
|
35
|
+
* Reads where a box sits. The flip is already baked into the position columns, so under `coord.flip()` the
|
|
36
|
+
* box's edges are `yMin`/`yMax` and its whiskers run `xMin` to `xMax`; the median and quartiles are scaled on the value
|
|
37
|
+
* axis whatever the flip. `null` for an outlier's observation or a box missing a position.
|
|
38
|
+
*/
|
|
39
|
+
export declare const readBox: (observation: Observation, mainAxis: MainAxis) => Box | null;
|
|
40
|
+
/** Reads where an outlier sits; `null` for a box's observation. */
|
|
41
|
+
export declare const readOutlier: (observation: Observation, mainAxis: MainAxis) => Outlier | null;
|
|
42
|
+
/** Reads every box and outlier of a layer, skipping an observation missing a position. */
|
|
43
|
+
export declare const readBoxplot: (observations: Iterable<Observation>, mainAxis: MainAxis) => Boxplot;
|
|
@@ -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.
|