You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please specify what version of the library you are using: [ 3.5.0 ]
Expected / Desired Behavior / Question
I need to add a radius to a rectangle shape when using the addText() method.
It should work as shown in the example provided from the documentation below
Argument of type '{ shape: PptxGenJS.ShapeType.rect; color: string; fontSize: Fonts; x: number; y: number; h: number; w: number; r: number; }' is not assignable to parameter of type 'TextPropsOptions'.
I tried all proposed rectangle shapes but none would work in my case if I need a custom radius.
Could you please check what is wrong here ?
Thanks
The text was updated successfully, but these errors were encountered:
Thanks @ln56b - the r prop should have been removed a while back and the rectRadius prop was not proerly defined in index.d.ts, plus its docs were not correct (the values are 0.0 to 1.0)
Category
Version
Please specify what version of the library you are using: [ 3.5.0 ]
Expected / Desired Behavior / Question
I need to add a radius to a rectangle shape when using the
addText()
method.It should work as shown in the example provided from the documentation below
Observed Behavior
I am coding in TypeScript and cannot access the
r:
norrectRadius:
arguments.I am using the method as below :
And I receive the error
I tried all proposed rectangle shapes but none would work in my case if I need a custom radius.
Could you please check what is wrong here ?
Thanks
The text was updated successfully, but these errors were encountered: