@cepheus/cli
Advanced tools
Comparing version 0.3.0 to 0.4.0
import Emittery from 'emittery'; | ||
import { CepheusState, Model, OptimizationState, OptimizationStateFulfilled, OptimizationStatePending, RequiredStoreOptions, StoreOptions, OptimizeTask, TriangleTaskResult, Triangle, TriangleOptions } from './types'; | ||
import { CepheusState, Model, OptimizationState, OptimizationStateFulfilled, OptimizationStatePending, OptimizeTask, RequiredStoreOptions, StoreOptions, Triangle, TriangleOptions, TriangleTaskResult } from './types'; | ||
export declare const createStore: (options: StoreOptions, initialState?: Record<string, OptimizeTask>) => Pick<Emittery<{ | ||
@@ -4,0 +4,0 @@ triangleTask: undefined; |
@@ -45,4 +45,3 @@ import type { Color, ColorSpace } from '@cepheus/color'; | ||
export interface StoreOptions extends Omit<OptimizeOptions, 'colors' | 'background' | 'lightness' | 'chroma'> { | ||
colors: Color[] | string[]; | ||
background: Color[] | string[]; | ||
colors: Array<Color[] | string[]>; | ||
levels?: number; | ||
@@ -52,3 +51,3 @@ iterations?: number; | ||
export interface RequiredStoreOptions extends Omit<StoreOptions, 'colors' | 'background' | 'levels'> { | ||
colors: Array<[number, number, number]>; | ||
colors: Array<Array<[number, number, number]>>; | ||
background: Array<[number, number, number]>; | ||
@@ -64,3 +63,3 @@ interval: number; | ||
randomSource?: PRNGName; | ||
colors: Array<[number, number, number]>; | ||
colors: Array<Array<[number, number, number]>>; | ||
background: Array<[number, number, number]>; | ||
@@ -80,2 +79,3 @@ colorSpace?: ColorSpaceId; | ||
dispersion: number; | ||
hue: number; | ||
lightness: number; | ||
@@ -98,3 +98,3 @@ normal: number; | ||
colorSpace: ColorSpace; | ||
colors: Color[]; | ||
colors: Color[][]; | ||
background: Color[]; | ||
@@ -101,0 +101,0 @@ }; |
import { Pixel, Triangle, TriangleOptions } from '../types'; | ||
export declare const TRIANGLE_CANVAS_HEIGHT = 320; | ||
export declare const TRIANGLE_CANVAS_WIDTH = 320; | ||
export declare const TRIANGLE_CANVAS_HEIGHT = 420; | ||
export declare const TRIANGLE_CANVAS_WIDTH = 420; | ||
export declare const TRIANGLE_TASK_BATCH_SIZE = 100000; | ||
@@ -5,0 +5,0 @@ export declare const createTriangleOptions: (interval: number, squares: number[]) => TriangleOptions; |
import { OptimizationState, OptimizeOptions } from '../types'; | ||
export declare const optimize: (options: OptimizeOptions) => OptimizationState; | ||
export declare const optimize: (options: OptimizeOptions) => Promise<OptimizationState>; | ||
//# sourceMappingURL=optimize.d.ts.map |
{ | ||
"name": "@cepheus/cli", | ||
"description": "", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"author": "escapace <opensource@escapace.com>", | ||
@@ -9,6 +9,6 @@ "bugs": "https://github.com/escapace/cepheus/issues", | ||
"@bjornlu/colorblind": "1.0.3", | ||
"@cepheus/color": "0.3.0", | ||
"@cepheus/utilities": "0.3.0", | ||
"@cepheus/color": "0.4.0", | ||
"@cepheus/utilities": "0.4.0", | ||
"@sindresorhus/fnv1a": "3.0.0", | ||
"@thi.ng/random": "3.3.20", | ||
"@thi.ng/random": "3.3.24", | ||
"arg": "5.0.2", | ||
@@ -21,3 +21,3 @@ "big-cartesian": "4.7.0", | ||
"ora": "6.1.2", | ||
"simple-statistics": "7.8.0", | ||
"simple-statistics": "7.8.3", | ||
"tinypool": "0.3.0", | ||
@@ -30,10 +30,10 @@ "utility-types": "3.10.0" | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.11.18", | ||
"@types/node": "18.13.0", | ||
"@types/wrap-ansi": "8.0.1", | ||
"@typescript-eslint/eslint-plugin": "5.48.0", | ||
"@typescript-eslint/parser": "5.48.0", | ||
"@typescript-eslint/eslint-plugin": "5.52.0", | ||
"@typescript-eslint/parser": "5.52.0", | ||
"c8": "7.12.0", | ||
"chai": "4.3.7", | ||
"eslint": "8.31.0", | ||
"eslint-config-escapace": "3.16.0", | ||
"eslint": "8.34.0", | ||
"eslint-config-escapace": "3.16.1", | ||
"eslint-config-prettier": "8.6.0", | ||
@@ -43,6 +43,6 @@ "eslint-plugin-editorconfig": "4.0.2", | ||
"mocha": "10.2.0", | ||
"prettier": "2.8.1", | ||
"prettier": "2.8.4", | ||
"prettier-config-escapace": "1.0.4", | ||
"tsx": "3.12.1", | ||
"typescript": "4.9.4" | ||
"tsx": "3.12.3", | ||
"typescript": "4.9.5" | ||
}, | ||
@@ -49,0 +49,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
176642
1683
+ Added@cepheus/utilities@0.4.0(transitive)
+ Added@thi.ng/random@3.3.24(transitive)
+ Addedcepheus@0.4.0(transitive)
+ Addedsimple-statistics@7.8.3(transitive)
- Removed@cepheus/utilities@0.3.0(transitive)
- Removed@thi.ng/random@3.3.20(transitive)
- Removedcepheus@0.3.0(transitive)
- Removedsimple-statistics@7.8.0(transitive)
Updated@cepheus/color@0.4.0
Updated@cepheus/utilities@0.4.0
Updated@thi.ng/random@3.3.24
Updatedsimple-statistics@7.8.3