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
↓ 4 callers
Function
navigateToCoord
(targetX, targetY)
src/isometric_nyc/generation/static/viewer.js:484
↓ 4 callers
Function
parse_coordinate_tuple
Parse a coordinate string into an (x, y) tuple. Args: coord_str: String in format "(x,y)" Returns: Tuple of (x, y) integers Ra
src/isometric_nyc/generation/visualize_bounds.py:42
↓ 4 callers
Function
postprocess_image
Apply pixelation and color quantization to an image.
src/isometric_nyc/generation/export_pmtiles.py:527
↓ 4 callers
Function
quadrant_selection_to_infill
Convert a quadrant selection to infill dimensions. Args: selected_positions: List of selected quadrant positions quadrant_size: Size of
src/isometric_nyc/generation/generate_template_test.py:289
↓ 4 callers
Function
render_quadrant
Render a quadrant and save to database. This renders the tile containing the quadrant and saves all 4 quadrants. Args: conn: Database con
src/isometric_nyc/generation/generate_tile_nano_banana.py:361
↓ 4 callers
Function
saveViewState
(viewState: ViewState)
src/app/src/App.tsx:153
↓ 4 callers
Method
set_state
Set the state of a quadrant at position (x, y).
src/isometric_nyc/generation/generate_template_test.py:404
↓ 4 callers
Function
startStatusPolling
()
src/isometric_nyc/generation/static/viewer.js:2849
↓ 4 callers
Method
to_dict
(self)
src/isometric_nyc/generation/init_layer.py:61
↓ 4 callers
Method
to_dict
Convert to JSON-serializable dict.
src/isometric_nyc/generation/make_strip_plan.py:133
↓ 4 callers
Method
validate_selection
Validate that the current selection is legal for generation. A selection is legal if: 1. Selected quadrants form a contiguous region
src/isometric_nyc/generation/generate_template_test.py:432
↓ 3 callers
Method
_find_missing_context_quadrants
Find context quadrants that don't have generated pixels. Returns list of (qx, qy) positions that are in the template but not in the infi
src/isometric_nyc/generation/infill_template.py:632
↓ 3 callers
Method
as_tuple
(self)
src/isometric_nyc/generation/generate_template_test.py:88
↓ 3 callers
Method
callback
( result: dict[tuple[int, int], bytes] | None, error: str | None )
src/isometric_nyc/generation/web_renderer.py:297
↓ 3 callers
Function
can_generate_water_mask
Check if a water mask can be generated at point p. A water mask can be generated if 3 of 4 quadrants in at least one 2x2 block containing p al
src/isometric_nyc/generation/generate_water_masks.py:89
↓ 3 callers
Function
can_place_1x1
Check if a 1x1 tile can be placed at point p with valid context. A 1x1 tile requires that 3 of 4 quadrants in at least one 2x2 block containin
src/isometric_nyc/generation/make_rectangle_plan.py:519
↓ 3 callers
Function
create_rectangle_plan_from_coords
Convenience function to create a plan from coordinate tuples. Args: tl: Top-left corner (x, y) br: Bottom-right corner (x, y)
src/isometric_nyc/generation/make_rectangle_plan.py:640
↓ 3 callers
Function
ensure_dark_mode_column_exists
Ensure the dark_mode column exists in the quadrants table (migration).
src/isometric_nyc/generation/app.py:232
↓ 3 callers
Function
ensure_starred_column_exists
Ensure the starred column exists in the quadrants table (migration).
src/isometric_nyc/generation/app.py:191
↓ 3 callers
Function
ensure_water_mask_columns_exist
Ensure the water_mask and water_type columns exist in the quadrants table (migration).
src/isometric_nyc/generation/app.py:215
↓ 3 callers
Function
ensure_web_server_running
Ensure the web server for rendering is running.
src/isometric_nyc/generation/view_generations.py:668
↓ 3 callers
Function
extract_palette_from_image
Extract RGB palette from a quantized palette image. Args: palette_img: A quantized PIL Image with a palette Returns: Li
src/isometric_nyc/generation/pixel_art_postprocess.py:91
↓ 3 callers
Method
filter
(self, record: logging.LogRecord)
src/isometric_nyc/generation/app.py:106
↓ 3 callers
Method
from_dict
Create from JSON dict.
src/isometric_nyc/generation/make_strip_plan.py:142
↓ 3 callers
Method
from_quadrant
Create an infill region for a single quadrant.
src/isometric_nyc/generation/infill_template.py:65
↓ 3 callers
Function
generateSelected
(prompt = null)
src/isometric_nyc/generation/static/viewer.js:2175
↓ 3 callers
Function
getSavedNegativePrompt
()
src/isometric_nyc/generation/static/viewer.js:135
↓ 3 callers
Function
getSavedPrompt
()
src/isometric_nyc/generation/static/viewer.js:82
↓ 3 callers
Function
getUrlParams
()
src/app/src/config.ts:8
↓ 3 callers
Function
get_2x2_block_positions
Get all 2x2 blocks that contain the point p. A point can be in up to 4 different 2x2 blocks: - As top-left - As top-right - As bottom-left
src/isometric_nyc/generation/make_rectangle_plan.py:459
↓ 3 callers
Function
get_bounds_dir
Get the default bounds directory.
src/isometric_nyc/generation/bounds.py:12
↓ 3 callers
Function
get_generations_dir
Get the generations subdirectory.
src/layers/snow/app/server.py:55
↓ 3 callers
Function
get_generations_dir
Get the generations subdirectory.
src/layers/dark_mode/app/server.py:56
↓ 3 callers
Method
get_infill_position
Get the optimal pixel position for the infill region in the template. Uses InfillPositioner to find the best position that: - Maximizes
src/isometric_nyc/generation/generate_template_test.py:525
↓ 3 callers
Function
get_inputs_dir
Get the inputs subdirectory.
src/layers/snow/app/server.py:49
↓ 3 callers
Function
get_inputs_dir
Get the inputs subdirectory.
src/layers/dark_mode/app/server.py:50
↓ 3 callers
Function
get_max_area
Calculate maximum allowed rectangle area (1/2 of total).
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:92
↓ 3 callers
Method
get_model
Get a model configuration by its ID.
src/isometric_nyc/generation/model_config.py:104
↓ 3 callers
Function
get_plan_summary
Get a summary of the plan for display.
src/isometric_nyc/generation/make_rectangle_plan.py:729
↓ 3 callers
Function
get_quadrant
Get a quadrant by its (x, y) position. Returns the quadrant's anchor coordinates and metadata.
src/isometric_nyc/generation/shared.py:261
↓ 3 callers
Function
get_quadrants_with_water_masks
Get all quadrants that already have water mask data. Returns: Set of Points for quadrants with existing water masks.
src/isometric_nyc/generation/generate_water_masks.py:127
↓ 3 callers
Method
get_satellite_image_url
Generate a static map URL for satellite view.
src/isometric_nyc/data/google_maps.py:18
↓ 3 callers
Function
get_step_progress
Get progress counts for each step.
src/isometric_nyc/generation/generate_full_map_layer.py:146
↓ 3 callers
Method
get_summary
Get count of steps by status.
src/isometric_nyc/generation/automatic_generation.py:221
↓ 3 callers
Function
get_table_schema
Get the CREATE TABLE statement for a table.
src/isometric_nyc/create_tiny_nyc.py:33
↓ 3 callers
Function
get_variant_name
Generate filename from quadrant sources.
src/isometric_nyc/synthetic_data/create_infill_dataset.py:205
↓ 3 callers
Method
has_generated_neighbor
Check if a quadrant has any generated neighbors (4-connected).
src/isometric_nyc/generation/automatic_generation.py:293
↓ 3 callers
Function
has_generation_in_db
Create a function to check if a quadrant has generation in the database.
src/isometric_nyc/generation/generate_template.py:91
↓ 3 callers
Function
load_app_config
Load the application configuration from app_config.json. Args: config_path: Path to the config file. If None, looks in the generation dir.
src/isometric_nyc/generation/model_config.py:125
↓ 3 callers
Function
parse_float_param
(param_name: str, default: float = 0.0)
src/isometric_nyc/synthetic_data/create_omni_dataset.py:697
↓ 3 callers
Function
print_progress
Print a progress summary.
src/isometric_nyc/generation/generate_full_map_layer.py:418
↓ 3 callers
Function
renderNycOutline
()
src/isometric_nyc/generation/static/viewer.js:3170
↓ 3 callers
Function
save_quadrants_json
Save quadrant entries to a JSON file. Args: json_path: Path to the JSON file entries: List of quadrant entry dicts
src/isometric_nyc/generation/generate_tiles_omni.py:62
↓ 3 callers
Function
start_queue_worker
Start the queue worker thread if not already running.
src/isometric_nyc/generation/app.py:1077
↓ 3 callers
Function
stitch_images
Stitch images from tile subdirectories into a single large image. Args: tile_dir: Directory containing tile subdirectories (000_000, 000_0
src/isometric_nyc/validate_plan.py:14
↓ 3 callers
Function
stopStatusPolling
()
src/isometric_nyc/generation/static/viewer.js:2880
↓ 3 callers
Function
toggleFixWaterTool
()
src/isometric_nyc/generation/static/viewer.js:731
↓ 3 callers
Function
toggleWaterFillTool
()
src/isometric_nyc/generation/static/viewer.js:984
↓ 3 callers
Function
toggleWaterSelectTool
()
src/isometric_nyc/generation/static/viewer.js:1029
↓ 3 callers
Function
updateNegativePromptButtonIndicator
()
src/isometric_nyc/generation/static/viewer.js:158
↓ 3 callers
Function
updatePromptButtonIndicator
()
src/isometric_nyc/generation/static/viewer.js:102
↓ 3 callers
Method
update_step_status
Update the status of a specific step.
src/isometric_nyc/generation/automatic_generation.py:207
↓ 3 callers
Function
validate_plan_context
Validate that all steps in a plan have valid 2x2 context for generation. Each generation step must have at least one 2x2 block where all 4 quadr
src/isometric_nyc/generation/make_rectangle_plan.py:700
↓ 2 callers
Method
_expand_to_cover_missing
Try to expand the infill region to cover missing context quadrants. The expanded region must still fit within the template and not exceed
src/isometric_nyc/generation/infill_template.py:666
↓ 2 callers
Method
_find_axis_position
Find position along one axis. Args: margin: Available margin (template_size - infill_size) has_near_gen: Generated pixels at nea
src/isometric_nyc/generation/generate_template_test.py:172
↓ 2 callers
Method
_start_web_server
Start the web server subprocess.
src/isometric_nyc/generation/web_renderer.py:115
↓ 2 callers
Method
_try_placement_with_context_preferences
Try to find a valid placement with given context preferences. Args: include_left: Whether to try to include left context include
src/isometric_nyc/generation/infill_template.py:298
↓ 2 callers
Function
add_to_queue
Add a new item to the generation queue. Args: conn: Database connection item_type: Type of operation (generate or render) quadrants:
src/isometric_nyc/generation/queue_db.py:137
↓ 2 callers
Function
add_to_queue
Add a generation/render request to the queue.
src/isometric_nyc/generation/view_generations.py:374
↓ 2 callers
Function
add_to_queue_db
Add a generation/render request to the database queue.
src/isometric_nyc/generation/app.py:1095
↓ 2 callers
Function
applyStatusStyles
(status)
src/isometric_nyc/generation/static/viewer.js:237
↓ 2 callers
Function
apply_desaturation
Desaturate an image (move towards grayscale). Args: img: Input PIL Image intensity: Desaturation intensity (0.0 = no change, 1.0 = full
src/isometric_nyc/generation/image_preprocessing.py:58
↓ 2 callers
Function
apply_gamma_shift
Apply gamma crush to destroy the flat look and separate highlights from shadows. The "Gamma Crush" pushes dark greys to black while keeping ligh
src/isometric_nyc/generation/image_preprocessing.py:91
↓ 2 callers
Function
apply_noise
Add multiplicative noise (grain) to an image. Uses multiplicative noise to mimic "texture loss" rather than "sensor static." This looks like g
src/isometric_nyc/generation/image_preprocessing.py:21
↓ 2 callers
Function
assign_generation_types_variable
Assign generation types when each image has a variable number of variants. This is similar to assign_generation_types but handles different vari
src/isometric_nyc/synthetic_data/create_omni_dataset.py:518
↓ 2 callers
Function
build_unified_palette
Build a unified palette image from sampled colors.
src/isometric_nyc/generation/export_dzi.py:353
↓ 2 callers
Function
calculate_block_corners
Calculate the geographic corners of a block. Returns corners in order: TL, TR, BR, BL for Leaflet polygon.
src/isometric_nyc/generation/debug_generate_full_map_layer.py:83
↓ 2 callers
Function
calculate_offset
Calculate the new lat/lon center after shifting the view by shift_x_px and shift_y_px. This is adapted from plan_tiles.py to handle isometric pr
src/isometric_nyc/generation/seed_tiles.py:41
↓ 2 callers
Function
can_generate_1x2_horizontal
Check if a 1x2 horizontal tile can be generated. Layout: [left][right] IMPORTANT: Generated neighbors can ONLY be on the LONG sides (top/bott
src/isometric_nyc/generation/automatic_generation.py:824
↓ 2 callers
Function
can_generate_2x1_vertical
Check if a 2x1 vertical tile can be generated. Layout: [top] [bottom] IMPORTANT: Generated neighbors can ONLY be on the LONG sides (l
src/isometric_nyc/generation/automatic_generation.py:864
↓ 2 callers
Function
clear_generation
Clear generation for a single quadrant.
src/isometric_nyc/generation/clear_generations.py:47
↓ 2 callers
Function
collect_all_tile_paths
Collect all PNG tile paths from the tiles directory.
src/isometric_nyc/postprocess_tiles.py:36
↓ 2 callers
Function
compute_app_defaults
Compute sensible default view settings for the app. Returns x, y centered on the image, and zoom at approximately 4:1 (each screen pixel
src/isometric_nyc/generation/export_dzi.py:766
↓ 2 callers
Function
compute_hash
Compute a short hash for image content. Uses MD5 and returns the first 8 characters for a compact identifier that's still sufficiently unique
src/isometric_nyc/oxen_sync/utils.py:10
↓ 2 callers
Method
count_generated_neighbors
Count how many generated neighbors a quadrant has (4-connected).
src/isometric_nyc/generation/automatic_generation.py:303
↓ 2 callers
Function
createOverlay
(item, options = {})
src/isometric_nyc/generation/static/viewer.js:309
↓ 2 callers
Function
createShader
( gl: WebGLRenderingContext, type: number, source: string )
src/layers/water_shader/app/src/shaders/water.ts:137
↓ 2 callers
Function
createShader
( gl: WebGLRenderingContext, type: number, source: string )
src/app/src/shaders/water.ts:179
↓ 2 callers
Function
createTexture
( gl: WebGLRenderingContext, image: HTMLImageElement )
src/layers/water_shader/app/src/shaders/water.ts:239
↓ 2 callers
Function
create_black_tile
Create a black tile (postprocessed if palette provided).
src/isometric_nyc/generation/export_pmtiles.py:580
↓ 2 callers
Function
create_infill_template
Create a template.png for the given tile directory based on neighbors. Returns: Tuple of (path to template.png, prompt string) or (None, N
src/isometric_nyc/generate_tile_oxen_infill.py:150
↓ 2 callers
Function
create_solid_mask
Create a solid color PNG mask.
src/isometric_nyc/generation/populate_water_masks.py:83
↓ 2 callers
Function
create_template
Creates a template.png for the given tile directory based on its neighbors' generation.png files. Args: tile_dir_path: Path to the tile dire
src/isometric_nyc/create_template.py:8
↓ 2 callers
Function
create_test_image
Create a test quadrant image with a solid color.
src/isometric_nyc/generation/generate_template_test.py:1369
↓ 2 callers
Function
draw_red_border
Draw a red border around a rectangular region. The border is drawn ON TOP of the image (no pixel displacement). Args: image: The image
src/isometric_nyc/generation/generate_template_test.py:694
↓ 2 callers
Function
ensure_flagged_column_exists
Ensure the flagged column exists in the quadrants table (migration).
src/isometric_nyc/generation/app.py:167
↓ 2 callers
Function
ensure_is_water_column_exists
Ensure the is_water column exists in the quadrants table (migration).
src/isometric_nyc/generation/app.py:179
↓ 2 callers
Function
export_starred_quadrant
Export a 2x2 tile with the starred quadrant in the top-left position. The tile includes: - (x, y) - starred quadrant (top-left) - (x+1,
src/isometric_nyc/generation/export_starred_from_db.py:142
↓ 2 callers
Function
fetchNycBoundary
()
src/isometric_nyc/generation/static/viewer.js:3137
↓ 2 callers
Function
fetchStarredList
()
src/isometric_nyc/generation/static/viewer.js:1908
← previous
next →
101–200 of 1,260, ranked by callers