@pixerate/editor-react 0.196.0 → 0.197.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.
@@ -270,10 +270,10 @@ var PaintCanvas = ({ controller, tool = "brush", fillOptions, showGuides = true,
270
270
  y1: l.from.y,
271
271
  x2: l.to.x,
272
272
  y2: l.to.y,
273
- stroke: l.kind === "symmetry" ? "#22d3ee" : l.kind === "stencil" ? "#fbbf24" : l.kind === "stroke" || l.kind === "sticker" ? "#818cf8" : "#f472b6",
274
- strokeOpacity: l.kind === "symmetry" || l.kind === "stencil" || l.kind === "stroke" || l.kind === "sticker" ? 0.8 : 0.35,
275
- strokeWidth: 1 / state.view.zoom,
276
- strokeDasharray: l.kind === "symmetry" ? `${6 / state.view.zoom} ${4 / state.view.zoom}` : void 0
273
+ stroke: l.kind === "symmetry" ? "#22d3ee" : l.kind === "stencil" ? "#fbbf24" : l.kind === "stroke" || l.kind === "sticker" ? "#818cf8" : l.kind === "vortex" || l.kind === "vortex-reach" ? "#38bdf8" : "#f472b6",
274
+ strokeOpacity: l.kind === "vortex" ? 0.9 : l.kind === "symmetry" || l.kind === "stencil" || l.kind === "stroke" || l.kind === "sticker" ? 0.8 : l.kind === "vortex-reach" ? 0.45 : 0.35,
275
+ strokeWidth: (l.kind === "vortex" ? 1.5 : 1) / state.view.zoom,
276
+ strokeDasharray: l.kind === "symmetry" ? `${6 / state.view.zoom} ${4 / state.view.zoom}` : l.kind === "vortex-reach" ? `${4 / state.view.zoom} ${4 / state.view.zoom}` : void 0
277
277
  },
278
278
  i
279
279
  )),
@@ -258,10 +258,10 @@ var PaintCanvas = ({ controller, tool = "brush", fillOptions, showGuides = true,
258
258
  y1: l.from.y,
259
259
  x2: l.to.x,
260
260
  y2: l.to.y,
261
- stroke: l.kind === "symmetry" ? "#22d3ee" : l.kind === "stencil" ? "#fbbf24" : l.kind === "stroke" || l.kind === "sticker" ? "#818cf8" : "#f472b6",
262
- strokeOpacity: l.kind === "symmetry" || l.kind === "stencil" || l.kind === "stroke" || l.kind === "sticker" ? 0.8 : 0.35,
263
- strokeWidth: 1 / state.view.zoom,
264
- strokeDasharray: l.kind === "symmetry" ? `${6 / state.view.zoom} ${4 / state.view.zoom}` : void 0
261
+ stroke: l.kind === "symmetry" ? "#22d3ee" : l.kind === "stencil" ? "#fbbf24" : l.kind === "stroke" || l.kind === "sticker" ? "#818cf8" : l.kind === "vortex" || l.kind === "vortex-reach" ? "#38bdf8" : "#f472b6",
262
+ strokeOpacity: l.kind === "vortex" ? 0.9 : l.kind === "symmetry" || l.kind === "stencil" || l.kind === "stroke" || l.kind === "sticker" ? 0.8 : l.kind === "vortex-reach" ? 0.45 : 0.35,
263
+ strokeWidth: (l.kind === "vortex" ? 1.5 : 1) / state.view.zoom,
264
+ strokeDasharray: l.kind === "symmetry" ? `${6 / state.view.zoom} ${4 / state.view.zoom}` : l.kind === "vortex-reach" ? `${4 / state.view.zoom} ${4 / state.view.zoom}` : void 0
265
265
  },
266
266
  i
267
267
  )),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.196.0",
3
+ "version": "0.197.0",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -283,7 +283,7 @@
283
283
  "dependencies": {},
284
284
  "peerDependencies": {
285
285
  "@dagrejs/dagre": "^1.1.8",
286
- "@pixerate/editor": ">=0.283.0 <1.0.0-0",
286
+ "@pixerate/editor": ">=0.284.0 <1.0.0-0",
287
287
  "@tiptap/core": "^2.27.3",
288
288
  "@tiptap/extension-bubble-menu": "^2.27.3",
289
289
  "@tiptap/extension-placeholder": "^2.27.3",
@@ -334,7 +334,7 @@
334
334
  "tsup": "^9.0.0",
335
335
  "typescript": "^5.7.3",
336
336
  "vitest": "^5.1.0",
337
- "@pixerate/editor": "0.283.0"
337
+ "@pixerate/editor": "0.284.0"
338
338
  },
339
339
  "scripts": {
340
340
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",