js-apidiff-graphic.md 4.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# JS API Changes of the Graphics Subsystem

The table below lists the APIs changes of the graphics subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

## API Changes

| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.graphics.colorSpaceManager | colorSpaceManager   | function create(colorSpaceName: ColorSpace): ColorSpaceManager;<br>function create(primaries: ColorSpacePrimaries, gamma: number): ColorSpaceManager; | Added|
| ohos.graphics.colorSpaceManager | ColorSpaceManager   | getGamma(): number;                                                                                                                                   | Added|
| ohos.graphics.colorSpaceManager | ColorSpaceManager   | getWhitePoint(): Array\<number>;                                                                                                                      | Added|
| ohos.graphics.colorSpaceManager | ColorSpaceManager   | getColorSpaceName(): ColorSpace;                                                                                                                      | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | whitePointY: number;                                                                                                                                  | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | whitePointX: number;                                                                                                                                  | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | blueY: number;                                                                                                                                        | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | blueX: number;                                                                                                                                        | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | greenY: number;                                                                                                                                       | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | greenX: number;                                                                                                                                       | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | redY: number;                                                                                                                                         | Added|
| ohos.graphics.colorSpaceManager | ColorSpacePrimaries | redX: number;                                                                                                                                         | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | CUSTOM = 5                                                                                                                                            | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | SRGB = 4                                                                                                                                              | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | DISPLAY_P3 = 3                                                                                                                                        | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | DCI_P3 = 2                                                                                                                                            | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | ADOBE_RGB_1998 = 1                                                                                                                                    | Added|
| ohos.graphics.colorSpaceManager | ColorSpace          | UNKNOWN = 0                                                                                                                                           | Added|