In the first section of this function, you set up objects needed to create the report, like the width and height of the canvas, as well as padding variables.
在这个函数的第一部分中,您设置了创建报告需要的对象,比如画布的宽度和高度以及填充变量。
This internal function takes the WKT representation of a geometry as input -- not the geometry itself -- along with the color and line width for the respective SVG attributes.
这个内部函数以一个几何图形的 WKT 表示(而不是几何图形本身)以及作为 SVG 属性的颜色和线宽为输入。
And then, for each little piece, you take the value of a function, and you multiply by the width of a piece.
对每个小段,用函数的值,与那一小段的长度相乘。
应用推荐