Debian Codegraph @

jupyter-widgets-controls/lib/widget_float.d.ts

raw
1 /// <reference types="backbone" />
2 import { CoreDescriptionModel } from './widget_core';
3 import { BaseIntSliderView, IntRangeSliderView, IntSliderView, IntTextView } from './widget_int';
4 export declare class FloatModel extends CoreDescriptionModel {
5 defaults(): Backbone.ObjectHash;
6 }
7 export declare class BoundedFloatModel extends FloatModel {
8 defaults(): Backbone.ObjectHash;
9 }
10 export declare class FloatSliderModel extends BoundedFloatModel {
11 defaults(): Backbone.ObjectHash;
12 initialize(attributes: any, options: {
13 model_id: string;
14 comm?: any;
15 widget_manager: any;
16 }): void;
17 update_readout_format(): void;
18 readout_formatter: any;
19 }
20 export declare class FloatLogSliderModel extends BoundedFloatModel {
21 defaults(): Backbone.ObjectHash;
22 initialize(attributes: any, options: {
23 model_id: string;
24 comm: any;
25 widget_manager: any;
26 }): void;
27 update_readout_format(): void;
28 readout_formatter: any;
29 }
30 export declare class FloatRangeSliderModel extends FloatSliderModel {
31 }
32 export declare class FloatSliderView extends IntSliderView {
33 /**
34 * Validate the value of the slider before sending it to the back-end
35 * and applying it to the other views on the page.
36 */
37 _validate_slide_value(x: any): any;
38 _parse_value: typeof parseFloat;
39 }
40 export declare class FloatLogSliderView extends BaseIntSliderView {
41 update(options?: any): void;
42 /**
43 * Convert from value to exponent
44 *
45 * @param value the widget value
46 * @returns the log-value between the min/max exponents
47 */
48 logCalc(value: number): number;
49 createSlider(): void;
50 /**
51 * Write value to a string
52 */
53 valueToString(value: number): string;
54 /**
55 * Parse value from a string
56 */
57 stringToValue(text: string | null): number;
58 /**
59 * this handles the entry of text into the contentEditable label first, the
60 * value is checked if it contains a parseable value then it is clamped
61 * within the min-max range of the slider finally, the model is updated if
62 * the value is to be changed
63 *
64 * if any of these conditions are not met, the text is reset
65 */
66 handleTextChange(): void;
67 /**
68 * Called whilst the slider is dragged, tapped or moved by the arrow keys.
69 */
70 handleSliderUpdateEvent(values: number[], handle: number): void;
71 /**
72 * Called when the slider handle is released after dragging,
73 * or by tapping or moving by the arrow keys.
74 */
75 handleSliderChangeEvent(values: number[], handle: number): void;
76 /**
77 * Called when the slider value has changed.
78 *
79 * Calling model.set will trigger all of the other views of the
80 * model to update.
81 */
82 handleSliderChanged(values: number[], handle: number): void;
83 updateSliderValue(model: any, value: any, options: any): void;
84 updateSliderOptions(e: any): void;
85 _validate_slide_value(x: any): any;
86 _parse_value: typeof parseFloat;
87 private _updating_slider;
88 }
89 export declare class FloatRangeSliderView extends IntRangeSliderView {
90 /**
91 * Validate the value of the slider before sending it to the back-end
92 * and applying it to the other views on the page.
93 */
94 _validate_slide_value(x: any): any;
95 _parse_value: typeof parseFloat;
96 _range_regex: RegExp;
97 }
98 export declare class FloatTextModel extends FloatModel {
99 defaults(): Backbone.ObjectHash;
100 }
101 export declare class BoundedFloatTextModel extends BoundedFloatModel {
102 defaults(): Backbone.ObjectHash;
103 }
104 export declare class FloatTextView extends IntTextView {
105 _parse_value: typeof parseFloat;
106 _default_step: string;
107 /**
108 * Handle key press
109 */
110 handleKeypress(e: KeyboardEvent): void;
111 /**
112 * Handle key up
113 */
114 handleKeyUp(e: KeyboardEvent): void;
115 }
116 export declare class FloatProgressModel extends BoundedFloatModel {
117 defaults(): Backbone.ObjectHash;
118 }
119 //# sourceMappingURL=widget_float.d.ts.map