diff --git a/src/lib/utils/jsx.elements.ts b/src/lib/utils/jsx.elements.ts index bf91cb55d..f858080e7 100644 --- a/src/lib/utils/jsx.elements.ts +++ b/src/lib/utils/jsx.elements.ts @@ -115,8 +115,13 @@ export interface IntrinsicElements { // SVG Elements svg: JsxSvgElementProps; + g: JsxGElementProps; path: JsxPathElementProps; rect: JsxRectElementProps; + circle: JsxCircleElementProps; + ellipse: JsxEllipseElementProps; + polygon: JsxPolygonElementProps; + polyline: JsxPolylineElementProps; use: JsxUseElementProps; } @@ -1027,6 +1032,17 @@ export interface JsxSvgElementProps y?: string | number; } +/** + * Properties permitted on the `` element. + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g + */ +export interface JsxGElementProps + extends JsxSvgCoreProps, + JsxSvgStyleProps, + JsxSvgConditionalProcessingProps, + JsxSvgPresentationProps {} + /** * Properties permitted on the `` element. * @@ -1060,6 +1076,66 @@ export interface JsxRectElementProps y?: string | number; } +/** + * Properties permitted on the `` element. + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle + */ +export interface JsxCircleElementProps + extends JsxSvgCoreProps, + JsxSvgStyleProps, + JsxSvgConditionalProcessingProps, + JsxSvgPresentationProps { + cx?: string | number; + cy?: string | number; + r?: string | number; + pathLength?: number; +} + +/** + * Properties permitted on the `` element. + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse + */ +export interface JsxEllipseElementProps + extends JsxSvgCoreProps, + JsxSvgStyleProps, + JsxSvgConditionalProcessingProps, + JsxSvgPresentationProps { + cx?: string | number; + cy?: string | number; + rx?: string | number; + ry?: string | number; + pathLength?: number; +} + +/** + * Properties permitted on the `` element. + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon + */ +export interface JsxPolygonElementProps + extends JsxSvgCoreProps, + JsxSvgStyleProps, + JsxSvgConditionalProcessingProps, + JsxSvgPresentationProps { + points?: string; + pathLength?: number; +} + +/** Properties permitted on the `` element. + * + * Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline + */ +export interface JsxPolylineElementProps + extends JsxSvgCoreProps, + JsxSvgStyleProps, + JsxSvgConditionalProcessingProps, + JsxSvgPresentationProps { + points?: string; + pathLength?: number; +} + /** * Properties permitted on the `` element. * diff --git a/src/test/renderer/testProject/src/classes.ts b/src/test/renderer/testProject/src/classes.ts index 1934cc95f..f3bbbfb08 100644 --- a/src/test/renderer/testProject/src/classes.ts +++ b/src/test/renderer/testProject/src/classes.ts @@ -216,7 +216,7 @@ export class SubClassA extends BaseClass implements PrintNameInterface { public print(value: string): void {} /** - * @inheritdoc + * @inheritDoc */ public printName(): void { this.print(this.getName());