@pixerate/editor 0.161.0 → 0.162.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/dist/agent/index.cjs +36 -35
- package/dist/agent/index.js +7 -6
- package/dist/animation/index.cjs +5 -4
- package/dist/animation/index.js +4 -3
- package/dist/animation-editor/index.cjs +62 -61
- package/dist/animation-editor/index.js +6 -5
- package/dist/canvas/index.cjs +33 -32
- package/dist/canvas/index.js +6 -5
- package/dist/chart/index.cjs +88 -87
- package/dist/chart/index.js +7 -6
- package/dist/{chunk-QMI5HZWA.cjs → chunk-236TKNUR.cjs} +3 -3
- package/dist/{chunk-6UPGM3JB.js → chunk-2TKHLX6H.js} +1 -1
- package/dist/{chunk-3YDQLQH2.cjs → chunk-32MMQYCQ.cjs} +81 -81
- package/dist/{chunk-MHEXLG3M.cjs → chunk-3GJH2MGH.cjs} +37 -37
- package/dist/{chunk-AKDWAWSY.cjs → chunk-3IHNXRUV.cjs} +45 -45
- package/dist/{chunk-TVO6W2Q6.cjs → chunk-4NGVHHJB.cjs} +17 -17
- package/dist/chunk-4VU4CP7R.js +769 -0
- package/dist/{chunk-DBIVICAO.js → chunk-7CKPUUN4.js} +1 -1
- package/dist/{chunk-57JLBGJ5.cjs → chunk-7YBDRJXT.cjs} +8 -8
- package/dist/{chunk-KY3FYKP3.js → chunk-BQWGN5WH.js} +1 -1
- package/dist/{chunk-LEUZ4FRC.cjs → chunk-CIPIESX4.cjs} +3 -3
- package/dist/chunk-CJE5MOIS.js +347 -0
- package/dist/{chunk-5QBRAIVK.js → chunk-CX6JLDFC.js} +3 -3
- package/dist/{chunk-R3QY7PPL.js → chunk-DTSTNRPH.js} +1 -1
- package/dist/{chunk-6LUYFHHN.cjs → chunk-EQ46F75O.cjs} +51 -51
- package/dist/{chunk-UKCJ43YL.cjs → chunk-ES3UEVUT.cjs} +130 -898
- package/dist/{chunk-UM3RPYC5.js → chunk-EVPZ5IKN.js} +1 -1
- package/dist/{chunk-XNQ5EFB4.cjs → chunk-EY22AY6R.cjs} +16 -16
- package/dist/chunk-FKUKJ3XA.cjs +347 -0
- package/dist/{chunk-YABNLNY7.js → chunk-GLMP22FT.js} +3 -3
- package/dist/{chunk-SUF6WRXR.cjs → chunk-GTELFJRE.cjs} +2 -2
- package/dist/{chunk-72BGL3I2.js → chunk-GWV4T5NZ.js} +1 -1
- package/dist/{chunk-AY65VQSU.js → chunk-H3OEM3Q2.js} +1 -1
- package/dist/{chunk-4YWAEV4W.cjs → chunk-HDGBM7EA.cjs} +26 -26
- package/dist/{chunk-H5XX4KHB.js → chunk-HLOKB7WW.js} +5 -3
- package/dist/{chunk-WNAAWLZ5.js → chunk-KGTF55R3.js} +2 -2
- package/dist/{chunk-WPPJH6X4.cjs → chunk-LL3H5XUH.cjs} +6 -4
- package/dist/{chunk-4T44CJ5K.cjs → chunk-NA4UVVJ4.cjs} +15 -15
- package/dist/{chunk-Q6PA362P.js → chunk-NO5QQDHZ.js} +2 -2
- package/dist/{chunk-AA34BA7G.js → chunk-QYZGBVNC.js} +30 -798
- package/dist/chunk-S6X2QRVU.cjs +769 -0
- package/dist/{chunk-SSCL7QQ4.js → chunk-XDCFJEU7.js} +2 -2
- package/dist/color/index.cjs +6 -2
- package/dist/color/index.d.cts +1 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.js +28 -24
- package/dist/color/suggest.d.cts +12 -0
- package/dist/color/suggest.d.ts +12 -0
- package/dist/effects/index.cjs +37 -13
- package/dist/effects/index.js +29 -5
- package/dist/effects/ui.d.cts +20 -3
- package/dist/effects/ui.d.ts +20 -3
- package/dist/export/index.cjs +6 -5
- package/dist/export/index.js +5 -4
- package/dist/extensions/index.cjs +9 -8
- package/dist/extensions/index.js +8 -7
- package/dist/gradient/index.cjs +28 -26
- package/dist/gradient/index.js +7 -5
- package/dist/image-editor/index.cjs +638 -637
- package/dist/image-editor/index.js +5 -4
- package/dist/index.cjs +15 -14
- package/dist/index.js +9 -8
- package/dist/paint-editor/index.cjs +15 -14
- package/dist/paint-editor/index.js +5 -4
- package/dist/typography/accessibility.d.cts +44 -0
- package/dist/typography/accessibility.d.ts +44 -0
- package/dist/typography/catalog.d.cts +98 -0
- package/dist/typography/catalog.d.ts +98 -0
- package/dist/typography/index.cjs +1099 -0
- package/dist/typography/index.d.cts +16 -0
- package/dist/typography/index.d.ts +16 -0
- package/dist/typography/index.js +1099 -0
- package/dist/typography/metrics.d.cts +31 -0
- package/dist/typography/metrics.d.ts +31 -0
- package/dist/typography/picker.d.cts +132 -0
- package/dist/typography/picker.d.ts +132 -0
- package/dist/typography/registry.d.cts +66 -0
- package/dist/typography/registry.d.ts +66 -0
- package/dist/typography/scale.d.cts +62 -0
- package/dist/typography/scale.d.ts +62 -0
- package/dist/typography/segment.d.cts +26 -0
- package/dist/typography/segment.d.ts +26 -0
- package/dist/typography/stack.d.cts +26 -0
- package/dist/typography/stack.d.ts +26 -0
- package/dist/typography/tools.d.cts +34 -0
- package/dist/typography/tools.d.ts +34 -0
- package/dist/typography/types.d.cts +96 -0
- package/dist/typography/types.d.ts +96 -0
- package/dist/typography/weight.d.cts +13 -0
- package/dist/typography/weight.d.ts +13 -0
- package/dist/vector/index.cjs +950 -949
- package/dist/vector/index.js +5 -4
- package/dist/video-editor/index.cjs +5 -4
- package/dist/video-editor/index.js +4 -3
- package/package.json +11 -1
- package/skills/README.md +1 -0
- package/skills/pixerate-typography/SKILL.md +91 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkLL3H5XUHcjs = require('./chunk-LL3H5XUH.cjs');
|
|
18
18
|
|
|
19
19
|
// src/chart/schemas.ts
|
|
20
20
|
var VALUE = { type: ["number", "string", "null"], description: 'A number, numeric text ("1,200", "12%", "$40", "(3)") or null for a gap.' };
|
|
@@ -26,7 +26,7 @@ var FORMAT = {
|
|
|
26
26
|
type: "object",
|
|
27
27
|
description: "How numbers are written on this axis or series.",
|
|
28
28
|
properties: {
|
|
29
|
-
style: { type: "string", enum: [...
|
|
29
|
+
style: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_NUMBER_STYLES], description: "number (default), percent (0.25 \u2192 25%), currency or compact (1.2K)." },
|
|
30
30
|
decimals: { type: "integer", minimum: 0, maximum: 10, description: "Fixed decimals (default: what the ticks need)." },
|
|
31
31
|
currency: { type: "string", description: 'ISO currency code for style "currency", e.g. "EUR" (default USD).' },
|
|
32
32
|
prefix: { type: "string", description: "Text before every number." },
|
|
@@ -46,10 +46,10 @@ var AXIS = (what) => ({
|
|
|
46
46
|
step: { type: ["number", "null"], exclusiveMinimum: 0, description: "Fixed distance between ticks, or null for automatic." },
|
|
47
47
|
gridlines: { type: "boolean", description: "Grid lines at each tick." },
|
|
48
48
|
format: FORMAT,
|
|
49
|
-
kind: { type: ["string", "null"], enum: [...
|
|
49
|
+
kind: { type: ["string", "null"], enum: [..._chunkLL3H5XUHcjs.CHART_AXIS_KINDS, null], description: 'Category axis only: "date" reads categories as dates and labels them by calendar steps.' },
|
|
50
50
|
scale: {
|
|
51
51
|
type: ["string", "null"],
|
|
52
|
-
enum: [...
|
|
52
|
+
enum: [..._chunkLL3H5XUHcjs.CHART_AXIS_SCALES, null],
|
|
53
53
|
description: 'Value axes and the numeric x axis of scatter / bubble charts: "log" spaces ticks by powers of logBase (values of 0 or less are skipped; min and max must be above 0; not with percent stacking). "linear" or null is the default. Ignored on a category axis.'
|
|
54
54
|
},
|
|
55
55
|
logBase: { type: ["number", "null"], minimum: 2, maximum: 1e3, description: "Base of a log axis, 2 to 1000 (default 10; null resets)." },
|
|
@@ -58,7 +58,7 @@ var AXIS = (what) => ({
|
|
|
58
58
|
additionalProperties: false
|
|
59
59
|
});
|
|
60
60
|
var TRENDLINE_PROPS = {
|
|
61
|
-
type: { type: "string", enum: [...
|
|
61
|
+
type: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_TRENDLINE_TYPES], description: "Fit: linear, exponential, logarithmic, power, polynomial or moving-average." },
|
|
62
62
|
order: { type: "integer", minimum: 2, maximum: 6, description: "Polynomial order (default 2)." },
|
|
63
63
|
period: { type: "integer", minimum: 2, description: "Moving-average period in points (default 2)." },
|
|
64
64
|
forward: { type: "number", minimum: 0, description: "Extend the line this many x units past the last point (default 0)." },
|
|
@@ -75,13 +75,13 @@ var ERROR_BARS = (what) => ({
|
|
|
75
75
|
properties: {
|
|
76
76
|
type: {
|
|
77
77
|
type: "string",
|
|
78
|
-
enum: [...
|
|
78
|
+
enum: [..._chunkLL3H5XUHcjs.CHART_ERROR_BAR_TYPES],
|
|
79
79
|
description: "fixed: the same amount at every point; percent: a percentage of each value; stddev: value standard deviations of the series, drawn around the series mean (as Excel does); stderr: the standard error of the series at every point; custom: per-point plus / minus amounts."
|
|
80
80
|
},
|
|
81
81
|
value: { type: "number", minimum: 0, description: "Amount in data units for fixed (default 1), percent of each value for percent (default 5), number of standard deviations for stddev (default 1). Not for stderr or custom." },
|
|
82
82
|
plus: { type: "array", items: VALUE, description: "custom only: amount above each point, one per category, in data units (0 or more; null for none)." },
|
|
83
83
|
minus: { type: "array", items: VALUE, description: "custom only: amount below each point, one per category (default: the plus amounts)." },
|
|
84
|
-
direction: { type: "string", enum: [...
|
|
84
|
+
direction: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_ERROR_BAR_DIRECTIONS], description: "both (default), plus (only above) or minus (only below)." },
|
|
85
85
|
cap: { type: "boolean", description: "Draw end caps (default true)." }
|
|
86
86
|
},
|
|
87
87
|
required: ["type"],
|
|
@@ -91,21 +91,21 @@ var SERIES_PROPS = {
|
|
|
91
91
|
name: { type: "string", description: "Series name (legend and data grid header)." },
|
|
92
92
|
values: { type: "array", items: VALUE, description: "One value per category, in category order (padded with gaps)." },
|
|
93
93
|
color: { type: ["string", "null"], description: "CSS colour, or null for the palette colour." },
|
|
94
|
-
type: { type: ["string", "null"], enum: [...
|
|
94
|
+
type: { type: ["string", "null"], enum: [..._chunkLL3H5XUHcjs.CHART_SERIES_TYPES, null], description: "Draw this series as bar, line, area or scatter (a combo chart); null follows the chart type." },
|
|
95
95
|
hidden: { type: "boolean", description: "Hide the series (its data is kept)." },
|
|
96
96
|
axis: { type: ["string", "null"], enum: ["primary", "secondary", null], description: "Value axis: secondary is drawn on the right with its own scale." },
|
|
97
97
|
x: { type: ["array", "null"], items: VALUE, description: "Numeric x per category, for scatter and bubble charts." },
|
|
98
98
|
sizes: { type: ["array", "null"], items: VALUE, description: "Bubble sizes per category (area is proportional to size)." },
|
|
99
99
|
pointColors: { type: ["array", "null"], items: { type: ["string", "null"] }, description: "Colour per category (null keeps the series colour)." },
|
|
100
|
-
marker: { type: ["string", "null"], enum: [...
|
|
101
|
-
curve: { type: ["string", "null"], enum: [...
|
|
100
|
+
marker: { type: ["string", "null"], enum: [..._chunkLL3H5XUHcjs.CHART_MARKERS, null], description: "Point marker shape for line, area and scatter series." },
|
|
101
|
+
curve: { type: ["string", "null"], enum: [..._chunkLL3H5XUHcjs.CHART_CURVES, null], description: "Line shape for this series: linear, smooth or step." },
|
|
102
102
|
dataLabels: { type: ["boolean", "null"], description: "Value labels for this series (null follows the chart)." },
|
|
103
103
|
format: { ...FORMAT, type: ["object", "null"], description: "How this series' labels are written (null follows the value axis)." },
|
|
104
104
|
errorBars: ERROR_BARS("Error bars along the value axis (bar, line, area and scatter series; on stacked charts they sit on the stack top)."),
|
|
105
105
|
xErrorBars: ERROR_BARS("Error bars along the x axis (scatter and bubble charts with numeric x values; amounts in x units).")
|
|
106
106
|
};
|
|
107
107
|
var CHART_UPDATE_PROPERTIES = {
|
|
108
|
-
type: { type: "string", enum: [...
|
|
108
|
+
type: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_TYPES], description: "Chart type." },
|
|
109
109
|
title: { type: "string", description: 'Title ("" for none).' },
|
|
110
110
|
subtitle: { type: "string", description: 'Subtitle ("" for none).' },
|
|
111
111
|
xAxis: AXIS("Category axis (or numeric x axis of scatter / bubble charts)."),
|
|
@@ -114,15 +114,15 @@ var CHART_UPDATE_PROPERTIES = {
|
|
|
114
114
|
legend: {
|
|
115
115
|
type: "object",
|
|
116
116
|
description: "Legend.",
|
|
117
|
-
properties: { show: { type: "boolean", description: "Show the legend." }, position: { type: "string", enum: [...
|
|
117
|
+
properties: { show: { type: "boolean", description: "Show the legend." }, position: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_LEGEND_POSITIONS], description: "Where the legend goes." } },
|
|
118
118
|
additionalProperties: false
|
|
119
119
|
},
|
|
120
|
-
stacking: { type: "string", enum: [...
|
|
121
|
-
orientation: { type: "string", enum: [...
|
|
122
|
-
curve: { type: "string", enum: [...
|
|
120
|
+
stacking: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_STACKINGS], description: "none, stacked, or percent (each category scaled to 100%)." },
|
|
121
|
+
orientation: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_ORIENTATIONS], description: "horizontal draws bars sideways." },
|
|
122
|
+
curve: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_CURVES], description: "Line shape: linear, smooth or step." },
|
|
123
123
|
points: { type: "boolean", description: "Dots on line and area series." },
|
|
124
124
|
dataLabels: { type: "boolean", description: "Value labels on bars, points and slices." },
|
|
125
|
-
labelPosition: { type: "string", enum: [...
|
|
125
|
+
labelPosition: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_LABEL_POSITIONS], description: "Bar label position; auto drops labels that do not fit." },
|
|
126
126
|
palette: { type: "array", items: { type: "string" }, minItems: 1, description: "Series colours in order (CSS colours)." },
|
|
127
127
|
innerRadius: { type: "number", minimum: 0, maximum: 0.9, description: "Donut hole as a fraction of the radius." },
|
|
128
128
|
gapWidth: { type: "number", minimum: 0, maximum: 0.9, description: "Space between bar groups as a fraction of the category (default 0.28)." },
|
|
@@ -130,7 +130,7 @@ var CHART_UPDATE_PROPERTIES = {
|
|
|
130
130
|
bins: { type: ["integer", "null"], minimum: 1, maximum: 500, description: "Histogram bin count, or null for \u221An." },
|
|
131
131
|
showTotal: { type: "boolean", description: "Waterfall: append a total bar." },
|
|
132
132
|
radarTicks: { type: ["integer", "null"], minimum: 1, maximum: 50, description: "Radar: number of evenly spaced rings from the value axis min to max, or null for round-number rings (default null)." },
|
|
133
|
-
radarGraticule: { type: "string", enum: [...
|
|
133
|
+
radarGraticule: { type: "string", enum: [..._chunkLL3H5XUHcjs.CHART_RADAR_GRATICULES], description: "Radar: draw rings as polygons through the spokes or as circles (default polygon)." }
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
|