Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cannoneyed/isometric-nyc
/ functions
Functions
1,260 in github.com/cannoneyed/isometric-nyc
⨍
Functions
1,260
◇
Types & classes
113
↳
Endpoints
54
↓ 124 callers
Method
save
Save plan to JSON file.
src/isometric_nyc/generation/automatic_generation.py:194
↓ 96 callers
Method
get_index
(self, id: str)
src/isometric_nyc/tile_generation/shared.py:31
↓ 82 callers
Function
showToast
(type, title, message, duration = 5000)
src/isometric_nyc/generation/static/viewer.js:1435
↓ 50 callers
Function
create_rectangle_plan
Create a generation plan for filling a rectangle. Args: bounds: The rectangle bounds (top-left to bottom-right inclusive) generated:
src/isometric_nyc/generation/make_rectangle_plan.py:590
↓ 49 callers
Method
load
Load plan from JSON file.
src/isometric_nyc/generation/automatic_generation.py:201
↓ 45 callers
Method
add_image_contents
(self, *, id: str, path: str, description: str)
src/isometric_nyc/tile_generation/shared.py:22
↓ 36 callers
Function
fetch
(request: Request, env: Env)
src/app/worker/src/index.ts:31
↓ 36 callers
Function
validate_plan
Validate that a plan covers all required quadrants exactly once. Returns (is_valid, error_messages).
src/isometric_nyc/generation/make_rectangle_plan.py:671
↓ 25 callers
Function
png_bytes_to_image
Convert PNG bytes to a PIL Image.
src/isometric_nyc/generation/shared.py:690
↓ 24 callers
Function
get_generation_config
Get the generation config from the metadata table.
src/isometric_nyc/generation/shared.py:251
↓ 22 callers
Function
get_db_connection
Get a connection to the quadrants database.
src/isometric_nyc/generation/app.py:159
↓ 21 callers
Function
get_quadrant_generation
Get the generation bytes for a quadrant at position (x, y).
src/isometric_nyc/generation/shared.py:304
↓ 20 callers
Method
_has_generated_context
Check if there are generated pixels adjacent to the infill region on the given side.
src/isometric_nyc/generation/infill_template.py:563
↓ 18 callers
Function
create_depth_3_plus_plan
Create a plan for a depth-3+ strip. For depth 3: 1. Generate 2x2 quadrants away from edge with gaps 2. Generate 1x2 bridges between 2x2 quad
src/isometric_nyc/generation/make_strip_plan.py:417
↓ 18 callers
Method
is_generated
Check if a quadrant has been generated.
src/isometric_nyc/generation/automatic_generation.py:259
↓ 16 callers
Method
contains
Check if a point is within the rectangle bounds.
src/isometric_nyc/generation/make_rectangle_plan.py:76
↓ 15 callers
Method
set_selected
Mark multiple positions as selected for generation.
src/isometric_nyc/generation/generate_template_test.py:415
↓ 15 callers
Function
start_web_server
Start the Vite dev server and wait for it to be ready. Args: web_dir: Directory containing the web app port: Port to run on Returns:
src/isometric_nyc/generation/shared.py:71
↓ 14 callers
Function
image_to_png_bytes
Convert a PIL Image to PNG bytes.
src/isometric_nyc/generation/shared.py:683
↓ 14 callers
Method
set_generated
Mark multiple positions as generated.
src/isometric_nyc/generation/generate_template_test.py:410
↓ 13 callers
Function
ensure_quadrant_exists
Ensure a quadrant exists at position (x, y), creating it if necessary. Returns the quadrant data.
src/isometric_nyc/generation/shared.py:465
↓ 12 callers
Function
clearLoadingToasts
()
src/isometric_nyc/generation/static/viewer.js:1469
↓ 12 callers
Function
create_depth_1_plan
Create a plan for a depth-1 strip. Algorithm: 1. Generate 2x1 quadrants (2 wide in direction of progress) with 1 gap 2. Fill in the single-q
src/isometric_nyc/generation/make_strip_plan.py:284
↓ 11 callers
Function
can_place_2x2
Check if a 2x2 tile can be placed at the given top-left position. Rules: - All 4 quadrants must be within bounds - All 4 quadrants must not
src/isometric_nyc/generation/make_rectangle_plan.py:170
↓ 11 callers
Method
overlapping_quadrants
Get list of quadrant (qx, qy) positions that overlap with this region.
src/isometric_nyc/generation/infill_template.py:121
↓ 11 callers
Function
update_status
(status: str, message: str = "")
src/isometric_nyc/generation/generate_omni.py:678
↓ 11 callers
Function
update_status
(status: str, message: str = "")
src/isometric_nyc/generation/generate_tile_nano_banana.py:922
↓ 10 callers
Method
all_points
Return all points within the rectangle bounds.
src/isometric_nyc/generation/make_rectangle_plan.py:83
↓ 10 callers
Method
contains
(self, p: Point)
src/isometric_nyc/generation/automatic_generation.py:107
↓ 9 callers
Function
can_place_2x1_horizontal
Check if a horizontal 2x1 tile can be placed at (left.x, left.y) and (left.x+1, left.y). Rules (following task 019 strip plan): - Both quadran
src/isometric_nyc/generation/make_rectangle_plan.py:289
↓ 9 callers
Method
from_quadrants
Create an infill region covering multiple quadrants. The quadrants must form a contiguous rectangle.
src/isometric_nyc/generation/infill_template.py:75
↓ 9 callers
Method
from_string
Parse bounds from string format: 'min_x,min_y,max_x,max_y'.
src/isometric_nyc/generation/init_layer.py:49
↓ 9 callers
Function
get_generation
(x: int, y: int)
src/isometric_nyc/generation/generate_template_test.py:1394
↓ 9 callers
Method
get_index
(self, id: str)
src/notebooks/tile.py:90
↓ 9 callers
Method
get_index
(self, id: str)
src/notebooks/few-shot-checks.py:89
↓ 9 callers
Function
get_quadrant_render
Get the render bytes for a quadrant at position (x, y).
src/isometric_nyc/generation/shared.py:293
↓ 9 callers
Method
get_selected_positions
Get all positions marked as selected.
src/isometric_nyc/generation/generate_template_test.py:420
↓ 9 callers
Function
load_bounds
Load a GeoJSON bounds file. Args: path: Path to the bounds file. If None, loads the default NYC boundary. Returns: GeoJ
src/isometric_nyc/generation/bounds.py:17
↓ 9 callers
Function
run_command
Run a shell command and handle errors.
src/app/deploy.py:41
↓ 9 callers
Function
saveSelectedTool
(toolName)
src/isometric_nyc/generation/static/viewer.js:30
↓ 8 callers
Function
can_place_1x2_vertical
Check if a vertical 1x2 tile can be placed at (top.x, top.y) and (top.x, top.y+1). Rules (following task 019 strip plan): - Both quadrants mus
src/isometric_nyc/generation/make_rectangle_plan.py:339
↓ 8 callers
Function
saveSelectedQuadrants
()
src/isometric_nyc/generation/static/viewer.js:48
↓ 8 callers
Function
updateSelectionStatus
(serverStatus = null)
src/isometric_nyc/generation/static/viewer.js:1229
↓ 8 callers
Function
validate_quadrant_selection
Validate a quadrant selection and find optimal placement. This is a convenience function for the common case of selecting whole quadrants for
src/isometric_nyc/generation/infill_template.py:915
↓ 7 callers
Function
build_tile_render_url
Build the URL for rendering a tile at the given coordinates. Args: port: Web server port lat: Latitude of the tile center lng:
src/isometric_nyc/generation/shared.py:206
↓ 7 callers
Function
get_db_config
()
src/isometric_nyc/citydb/db.py:6
↓ 7 callers
Method
is_valid_size
Check if the region is within the allowed size (≤50% or exactly 100% of template).
src/isometric_nyc/generation/infill_template.py:111
↓ 7 callers
Method
mark_generated
Mark a quadrant as generated.
src/isometric_nyc/generation/automatic_generation.py:263
↓ 7 callers
Method
mark_multiple_generated
Mark multiple quadrants as generated.
src/isometric_nyc/generation/automatic_generation.py:267
↓ 7 callers
Function
save_quadrant_generation
Save generation bytes for a quadrant at position (x, y). Creates the quadrant if it doesn't exist. Returns True if successful.
src/isometric_nyc/generation/shared.py:389
↓ 7 callers
Function
split_tile_into_quadrants
Split a tile image into 4 quadrant images. Returns a dict mapping (dx, dy) offset to the quadrant image: (0, 0) = top-left (1, 0) = top-
src/isometric_nyc/generation/shared.py:695
↓ 7 callers
Function
stitch_quadrants_to_tile
Stitch 4 quadrant images into a single tile image. Args: quadrants: Dict mapping (dx, dy) offset to the quadrant image: (0, 0) = top-l
src/isometric_nyc/generation/shared.py:721
↓ 7 callers
Function
update_generation_state
Update the global generation state.
src/isometric_nyc/generation/view_generations.py:201
↓ 6 callers
Function
create_depth_2_plan
Create a plan for a depth-2 strip. Apply the depth-1 algorithm twice, once for each row/column. Start with the row/column closest to the gener
src/isometric_nyc/generation/make_strip_plan.py:368
↓ 6 callers
Function
find_generation_edge
Find the generation edge of the strip. The generation edge is the edge of the strip rectangle where ALL exterior neighboring quadrants are gen
src/isometric_nyc/generation/make_strip_plan.py:183
↓ 6 callers
Function
getModelDisplayName
(modelId)
src/isometric_nyc/generation/static/viewer.js:222
↓ 6 callers
Method
get_state
Get the state of a quadrant at position (x, y).
src/isometric_nyc/generation/generate_template_test.py:399
↓ 6 callers
Function
has_valid_2x2_context
Check if the given quadrants have valid 2x2 context for generation. For a generation to succeed, there must exist at least one 2x2 block where
src/isometric_nyc/generation/make_rectangle_plan.py:486
↓ 6 callers
Function
hex_to_rgb
Convert a hex color string to an RGB tuple. Args: hex_color: Hex color string (e.g., "#4B697D" or "4B697D") Returns: Tuple of (R,
src/isometric_nyc/generation/replace_color.py:43
↓ 6 callers
Function
run_generation_for_quadrants
Run the full generation pipeline for selected quadrants. This is the main entry point for generation. It: 1. Validates the quadrant selection
src/isometric_nyc/generation/generate_omni.py:623
↓ 6 callers
Function
save_quadrant_render
Save render bytes for a quadrant at position (x, y). Creates the quadrant if it doesn't exist. Returns True if successful.
src/isometric_nyc/generation/shared.py:364
↓ 6 callers
Method
to_tuple
Convert to a tuple.
src/isometric_nyc/generation/make_rectangle_plan.py:49
↓ 6 callers
Function
toggleSelectTool
()
src/isometric_nyc/generation/static/viewer.js:699
↓ 6 callers
Function
updateParam
( key: K, value: ShaderParams[K], )
src/layers/water_shader/app/src/components/ControlPanel.tsx:125
↓ 5 callers
Method
add_image_contents
(self, *, id: str, path: str, description: str)
src/notebooks/tile.py:83
↓ 5 callers
Method
add_image_contents
(self, *, id: str, path: str, description: str)
src/notebooks/few-shot-checks.py:82
↓ 5 callers
Function
cancelWaterFix
()
src/isometric_nyc/generation/static/viewer.js:791
↓ 5 callers
Function
checkGenerationStatus
()
src/isometric_nyc/generation/static/viewer.js:2887
↓ 5 callers
Function
create_strip_plan
Create a generation plan for the strip. The algorithm varies based on the depth of the strip: - Depth 1: 2x1 quadrants with 1 gap, then fill g
src/isometric_nyc/generation/make_strip_plan.py:254
↓ 5 callers
Function
create_template_image
Create a template image for infill generation. The template is a 2x2 quadrant (tile-sized) image where: - Selected quadrants are filled with r
src/isometric_nyc/generation/generate_template_test.py:732
↓ 5 callers
Function
ensure_is_reference_column_exists
Ensure the is_reference column exists in the quadrants table (migration).
src/isometric_nyc/generation/app.py:203
↓ 5 callers
Method
find_optimal_placement
Find the optimal placement for the infill region within the template. Args: allow_expansion: If True, automatically expand infill regi
src/isometric_nyc/generation/infill_template.py:241
↓ 5 callers
Method
from_row
Create a QueueItem from a database row.
src/isometric_nyc/generation/queue_db.py:47
↓ 5 callers
Function
getParams
()
src/isometric_nyc/generation/static/viewer.js:458
↓ 5 callers
Function
get_2x2_quadrants
Get the 4 quadrants of a 2x2 tile given its top-left corner.
src/isometric_nyc/generation/make_rectangle_plan.py:132
↓ 5 callers
Function
get_db_connection
Get a connection to the quadrants database.
src/isometric_nyc/generation/view_generations.py:82
↓ 5 callers
Function
get_exterior_neighbors
Get all exterior neighboring points along an edge.
src/isometric_nyc/generation/make_strip_plan.py:225
↓ 5 callers
Method
has_generation
Check if a quadrant has the appropriate generation data. For dark mode models: checks dark_mode column For regular models: checks genera
src/isometric_nyc/generation/shared.py:876
↓ 5 callers
Function
image_to_bytes
Convert a PIL Image to PNG or WebP bytes.
src/isometric_nyc/generation/export_pmtiles.py:565
↓ 5 callers
Function
is_edge_fully_generated
Check if all exterior neighbors along an edge are generated.
src/isometric_nyc/generation/make_strip_plan.py:217
↓ 5 callers
Function
parse_quadrant_list
Parse a list of quadrant coordinates. Supports formats: - "(0,0),(1,0),(0,1)" - "(0,0) (1,0) (0,1)" - "0,0 1,0 0,1" Args: quadrants
src/isometric_nyc/generation/generate_tile_nano_banana.py:271
↓ 5 callers
Function
render_url_to_image
Render a URL to a PIL Image using Playwright. This is a convenience wrapper around render_url_to_bytes. Args: url: The URL to render
src/isometric_nyc/generation/shared.py:180
↓ 5 callers
Method
start
Start the web server and render worker thread.
src/isometric_nyc/generation/web_renderer.py:70
↓ 5 callers
Method
to_dict
Convert to dictionary for JSON serialization.
src/isometric_nyc/generation/queue_db.py:76
↓ 5 callers
Function
update_generation_state
Update the global generation state.
src/isometric_nyc/generation/app.py:511
↓ 4 callers
Function
all_quadrants_exist
Check if all quadrants in a block exist in the source.
src/isometric_nyc/generation/init_layer.py:194
↓ 4 callers
Method
build
Build the template image. Args: border_width: Width of the red border around the infill region allow_expansion: If True, automat
src/isometric_nyc/generation/infill_template.py:726
↓ 4 callers
Function
calculate_offset
Calculate the new lat/lon center after shifting the view by shift_x_px and shift_y_px.
src/isometric_nyc/generation/shared.py:534
↓ 4 callers
Function
calculate_quadrant_corners
Calculate the 4 geographic corners of a quadrant. The isometric projection means the quadrant appears as a parallelogram in geographic space.
src/isometric_nyc/generation/debug_map.py:108
↓ 4 callers
Function
can_generate_2x2
Check if a 2x2 tile starting at top_left can be generated. A 2x2 tile can be generated if: - All 4 quadrants are empty (not already generated)
src/isometric_nyc/generation/automatic_generation.py:745
↓ 4 callers
Function
cancelWaterFill
()
src/isometric_nyc/generation/static/viewer.js:1020
↓ 4 callers
Function
cancelWaterSelect
()
src/isometric_nyc/generation/static/viewer.js:1065
↓ 4 callers
Function
create_test_grid_state
Create a QuadrantGrid for common test scenarios. Scenarios: - "half_left": Left half generated, right half selected - "half_right": Right ha
src/isometric_nyc/generation/generate_template_test.py:1191
↓ 4 callers
Function
deselectAll
()
src/isometric_nyc/generation/static/viewer.js:2757
↓ 4 callers
Function
format_time
Format seconds into a human-readable time string.
src/isometric_nyc/generation/populate_water_masks.py:145
↓ 4 callers
Method
get_all_empty
Get all empty (not generated) quadrant positions.
src/isometric_nyc/generation/automatic_generation.py:276
↓ 4 callers
Function
get_pending_queue
Get all pending items in the queue, ordered by creation time.
src/isometric_nyc/generation/queue_db.py:335
↓ 4 callers
Method
get_validation_info
Get detailed validation information for debugging.
src/isometric_nyc/generation/infill_template.py:899
↓ 4 callers
Function
load_view_config
Load view configuration from JSON file.
src/isometric_nyc/export_views.py:34
↓ 4 callers
Function
navigate
(dx, dy)
src/isometric_nyc/generation/static/viewer.js:476
next →
1–100 of 1,260, ranked by callers