This commit is contained in:
Logo 2024-10-11 06:04:06 +08:00 committed by GitHub
parent e42c6c5ee0
commit c8f87995a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 70 additions and 70 deletions

View file

@ -230,7 +230,7 @@ export function SetupBuilders(bindings) {
widths.heading = function (l, r, d) {
if (!isFinite(l)) throw new TypeError("NaN detected for left width");
if (!isFinite(r)) throw new TypeError("NaN detected for left width");
if (!isFinite(r)) throw new TypeError("NaN detected for right width");
if (!isFinite(d.x) || !isFinite(d.y))
throw new TypeError("NaN detected for heading directions");
return new AfWidthsHeading(l, r, d);