mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Add "NUM_FRACTION_DIGITS" as a static property on Object class. (#42004)
This commit is contained in:
Vendored
+4
@@ -3938,6 +3938,10 @@ export class Object {
|
||||
* @return {fabric.Object}
|
||||
*/
|
||||
static _fromObject(className: string, object: Object, callback?: Function, extraParam?: any): Object;
|
||||
/**
|
||||
* Defines the number of fraction digits to use when serializing object values.
|
||||
*/
|
||||
static NUM_FRACTION_DIGITS?: number;
|
||||
}
|
||||
|
||||
interface IPathOptions extends IObjectOptions {
|
||||
|
||||
@@ -48,6 +48,8 @@ function sample2() {
|
||||
const rainbow = ["#ffcc66", "#ccff66", "#66ccff", "#ff6fcf", "#ff6666"];
|
||||
const rainbowEnd = rainbow.length - 1;
|
||||
|
||||
fabric.Object.NUM_FRACTION_DIGITS = 2;
|
||||
|
||||
//
|
||||
// Rendering canvas #1
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user