修复注释错误
This commit is contained in:
parent
c558e758d7
commit
0e7a71f44d
@ -23053,7 +23053,7 @@ function GetMaxHeightFn(rects) {
|
||||
*
|
||||
* //除了变量 也可以设置过滤函数
|
||||
* //例如:
|
||||
* lir.FilterRectFn = !(w,h)=> (w>500 || h>500) //这样将对长或者宽不足500的矩形板过滤(舍弃)
|
||||
* lir.FilterRectFn = (w,h)=> !(w>500 || h>500) //这样将对长或者宽不足500的矩形板过滤(舍弃)
|
||||
*
|
||||
* //2. 可以设置优先模式,默认提供了面积优先,你也可以使用宽度优先或者高度优先,或许默认规则可能不好用,可以自定义传入自定义函数.
|
||||
* lir.GetMaxRectIndexFn = LargestInteriorRectangle.GetMaxAreaFn; //或者 LargestInteriorRectangle.GetMaxWidthFn / LargestInteriorRectangle.GetMaxHeightFn
|
||||
@ -23247,7 +23247,7 @@ class LargestInteriorRectangle {
|
||||
}
|
||||
}
|
||||
while (rects.length) {
|
||||
let maxIndex = Max(rects, (t1, t2) => t2[0] > t1[0]);
|
||||
let maxIndex = this.GetMaxRectIndexFn(rects);
|
||||
let [area, maxXIndex, maxYIndex, xCount, yCount] = rects[maxIndex];
|
||||
let xMax = xs[maxXIndex];
|
||||
let yMax = ys[maxYIndex + 1];
|
||||
|
File diff suppressed because one or more lines are too long
@ -23044,7 +23044,7 @@ function GetMaxHeightFn(rects) {
|
||||
*
|
||||
* //除了变量 也可以设置过滤函数
|
||||
* //例如:
|
||||
* lir.FilterRectFn = !(w,h)=> (w>500 || h>500) //这样将对长或者宽不足500的矩形板过滤(舍弃)
|
||||
* lir.FilterRectFn = (w,h)=> !(w>500 || h>500) //这样将对长或者宽不足500的矩形板过滤(舍弃)
|
||||
*
|
||||
* //2. 可以设置优先模式,默认提供了面积优先,你也可以使用宽度优先或者高度优先,或许默认规则可能不好用,可以自定义传入自定义函数.
|
||||
* lir.GetMaxRectIndexFn = LargestInteriorRectangle.GetMaxAreaFn; //或者 LargestInteriorRectangle.GetMaxWidthFn / LargestInteriorRectangle.GetMaxHeightFn
|
||||
@ -23238,7 +23238,7 @@ class LargestInteriorRectangle {
|
||||
}
|
||||
}
|
||||
while (rects.length) {
|
||||
let maxIndex = Max(rects, (t1, t2) => t2[0] > t1[0]);
|
||||
let maxIndex = this.GetMaxRectIndexFn(rects);
|
||||
let [area, maxXIndex, maxYIndex, xCount, yCount] = rects[maxIndex];
|
||||
let xMax = xs[maxXIndex];
|
||||
let yMax = ys[maxYIndex + 1];
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user