Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flatData to debug menu #180

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
===

# 8.1.1

> 2024-03-12

Following up on 8.0.3, adds `flatData` to the debug printout.

# 8.1.0

> 2024-03-11
Expand Down
1 change: 1 addition & 0 deletions src/lib/LayerCake.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@
// Call this as a debounce so that it doesn't get called multiple times as these vars get filled in
printDebug_debounced({
data: $_data,
flatData: typeof flatData !== 'undefined' ? $_flatData : null,
boundingBox: $box_d,
activeGetters: $activeGetters_d,
x: config.x,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/helpers/printDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export default function printDebug(obj) {
printObject(obj.boundingBox);
console.log('Data:');
console.log(indent, obj.data);
console.log('flatData:');
console.log(indent, obj.flatData);
console.log('Scales:\n');
Object.keys(obj.activeGetters).forEach(g => {
printScale(g, obj[`${g}Scale`], obj[g]);
Expand Down
Loading