@pixerate/editor-react 0.88.0 → 0.90.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.
@@ -1060,6 +1060,19 @@ function VectorAppearancePanel({ controller, className }) {
1060
1060
  onBlur: end
1061
1061
  }
1062
1062
  ),
1063
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "flex items-center gap-0.5 text-[11px]", title: "Brush character: seeded jitter and paper grain", children: [
1064
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1065
+ "input",
1066
+ {
1067
+ type: "checkbox",
1068
+ "aria-label": `${name} grain`,
1069
+ "data-vector-brushstroke-grain": "",
1070
+ checked: l.brushstroke.grain,
1071
+ onChange: (e) => controller.setBrushstroke(l.index, e.target.checked ? { paper: {}, ...l.brushstroke.seed === void 0 ? { seed: (0, import_vector5.randomVectorBrushstrokeSeed)() } : {} } : { paper: null }, { ids })
1072
+ }
1073
+ ),
1074
+ "Grain"
1075
+ ] }),
1063
1076
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: buttonClass2, title: "Remove", "aria-label": `Remove ${name}`, onClick: () => controller.removePaintLayer("stroke", l.index, { ids }), children: "\xD7" })
1064
1077
  ] }) }, `${l.kind}-${l.index}`);
1065
1078
  if (l.unknownKind)
@@ -1158,7 +1171,7 @@ function VectorAppearancePanel({ controller, className }) {
1158
1171
  children: "+"
1159
1172
  }
1160
1173
  ),
1161
- kind === "stroke" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: buttonClass2, title: "Add a brushstroke (a natural-media brush along the path)", "aria-label": "Add brushstroke", "data-vector-add-brushstroke": "", disabled: !ids.length, onClick: () => controller.addBrushstroke({ brushId: (0, import_vector5.vectorBrushstrokeBrushes)()[0].id }, { ids }), children: "\u270E+" })
1174
+ kind === "stroke" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: buttonClass2, title: "Add a brushstroke (a natural-media brush along the path)", "aria-label": "Add brushstroke", "data-vector-add-brushstroke": "", disabled: !ids.length, onClick: () => controller.addBrushstroke({ brushId: (0, import_vector5.vectorBrushstrokeBrushes)()[0].id, seed: (0, import_vector5.randomVectorBrushstrokeSeed)() }, { ids }), children: "\u270E+" })
1162
1175
  ] }),
1163
1176
  [...layers].reverse().map((l) => layerRow(l, layers.length))
1164
1177
  ] });