@tweakpane/plugin-essentials
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,6 +0,15 @@ | ||
import { BladeApi } from '@tweakpane/core'; | ||
import { BladeApi, TpEvent } from '@tweakpane/core'; | ||
import { FpsGraphBladeController } from '../controller/fps-graph-blade.js'; | ||
export interface FpsGraphBladeApiEvents { | ||
tick: TpEvent<FpsGraphBladeApi>; | ||
} | ||
export declare class FpsGraphBladeApi extends BladeApi<FpsGraphBladeController> { | ||
get fps(): number | null; | ||
get max(): number; | ||
set max(max: number); | ||
get min(): number; | ||
set min(min: number); | ||
begin(): void; | ||
end(): void; | ||
on<EventName extends keyof FpsGraphBladeApiEvents>(eventName: EventName, handler: (ev: FpsGraphBladeApiEvents[EventName]) => void): this; | ||
} |
import { BufferedValue, Controller, Ticker, ViewProps } from '@tweakpane/core'; | ||
import { GraphLogProps } from '@tweakpane/core/dist/monitor-binding/number/view/graph-log.js'; | ||
import { FpsView } from '../view/fps.js'; | ||
interface Config { | ||
maxValue: number; | ||
minValue: number; | ||
props: GraphLogProps; | ||
rows: number; | ||
@@ -12,2 +12,4 @@ ticker: Ticker; | ||
export declare class FpsGraphController implements Controller<FpsView> { | ||
readonly props: GraphLogProps; | ||
readonly ticker: Ticker; | ||
readonly view: FpsView; | ||
@@ -18,4 +20,4 @@ readonly viewProps: ViewProps; | ||
private readonly stopwatch_; | ||
private ticker_; | ||
constructor(doc: Document, config: Config); | ||
get fps(): number | null; | ||
begin(): void; | ||
@@ -22,0 +24,0 @@ end(): void; |
{ | ||
"name": "@tweakpane/plugin-essentials", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Essential components for Tweakpane", | ||
@@ -63,4 +63,4 @@ "main": "dist/tweakpane-plugin-essentials.js", | ||
"peerDependencies": { | ||
"tweakpane": "^4.0.0-beta.2" | ||
"tweakpane": "^4.0.0" | ||
} | ||
} |
@@ -137,2 +137,11 @@ # Tweakpane essentials plugin | ||
## Version compatibility | ||
| Tweakpane | Essentials | | ||
| --------- | ---------- | | ||
| 4.x | 0.2.x | | ||
| 3.x | 0.1.x | | ||
[tweakpane]: https://github.com/cocopon/tweakpane/ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
462636
9592
147