Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
10af202
Use snake_case helpers for manual category flows
cornhundred Nov 15, 2025
bd622cd
Improve manual categories and enrichment linking
cornhundred Nov 15, 2025
bbbc2a4
Stabilize manual categories and breakdown UI
cornhundred Nov 15, 2025
1efb9cc
Ensure manual categories persist and refresh breakdown
cornhundred Nov 15, 2025
5b06149
Improve manual categories and enrichment UI
cornhundred Nov 16, 2025
e27136a
Seed manual categories and disable cat animations
cornhundred Nov 16, 2025
7cc0a45
Ensure manual category payload refreshes layers
cornhundred Nov 16, 2025
0fc58c7
Fix manual category payload application
cornhundred Nov 16, 2025
a593769
chatgpt fix
cornhundred Nov 16, 2025
58fabe0
indexing fix
cornhundred Nov 16, 2025
92a03b5
Refactor manual categories into obs store
cornhundred Nov 16, 2025
2e7399b
Fix manual traitlet sync
cornhundred Nov 16, 2025
4425c21
Fix manual traitlet syncing
cornhundred Nov 16, 2025
f74aa75
front-end and syncing might be working
cornhundred Nov 17, 2025
ab9df22
working on back-end syncing
cornhundred Nov 17, 2025
debea5f
revert cat_layers.js
cornhundred Nov 17, 2025
4e9d40e
revert cat_data.js
cornhundred Nov 17, 2025
d4a6cc6
reverted notebook
cornhundred Nov 17, 2025
7622e7d
debug
cornhundred Nov 17, 2025
fc6c11f
before simplification
cornhundred Nov 17, 2025
4a62576
simplified sync
cornhundred Nov 17, 2025
b390716
debugging
cornhundred Nov 17, 2025
2ebaf22
debug
cornhundred Nov 17, 2025
eb18a4d
debug - simplify syncing
cornhundred Nov 17, 2025
dab812d
one way sync
cornhundred Nov 17, 2025
4e1b4e1
update
cornhundred Nov 17, 2025
a948bea
debugging traitlets
cornhundred Nov 17, 2025
880d62f
removing category breakdown code for now
cornhundred Nov 17, 2025
6b80b4b
hacking away
cornhundred Nov 17, 2025
2e69c31
debugging
cornhundred Nov 17, 2025
edf55d1
reverted notebook
cornhundred Nov 17, 2025
a9b59cb
removing dataframe traitlet
cornhundred Nov 17, 2025
78f5262
debigging python - starting to work
cornhundred Nov 17, 2025
a195c84
syncing to dataframe working
cornhundred Nov 18, 2025
edd5355
cleaning
cornhundred Nov 18, 2025
96abcd8
cleaning
cornhundred Nov 18, 2025
25a3dc6
cleaning
cornhundred Nov 18, 2025
0d09744
cleaning attr_state.js
cornhundred Nov 18, 2025
dfe371a
removed editable_defs
cornhundred Nov 18, 2025
f225ed3
ruff format
cornhundred Nov 18, 2025
fe8e6d3
ruff formatting
cornhundred Nov 18, 2025
367dac6
reformat
cornhundred Nov 18, 2025
0e3154f
simplified manual_category_store.js
cornhundred Nov 18, 2025
6042483
cleaning and linting
cornhundred Nov 18, 2025
3505118
removed preferred
cornhundred Nov 18, 2025
6a9d9d8
js format;
cornhundred Nov 18, 2025
ae43ed7
format js
cornhundred Nov 18, 2025
00f1ca2
enrich_widget
cornhundred Nov 18, 2025
e3903eb
clean viz init
cornhundred Nov 18, 2025
c861a63
cleaning
cornhundred Nov 18, 2025
e961456
ruff check fix
cornhundred Nov 18, 2025
91c7704
enrich_widget.js
cornhundred Nov 18, 2025
137b883
Update js/matrix/attr_state.js
cornhundred Nov 18, 2025
e1c5e76
0.15.0a1 manual cat
cornhundred Nov 18, 2025
13a35a3
Show manual categories in axis labels (#257)
cornhundred Nov 19, 2025
2d48728
Merge branch 'codex/refactor-manual-categories-to-use-obs_store' of g…
cornhundred Nov 19, 2025
4333e43
0.15.0a2 manual cat display name
cornhundred Nov 19, 2025
6842596
added combined widget.js
cornhundred Nov 19, 2025
95e06c7
Add overlays and controls to yearbook widget
cornhundred Nov 22, 2025
661f76b
Improve yearbook portraits and controls
cornhundred Nov 22, 2025
f18ec31
Refine yearbook bars and transcript styling
cornhundred Nov 22, 2025
a6ce5f3
Fix yearbook overlay colors and toggles
cornhundred Nov 22, 2025
6f15e17
Fix yearbook transcript rendering and colors
cornhundred Nov 22, 2025
d5c7ab5
Fix yearbook transcript initialization
cornhundred Nov 23, 2025
54741f5
Initialize yearbook gene and cluster state
cornhundred Nov 23, 2025
a27b5a7
Fix yearbook transcript naming and data source
cornhundred Nov 23, 2025
5e7dd47
Simplify yearbook controls
cornhundred Nov 25, 2025
1fdad6b
Add synced zoom and per-portrait imagery to Yearbook
cornhundred Nov 25, 2025
6513a1d
Refine yearbook zoom and viewport data
cornhundred Nov 25, 2025
e956b99
merged in changes from main
cornhundred Nov 26, 2025
728b2e3
bug fix for ini_trx_layer
cornhundred Nov 26, 2025
53b1ebc
Improve yearbook image tile loading and layout spacing (#266)
cornhundred Nov 26, 2025
31114ab
reverted to previous trx_layer.js will filter later
cornhundred Nov 26, 2025
0cffbb8
removed console
cornhundred Nov 26, 2025
95b041c
ruff format
cornhundred Nov 26, 2025
f918e02
ruff format
cornhundred Nov 26, 2025
2069ae4
cleaned calc_viewport
cornhundred Nov 26, 2025
9897d30
js lint
cornhundred Nov 26, 2025
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
192 changes: 96 additions & 96 deletions docs/assets/js/widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/deck-gl/core/calc_viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const calc_viewport = async (
tile_size
);

if (tiles_in_view.length < viz_state.max_tiles_to_view) {
if (tiles_in_view.length <= viz_state.max_tiles_to_view) {
viz_state.obs_store.deck_check.set({
...viz_state.obs_store.deck_check.get(),
trx_data: false,
Expand Down
17 changes: 13 additions & 4 deletions js/deck-gl/core/deck_ist.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ const getCursor = ({ isDragging }) => {
return 'pointer';
};

export const ini_deck = (root, width, height, technology = '') => {
const controller = { doubleClickZoom: false };
if (technology === 'point-cloud') {
controller.type = OrbitController;
export const ini_deck = (
root,
width,
height,
technology = '',
controllerOverrides = null
) => {
let controller = controllerOverrides;
if (controller === null || controller === undefined) {
controller = { doubleClickZoom: false };
if (technology === 'point-cloud') {
controller.type = OrbitController;
}
}

const deck_ist = new Deck({
Expand Down
106 changes: 106 additions & 0 deletions js/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,109 @@
.celldega-counter-button:hover {
transform: scale(1.05);
}

.celldega-yearbook-controls {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 8px;
}

.celldega-yearbook-mode-buttons {
display: flex;
gap: 6px;
}

.celldega-yearbook-button {
background: transparent;
border: 1px solid #8797ff;
color: #3366cc;
border-radius: 6px;
cursor: pointer;
padding: 4px 8px;
transition: background 0.15s ease;
}

.celldega-yearbook-button:hover {
background: #eef2ff;
}

.celldega-yearbook-controls select,
.celldega-yearbook-controls button {
padding: 4px 8px;
font-size: 0.9em;
}

.celldega-yearbook-slider-row {
display: flex;
gap: 8px;
align-items: center;
padding: 2px 6px;
background: #f7f8fb;
border-radius: 6px;
}

.celldega-yearbook-slider-row input[type='range'] {
accent-color: #3366cc;
}

.celldega-yearbook-slider-value {
font-weight: 600;
color: #3366cc;
}

.celldega-yearbook-toggle-row {
display: flex;
gap: 8px;
align-items: center;
}

.celldega-yearbook-toggle {
display: inline-flex;
gap: 4px;
align-items: center;
font-size: 0.9em;
}

.celldega-yearbook-bars {
display: flex;
gap: 8px;
width: 100%;
}

.celldega-yearbook-bar {
flex: 1;
min-width: 160px;
border: 1px solid #e0e0e0;
border-radius: 6px;
padding: 6px;
background: #fafbff;
}

.celldega-yearbook-bar-row {
display: flex;
gap: 6px;
align-items: center;
margin-bottom: 4px;
}

.celldega-yearbook-bar-row span {
width: 60px;
font-size: 0.8em;
color: #444;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.celldega-yearbook-bar-fill {
height: 10px;
border-radius: 4px;
background: #8797ff;
}

.celldega-yearbook-grid {
border: 1px solid #d3d3d3;
width: 100%;
}
4 changes: 4 additions & 0 deletions js/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { landscape_ist } from './viz/landscape_ist';
import { landscape_sst } from './viz/landscape_sst';
import { matrix_viz } from './viz/matrix_viz';
import { render_enrich } from './widgets/enrich_widget';
import { render_yearbook } from './widgets/yearbook';

// Remove export keywords from render functions
const render_landscape_ist = async ({ model, el }) => {
Expand Down Expand Up @@ -210,6 +211,9 @@ async function render({ model, el }) {
case 'Enrich':
cleanup = await render_enrich({ model, el });
break;
case 'Yearbook':
cleanup = await render_yearbook({ model, el });
break;
default:
handleValidationWarning(`Unknown component type: ${componentType}`, {
data: { componentType, model: model?.id || 'unknown' },
Expand Down
Loading
Loading