@pixerate/editor-react 0.188.0 → 0.189.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/paint-editor/EvolutionPanel.d.cts +15 -0
- package/dist/paint-editor/EvolutionPanel.d.ts +15 -0
- package/dist/paint-editor/index.cjs +489 -321
- package/dist/paint-editor/index.d.cts +1 -0
- package/dist/paint-editor/index.d.ts +1 -0
- package/dist/paint-editor/index.js +264 -90
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaintEditorController, type PaintProposals } from '@pixerate/editor/paint-editor';
|
|
3
|
+
export interface EvolutionPanelProps {
|
|
4
|
+
controller: PaintEditorController;
|
|
5
|
+
/** Optional proposals store (defaults to `controller.proposals`). */
|
|
6
|
+
proposals?: PaintProposals;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Evolutionary strokes: pick recorded dry strokes, adjust mutation rates (`geometry`, `color`,
|
|
11
|
+
* `brush`, `seed`), and breed a grid of mutated stroke proposals. Variants can be bred further
|
|
12
|
+
* (single parent mutation or two-parent crossover), accepted as a single undo step, dismissed, or
|
|
13
|
+
* exported as a contact sheet.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EvolutionPanel: React.FC<EvolutionPanelProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaintEditorController, type PaintProposals } from '@pixerate/editor/paint-editor';
|
|
3
|
+
export interface EvolutionPanelProps {
|
|
4
|
+
controller: PaintEditorController;
|
|
5
|
+
/** Optional proposals store (defaults to `controller.proposals`). */
|
|
6
|
+
proposals?: PaintProposals;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Evolutionary strokes: pick recorded dry strokes, adjust mutation rates (`geometry`, `color`,
|
|
11
|
+
* `brush`, `seed`), and breed a grid of mutated stroke proposals. Variants can be bred further
|
|
12
|
+
* (single parent mutation or two-parent crossover), accepted as a single undo step, dismissed, or
|
|
13
|
+
* exported as a contact sheet.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EvolutionPanel: React.FC<EvolutionPanelProps>;
|