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
This is because we're documenting the properties of the object like this:
* @param {String} str The text string to convert into a 3D model.
* @param {Number} x The x-coordinate for the starting position of the text.
* @param {Number} y The y-coordinate for the starting position of the text.
* @param {Number} width Maximum width of the text block (wraps text if exceeded).
* @param {Number} height Maximum height of the text block.
* @param {Object} [options] Configuration options for the 3D text:
* @param {Number} [options.extrude=0] The depth to extrude the text. A value of 0 produces
* flat text; higher values create thicker, 3D models.
* @param {Number} [options.sampleFactor=1] A factor controlling the level of detail for the text contours.
* Higher values result in smoother curves.
It looks like we're mistakenly parsing options.extrude and options.sampleFactor as separate parameters, and not properties of options.
This likely needs a change in utils/convert.js.
The text was updated successfully, but these errors were encountered:
Most appropriate sub-area of p5.js?
p5.js version
2.0.0
Web browser and version
Firefox
Operating system
MacOS
Steps to reproduce this
Steps:
If you run
npm run docs
and then checkdocs/parameterData.json
, if you search fortextToModel
, it currently has these parameters:This is because we're documenting the properties of the object like this:
It looks like we're mistakenly parsing
options.extrude
andoptions.sampleFactor
as separate parameters, and not properties ofoptions
.This likely needs a change in
utils/convert.js
.The text was updated successfully, but these errors were encountered: