minitel-standalone
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -146,2 +146,9 @@ import { EventEmitter } from 'node:events'; | ||
const scrollablePos = this.minitel.mapLocationWrapper({}, {}, pathToScrollable, 0); | ||
// DEAR FUTURE ME, | ||
// IS YOUR SCROLLINTOVIEW BUGGED AFTER ADDING PADDING TO INHERITANCE? | ||
// WELL MAYBE IF YOUR RETARDED ASS DID NOT DO THAT IT WOULD NOT BREAK | ||
// - Love, Juliet | ||
const scrollableFullPad = padding.normalise(context.attributes.pad || 0); | ||
scrollablePos.y -= scrollableFullPad[0]; | ||
scrollablePos.x -= scrollableFullPad[3]; | ||
const [relY, relX] = [thisPos.y - scrollablePos.y, thisPos.x - scrollablePos.x]; | ||
@@ -148,0 +155,0 @@ if (relY < 0) { |
@@ -181,5 +181,6 @@ import { RichChar } from '../richchar.js'; | ||
} | ||
const location = nextNode.mapLocationWrapper(inheritMe, renderAttributes, nodes, weAt); | ||
const location = nextNode.mapLocationWrapper(inheritMe, { width: renderAttributes.width, height: renderAttributes.height }, nodes, weAt); | ||
location.x -= this.scrollDelta[1]; | ||
location.y -= this.scrollDelta[0]; | ||
console.log(location); | ||
return location; | ||
@@ -186,0 +187,0 @@ } |
{ | ||
"name": "minitel-standalone", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A standalone package for minitel components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -214,2 +214,11 @@ import { EventEmitter } from 'node:events'; | ||
// DEAR FUTURE ME, | ||
// IS YOUR SCROLLINTOVIEW BUGGED AFTER ADDING PADDING TO INHERITANCE? | ||
// WELL MAYBE IF YOUR RETARDED ASS DID NOT DO THAT IT WOULD NOT BREAK | ||
// - Love, Juliet | ||
const scrollableFullPad = padding.normalise(context.attributes.pad || 0); | ||
scrollablePos.y -= scrollableFullPad[0]; | ||
scrollablePos.x -= scrollableFullPad[3]; | ||
const [relY, relX] = [thisPos.y - scrollablePos.y, thisPos.x - scrollablePos.x]; | ||
@@ -216,0 +225,0 @@ |
@@ -222,6 +222,7 @@ import { Focusable } from '../abstract/focusable.js'; | ||
const location = nextNode.mapLocationWrapper(inheritMe, renderAttributes, nodes, weAt); | ||
const location = nextNode.mapLocationWrapper(inheritMe, { width: renderAttributes.width, height: renderAttributes.height }, nodes, weAt); | ||
location.x -= this.scrollDelta[1]; | ||
location.y -= this.scrollDelta[0]; | ||
console.log(location); | ||
return location; | ||
@@ -228,0 +229,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265549
5584