| Change Type | Old Version | New Version | d.ts File |
|---|---|---|---|
| New API | NA | Class name: Canvas; API declaration: drawShadow(path: Path, planeParams: common2D.Point3d, devLightPos: common2D.Point3d, lightRadius: number, ambientColor: common2D.Color |number, spotColor: common2D.Color |number, flag: ShadowFlag): void; DIfferences: drawShadow(path: Path, planeParams: common2D.Point3d, devLightPos: common2D.Point3d, lightRadius: number, ambientColor: common2D.Color |number, spotColor: common2D.Color |number, flag: ShadowFlag): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: drawColor(color: number, blendMode?: BlendMode): void; DIfferences: drawColor(color: number, blendMode?: BlendMode): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: clear(color: common2D.Color |number): void; DIfferences: clear(color: common2D.Color |number): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Lattice; API declaration: static createImageLattice(xDivs: Array<number>, yDivs: Array<number>, fXCount: number, fYCount: number, fBounds?: common2D.Rect |null, fRectTypes?: Array<RectType> |null, fColors?: Array<number> |null): Lattice; DIfferences: static createImageLattice(xDivs: Array<number>, yDivs: Array<number>, fXCount: number, fYCount: number, fBounds?: common2D.Rect |null, fRectTypes?: Array<RectType> |null, fColors?: Array<number> |null): Lattice; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: ShadowLayer; API declaration: static create(blurRadius: number, x: number, y: number, color: common2D.Color |number): ShadowLayer; DIfferences: static create(blurRadius: number, x: number, y: number, color: common2D.Color |number): ShadowLayer; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: ColorFilter; API declaration: static createBlendModeColorFilter(color: common2D.Color |number, mode: BlendMode): ColorFilter; DIfferences: static createBlendModeColorFilter(color: common2D.Color |number, mode: BlendMode): ColorFilter; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Pen; API declaration: setColor(color: number): void; DIfferences: setColor(color: number): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Brush; API declaration: setColor(color: number): void; DIfferences: setColor(color: number): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: drawing; API declaration: enum PathIteratorVerb DIfferences: enum PathIteratorVerb | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: MOVE = 0 DIfferences: MOVE = 0 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: LINE = 1 DIfferences: LINE = 1 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: QUAD = 2 DIfferences: QUAD = 2 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: CONIC = 3 DIfferences: CONIC = 3 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: CUBIC = 4 DIfferences: CUBIC = 4 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: CLOSE = 5 DIfferences: CLOSE = 5 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIteratorVerb; API declaration: DONE = CLOSE + 1 DIfferences: DONE = CLOSE + 1 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: drawing; API declaration: class PathIterator DIfferences: class PathIterator | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIterator; API declaration: next(points: Array<common2D.Point>, offset?: number): PathIteratorVerb; DIfferences: next(points: Array<common2D.Point>, offset?: number): PathIteratorVerb; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIterator; API declaration: peek(): PathIteratorVerb; DIfferences: peek(): PathIteratorVerb; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathIterator; API declaration: hasNext(): boolean; DIfferences: hasNext(): boolean; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Path; API declaration: getSegment(forceClosed: boolean, start: number, stop: number, startWithMoveTo: boolean, dst: Path): boolean; DIfferences: getSegment(forceClosed: boolean, start: number, stop: number, startWithMoveTo: boolean, dst: Path): boolean; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Path; API declaration: getPathIterator(): PathIterator; DIfferences: getPathIterator(): PathIterator; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: drawImageLattice(pixelmap: image.PixelMap, lattice: Lattice, dstRect: common2D.Rect, filterMode: FilterMode): void; DIfferences: drawImageLattice(pixelmap: image.PixelMap, lattice: Lattice, dstRect: common2D.Rect, filterMode: FilterMode): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: drawImageNine(pixelmap: image.PixelMap, center: common2D.Rect, dstRect: common2D.Rect, filterMode: FilterMode): void; DIfferences: drawImageNine(pixelmap: image.PixelMap, center: common2D.Rect, dstRect: common2D.Rect, filterMode: FilterMode): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: drawArcWithCenter(arc: common2D.Rect, startAngle: number, sweepAngle: number, useCenter: boolean): void; DIfferences: drawArcWithCenter(arc: common2D.Rect, startAngle: number, sweepAngle: number, useCenter: boolean): void; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: quickRejectPath(path: Path): boolean; DIfferences: quickRejectPath(path: Path): boolean; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Canvas; API declaration: quickRejectRect(rect: common2D.Rect): boolean; DIfferences: quickRejectRect(rect: common2D.Rect): boolean; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Typeface; API declaration: static makeFromRawFile(rawfile: Resource): Typeface; DIfferences: static makeFromRawFile(rawfile: Resource): Typeface; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Font; API declaration: createPathForGlyph(index: number): Path; DIfferences: createPathForGlyph(index: number): Path; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Font; API declaration: getBounds(glyphs: Array<number>): Array<common2D.Rect>; DIfferences: getBounds(glyphs: Array<number>): Array<common2D.Rect>; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Font; API declaration: getTextPath(text: string, byteLength: number, x: number, y: number): Path; DIfferences: getTextPath(text: string, byteLength: number, x: number, y: number): Path; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: drawing; API declaration: enum PathDashStyle DIfferences: enum PathDashStyle | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathDashStyle; API declaration: TRANSLATE = 0 DIfferences: TRANSLATE = 0 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathDashStyle; API declaration: ROTATE = 1 DIfferences: ROTATE = 1 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathDashStyle; API declaration: MORPH = 2 DIfferences: MORPH = 2 | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathEffect; API declaration: static createDiscretePathEffect(segLength: number, dev: number, seedAssist?: number): PathEffect; DIfferences: static createDiscretePathEffect(segLength: number, dev: number, seedAssist?: number): PathEffect; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathEffect; API declaration: static createComposePathEffect(outer: PathEffect, inner: PathEffect): PathEffect; DIfferences: static createComposePathEffect(outer: PathEffect, inner: PathEffect): PathEffect; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathEffect; API declaration: static createPathDashEffect(path: Path, advance: number, phase: number, style: PathDashStyle): PathEffect; DIfferences: static createPathDashEffect(path: Path, advance: number, phase: number, style: PathDashStyle): PathEffect; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: PathEffect; API declaration: static createSumPathEffect(firstPathEffect: PathEffect, secondPathEffect: PathEffect): PathEffect; DIfferences: static createSumPathEffect(firstPathEffect: PathEffect, secondPathEffect: PathEffect): PathEffect; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Pen; API declaration: getHexColor(): number; DIfferences: getHexColor(): number; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Brush; API declaration: getHexColor(): number; DIfferences: getHexColor(): number; | api/@ohos.graphics.drawing.d.ts |
| New API | NA | Class name: Run; API declaration: getGlyphs(range: Range): Array<number>; DIfferences: getGlyphs(range: Range): Array<number>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Run; API declaration: getPositions(range: Range): Array<common2D.Point>; DIfferences: getPositions(range: Range): Array<common2D.Point>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: WordBreak; API declaration: BREAK_HYPHEN DIfferences: BREAK_HYPHEN | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: FontCollection; API declaration: loadFont(name: string, path: string |Resource): Promise<void>; DIfferences: loadFont(name: string, path: string |Resource): Promise<void>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: ParagraphStyle; API declaration: tab?: TextTab; DIfferences: tab?: TextTab; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: SystemFontType; API declaration: CUSTOMIZED = 1 << 4 DIfferences: CUSTOMIZED = 1 << 4 | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Paragraph; API declaration: layout(width: number): Promise<void>; DIfferences: layout(width: number): Promise<void>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: text; API declaration: class LineTypeset DIfferences: class LineTypeset | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: LineTypeset; API declaration: getLineBreak(startIndex: number, width: number): number; DIfferences: getLineBreak(startIndex: number, width: number): number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: LineTypeset; API declaration: createLine(startIndex: number, count: number): TextLine; DIfferences: createLine(startIndex: number, count: number): TextLine; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: ParagraphBuilder; API declaration: buildLineTypeset(): LineTypeset; DIfferences: buildLineTypeset(): LineTypeset; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: text; API declaration: interface TypographicBounds DIfferences: interface TypographicBounds | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TypographicBounds; API declaration: ascent: number; DIfferences: ascent: number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TypographicBounds; API declaration: descent: number; DIfferences: descent: number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TypographicBounds; API declaration: leading: number; DIfferences: leading: number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TypographicBounds; API declaration: width: number; DIfferences: width: number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: text; API declaration: type CaretOffsetsCallback = (offset: number, index: number, leadingEdge: boolean) => boolean; DIfferences: type CaretOffsetsCallback = (offset: number, index: number, leadingEdge: boolean) => boolean; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: createTruncatedLine(width: number, ellipsisMode: EllipsisMode, ellipsis: string): TextLine; DIfferences: createTruncatedLine(width: number, ellipsisMode: EllipsisMode, ellipsis: string): TextLine; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getTypographicBounds(): TypographicBounds; DIfferences: getTypographicBounds(): TypographicBounds; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getImageBounds(): common2D.Rect; DIfferences: getImageBounds(): common2D.Rect; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getTrailingSpaceWidth(): number; DIfferences: getTrailingSpaceWidth(): number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getStringIndexForPosition(point: common2D.Point): number; DIfferences: getStringIndexForPosition(point: common2D.Point): number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getOffsetForStringIndex(index: number): number; DIfferences: getOffsetForStringIndex(index: number): number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: enumerateCaretOffsets(callback: CaretOffsetsCallback): void; DIfferences: enumerateCaretOffsets(callback: CaretOffsetsCallback): void; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextLine; API declaration: getAlignmentOffset(alignmentFactor: number, alignmentWidth: number): number; DIfferences: getAlignmentOffset(alignmentFactor: number, alignmentWidth: number): number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Run; API declaration: getStringIndices(range?: Range): Array<number>; DIfferences: getStringIndices(range?: Range): Array<number>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Run; API declaration: getStringRange(): Range; DIfferences: getStringRange(): Range; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Run; API declaration: getTypographicBounds(): TypographicBounds; DIfferences: getTypographicBounds(): TypographicBounds; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: Run; API declaration: getImageBounds(): common2D.Rect; DIfferences: getImageBounds(): common2D.Rect; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: text; API declaration: function matchFontDescriptors(desc: FontDescriptor): Promise<Array<FontDescriptor>>; DIfferences: function matchFontDescriptors(desc: FontDescriptor): Promise<Array<FontDescriptor>>; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: text; API declaration: interface TextTab DIfferences: interface TextTab | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextTab; API declaration: alignment: TextAlign; DIfferences: alignment: TextAlign; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: TextTab; API declaration: location: number; DIfferences: location: number; | api/@ohos.graphics.text.d.ts |
| New API | NA | Class name: ColorSpace; API declaration: H_LOG = 26 DIfferences: H_LOG = 26 | api/@ohos.graphics.colorSpaceManager.d.ts |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apidiff-ArkGraphics3D
openharmony 鸿蒙 js-apidiff-MediaKit
openharmony 鸿蒙 js-apidiff-InputKit
openharmony 鸿蒙 js-apidiff-BasicServicesKit
openharmony 鸿蒙 js-apidiff-ConnectivityKit
openharmony 鸿蒙 js-apidiff-ArkWeb
openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit
openharmony 鸿蒙 js-apidiff-ArkData