@viji-dev/core 0.7.6 → 0.7.7
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/artist-dts-p5.js +1 -1
- package/dist/artist-dts.js +1 -1
- package/dist/artist-global-p5.d.ts +1 -1
- package/dist/artist-global.d.ts +1 -1
- package/dist/docs-api.js +9862 -9862
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -888,7 +888,7 @@ declare interface CoordinateParameter {
|
|
|
888
888
|
* Two-component coordinate, both axes in `-1..1` (centered on the canvas).
|
|
889
889
|
* Returned and consumed by `viji.coordinate()`.
|
|
890
890
|
*/
|
|
891
|
-
declare type CoordinateValue = {
|
|
891
|
+
export declare type CoordinateValue = {
|
|
892
892
|
/** Horizontal axis in `-1..1` (left to right, `0` = canvas center). */
|
|
893
893
|
x: number;
|
|
894
894
|
/** Vertical axis in `-1..1` (bottom to top, `0` = canvas center). */
|
|
@@ -1545,13 +1545,13 @@ export declare interface ParameterConfig {
|
|
|
1545
1545
|
|
|
1546
1546
|
export declare interface ParameterDefinition {
|
|
1547
1547
|
type: 'slider' | 'color' | 'toggle' | 'select' | 'text' | 'number' | 'image' | 'button' | 'coordinate';
|
|
1548
|
-
defaultValue:
|
|
1548
|
+
defaultValue: ParameterValue;
|
|
1549
1549
|
label?: string;
|
|
1550
1550
|
description?: string;
|
|
1551
1551
|
group?: string;
|
|
1552
1552
|
category?: ParameterCategory;
|
|
1553
1553
|
config?: ParameterConfig;
|
|
1554
|
-
validate?: (value:
|
|
1554
|
+
validate?: (value: ParameterValue) => boolean;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
export declare interface ParameterGroup {
|
|
@@ -1563,7 +1563,7 @@ export declare interface ParameterGroup {
|
|
|
1563
1563
|
parameters: Record<string, ParameterDefinition>;
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
1566
|
-
declare type ParameterValue = string | number | boolean | ImageBitmap | CoordinateValue | null;
|
|
1566
|
+
export declare type ParameterValue = string | number | boolean | ImageBitmap | CoordinateValue | null;
|
|
1567
1567
|
|
|
1568
1568
|
declare interface PatternInfo {
|
|
1569
1569
|
length: number;
|