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
All method overloads are typed and include a short TSDoc comment, these are not included correctly in the compiled bundle and therefore don't show up when hovering over them in VS Code.
It works ok when the method is directly set
/** * Generates and return an array containing axis label objects. Each axis label object contains the following properties. * - `position`: an array of [x,y] coords * - `labelAngle`: the rotation of the axis label * - `label`: The axis label * * Takes an optional configuration object that specifies whether axis labels should be placed at the center of the axis, the default is `false`. */ternaryPlot.axisLabels=function({ center =false}={}){
When there are multiple function overloads and the function is defined before and then set as a method later like this
/** * Returns the current domains, which defaults to `[[0, 1], [0, 1], [0, 1]]`. */functiondomainsFunc(): Domains;/** * Sets the domains of the ternary plot to the specified domains in order `[A, B, C]` and checks if the supplied domains are reversed. * If this is the case, [`reverseVertices()`](#ternaryPlotReverseVertices) is called. The scale and translation offset associated with * the domains are [applied](#ternaryPlotTransformDoc) to correctly scale and translate the plot. At last it returns the ternaryPlot. */functiondomainsFunc(domains: Domains): TernaryPlot;functiondomainsFunc(domains?: Domains){// function body}ternaryPlot.domains=domainsFunc;
the overloads are not included in the compiled file. Anyone with deeper knowledge of TypeScript and TSDoc is welcome to help.
The text was updated successfully, but these errors were encountered:
All method overloads are typed and include a short TSDoc comment, these are not included correctly in the compiled bundle and therefore don't show up when hovering over them in VS Code.
It works ok when the method is directly set
When there are multiple function overloads and the function is defined before and then set as a method later like this
the overloads are not included in the compiled file. Anyone with deeper knowledge of TypeScript and TSDoc is welcome to help.
The text was updated successfully, but these errors were encountered: