MCPcopy Create free account

hub / github.com/cannoneyed/isometric-nyc / functions

Functions1,260 in github.com/cannoneyed/isometric-nyc

Functionapi_delete_water_mask
API endpoint to delete water_mask data for selected quadrants. Does NOT allow deletion of tiles with water_type ALL_WATER or ALL_LAND (these a
src/isometric_nyc/generation/app.py:1476
Functionapi_export
API endpoint to export a rectangular region of quadrants as a single PNG image. Request body: { "tl": [x, y] or {"x": x, "y": y}, //
src/isometric_nyc/generation/app.py:2518
Functionapi_fix_water
API endpoint to fix water color in a quadrant using soft blending.
src/isometric_nyc/generation/app.py:1993
Functionapi_flag
API endpoint to flag/unflag selected quadrants.
src/isometric_nyc/generation/app.py:1603
Functionapi_generate
API endpoint to generate tiles for selected quadrants.
src/isometric_nyc/generation/view_generations.py:576
Functionapi_generate
API endpoint to generate tiles for selected quadrants. Request body: { "quadrants": [[x, y], ...] or [{"x": x, "y": y}, ...], "m
src/isometric_nyc/generation/app.py:2342
Functionapi_generate_rectangle
API endpoint to generate all quadrants within a rectangle. Request body: { "tl": [x, y] or {"x": x, "y": y}, // Top-left corner
src/isometric_nyc/generation/app.py:2667
Methodapi_key
Get the API key from environment variables.
src/isometric_nyc/generation/model_config.py:51
Methodapi_key
(self)
src/isometric_nyc/generation/generate_full_map_layer.py:62
Functionapi_models
API endpoint to get available models.
src/isometric_nyc/generation/app.py:1327
Functionapi_nyc_boundary
API endpoint to get the NYC boundary GeoJSON with coordinate transformation info. Returns the NYC borough boundaries along with the generation c
src/isometric_nyc/generation/app.py:1341
Functionapi_reference
API endpoint to mark/unmark a single quadrant as reference (top-left of 2x2 tile). Reference tiles are used for nano banana generation to provid
src/isometric_nyc/generation/app.py:1757
Functionapi_references
API endpoint to get all reference quadrants. Returns a list of reference quadrant coordinates (top-left of 2x2 tiles).
src/isometric_nyc/generation/app.py:1832
Functionapi_render
API endpoint to render tiles for selected quadrants.
src/isometric_nyc/generation/view_generations.py:460
Functionapi_render
API endpoint to render tiles for selected quadrants.
src/isometric_nyc/generation/app.py:2294
Functionapi_star
API endpoint to star/unstar a single quadrant. Note: Only one quadrant can be starred at a time.
src/isometric_nyc/generation/app.py:1653
Functionapi_starred
API endpoint to get all starred quadrants. Returns a list of starred quadrant coordinates with their info.
src/isometric_nyc/generation/app.py:1710
Functionapi_status
API endpoint to check generation status including queue info.
src/isometric_nyc/generation/view_generations.py:397
Functionapi_status
API endpoint to check generation status including queue info.
src/isometric_nyc/generation/app.py:1140
Functionapi_water
API endpoint to mark/unmark selected quadrants as water tiles. Water status values: -1: Explicitly NOT water (protected from auto-detection)
src/isometric_nyc/generation/app.py:1903
Functionapi_water_fill
API endpoint to fill an entire quadrant with the water color.
src/isometric_nyc/generation/app.py:2076
Functionapi_water_fill_rectangle
API endpoint to fill a rectangular region of quadrants with the water color. Request body: { "tl": [x, y] or {"x": x, "y": y}, // Top
src/isometric_nyc/generation/app.py:2158
FunctionapplyWaterFix
()
src/isometric_nyc/generation/static/viewer.js:906
Functionapply_preprocessing
Apply all preprocessing transformations in the correct order. Order matters! The "Perfect Corruption" recipe: 1. Desaturate to kill the satell
src/isometric_nyc/generation/image_preprocessing.py:130
Methodarea
(self)
src/isometric_nyc/generation/generate_template_test.py:85
Methodarea
(self)
src/isometric_nyc/generation/automatic_generation.py:104
Methodarea
Total number of quadrants in the rectangle.
src/isometric_nyc/generation/make_rectangle_plan.py:72
Methodarea
Total area in pixels.
src/isometric_nyc/generation/infill_template.py:97
Functionassign_generation_types
Assign generation types to achieve the target distribution while respecting constraints. Constraints per image: 1. Max 1 "full" 2. Max 1 "mi
src/isometric_nyc/synthetic_data/create_omni_dataset.py:394
Methodbottom
Bottom edge y coordinate.
src/isometric_nyc/generation/infill_template.py:107
Functionbuild_palette_image_from_colors
Build a palette image from a list of colors using median-cut quantization. This is similar to the existing build_unified_palette() but retur
src/isometric_nyc/generation/pixel_art_postprocess.py:119
Functioncalculate_satellite_scale
Calculate the scale factor needed to match satellite imagery to ground plane. Google Maps uses Web Mercator projection (EPSG:3857). At zoom le
src/isometric_nyc/whitebox.py:267
Functioncheck
(qx: int, qy: int)
src/isometric_nyc/generation/generate_template.py:94
Functioncheck_all_quadrants_generated
Check if all 4 quadrants for the tile starting at (x, y) have generations. The tile covers quadrants: (x, y), (x+1, y), (x, y+1), (x+1, y+1)
src/isometric_nyc/generation/shared.py:348
Functioncleanup_stale_processing
Clean up items stuck in 'processing' state for too long. This handles cases where the server crashed during processing. Items older than max_a
src/isometric_nyc/generation/queue_db.py:570
FunctionclearAllReferences
()
src/isometric_nyc/generation/static/viewer.js:1763
FunctionclearQueue
()
src/isometric_nyc/generation/static/viewer.js:2005
FunctionclearSavedNegativePrompt
()
src/isometric_nyc/generation/static/viewer.js:147
FunctionclearSavedPrompt
()
src/isometric_nyc/generation/static/viewer.js:91
Functionclear_all_queue_items
Delete all items from the queue (pending, processing, complete, error). Returns a dict with counts by status.
src/isometric_nyc/generation/queue_db.py:699
Functionclear_reference_cache
Clear the reference upload cache. Call this if references are regenerated.
src/isometric_nyc/generation/generate_tile_nano_banana.py:87
FunctioncopyExportCommand
()
src/isometric_nyc/generation/static/viewer.js:2603
Methodcount
Number of directions with generated context.
src/isometric_nyc/generation/generate_template_test.py:112
Functioncreate_centered_template_image
Create a centered template image for a 1x1 selection with neighbors on multiple sides. For a single quadrant selection surrounded by generated n
src/isometric_nyc/generation/generate_template_test.py:809
Functioncreate_few_shot_template
Create a few-shot "before" template from a reference tile. This recreates what the template would have looked like before generation, using th
src/isometric_nyc/generation/generate_tile_nano_banana.py:423
Functioncreate_half_template
Create a template for half-tile generation (like the original generate_tile). Args: side: Which side to fill with renders: "left", "right"
src/isometric_nyc/generation/generate_template_test.py:1024
Functioncreate_middle_strip_template
Create a template for middle strip generation (vertical or horizontal). This handles the case where selected quadrants are in the middle with
src/isometric_nyc/generation/generate_template_test.py:1125
Functioncreate_single_quadrant_template
Create a template for single quadrant generation. This is useful for filling in a single quadrant surrounded by up to 3 generated neighbors.
src/isometric_nyc/generation/generate_template_test.py:1077
Methoddebug
(self)
src/notebooks/test.py:66
FunctiondeleteSelected
()
src/isometric_nyc/generation/static/viewer.js:1477
Methoddepth
Depth of the strip (perpendicular to progress direction).
src/isometric_nyc/generation/make_strip_plan.py:108
Methoddo_GET
Handle GET requests.
src/isometric_nyc/generation/create_bounds.py:889
Methoddo_POST
Handle POST requests (save bounds).
src/isometric_nyc/generation/create_bounds.py:899
Methodedit_b64
Base64 JSON Endpoint
inference/server.py:120
FunctionexportSelected
()
src/isometric_nyc/generation/static/viewer.js:2646
Functionextract_centered_quadrant
Extract the centered quadrant from a generated image. For images generated from centered templates, the selected quadrant is at the center of
src/isometric_nyc/generation/generate_template_test.py:937
FunctionfillRectangleWater
()
src/isometric_nyc/generation/static/viewer.js:2361
FunctionfindStarredIndex
(x, y)
src/isometric_nyc/generation/static/viewer.js:1923
FunctionflagSelected
()
src/isometric_nyc/generation/static/viewer.js:1568
Methodfrom_dict
Create from JSON dict.
src/isometric_nyc/generation/automatic_generation.py:179
Methodfrom_string
Parse a string like '(x,y)' or 'x,y' into a Point.
src/isometric_nyc/generation/make_rectangle_plan.py:41
FunctiongenerateRectangle
()
src/isometric_nyc/generation/static/viewer.js:2470
Functionget_available_masks
Get a list of available mask coordinates. Returns coordinates parsed from <x>_<y>.png filenames in the mask directory.
src/layers/water_shader/app/server.py:232
Functionget_available_tiles
Get a list of available tile coordinates. Returns tiles that exist in both input and generation directories.
src/layers/snow/app/server.py:126
Functionget_available_tiles
Get a list of available tile coordinates. Returns tiles that exist in both input and generation directories.
src/layers/dark_mode/app/server.py:127
Functionget_available_tiles
Get a list of available tile coordinates. Returns tiles where all 4 quadrants have generations.
src/layers/water_shader/app/server.py:196
Functionget_building
Retrieve a building by address.
src/isometric_nyc/data/database.py:61
Functionget_data
()
src/isometric_nyc/synthetic_data/csv_editor_app.py:335
Functionget_error_items
Get all items with error status.
src/isometric_nyc/generation/generate_full_map_layer.py:119
Functionget_gen
(qx: int, qy: int)
src/isometric_nyc/generation/generate_template.py:135
Methodget_generated_positions
Get all positions marked as generated.
src/isometric_nyc/generation/generate_template_test.py:426
Functionget_generation
Get the nighttime (generation) image for tile at (x, y). Looks for a file named <x>_<y>.png in the generations directory.
src/layers/snow/app/server.py:102
Functionget_generation
Get the nighttime (generation) image for tile at (x, y). Looks for a file named <x>_<y>.png in the generations directory.
src/layers/dark_mode/app/server.py:103
Functionget_generation_from_db
(qx: int, qy: int)
src/isometric_nyc/generation/automatic_generation.py:444
Methodget_infill_bounds
Get the bounding box for the infill at the given position.
src/isometric_nyc/generation/generate_template_test.py:273
Methodget_infill_bounds
Get the optimal bounding box for the infill region in the template. Returns: BoundingBox for the infill region in pixel coordinates
src/isometric_nyc/generation/generate_template_test.py:557
Functionget_input
Get the daytime (input) image for tile at (x, y). Looks for a file named <x>_<y>.png in the inputs directory.
src/layers/snow/app/server.py:78
Functionget_input
Get the daytime (input) image for tile at (x, y). Looks for a file named <x>_<y>.png in the inputs directory.
src/layers/dark_mode/app/server.py:79
Methodget_input_for_template
Get the input image for template construction. For dark mode: use generation (pixel art) as input For regular generation: use render (3D
src/isometric_nyc/generation/shared.py:936
Functionget_mask
Get the water mask image for tile at (x, y). Looks for a file named <x>_<y>.png in the mask directory.
src/layers/water_shader/app/server.py:174
Functionget_next_pending_item
Get the next pending item from the queue. Returns the oldest pending item, or None if queue is empty.
src/isometric_nyc/generation/queue_db.py:206
Methodget_path
(self, id: str)
src/isometric_nyc/tile_generation/shared.py:34
Functionget_priority
(t: str)
src/isometric_nyc/synthetic_data/create_omni_dataset.py:461
Functionget_quadrant_generation
Get the generation bytes for a quadrant.
src/isometric_nyc/generation/app.py:244
Functionget_queue_position
Get the position of an item in the queue. Returns 0 if the item is currently processing, 1 if it's first in the pending queue, etc. Returns
src/isometric_nyc/generation/queue_db.py:352
Functionget_render
(qx: int, qy: int)
src/isometric_nyc/generation/generate_template.py:114
Functionget_render_from_db_with_render
Get render, rendering if it doesn't exist yet.
src/isometric_nyc/generation/automatic_generation.py:431
Functionget_satellite_image
(lat, lon, zoom=19, size="1280x1280")
src/isometric_nyc/satellite.py:11
Functionget_status
Get server status and configuration.
src/layers/snow/app/server.py:184
Functionget_status
Get server status and configuration.
src/layers/dark_mode/app/server.py:183
Functionget_status
Get server status and configuration.
src/layers/water_shader/app/server.py:265
Functionget_tile
Get a 2x2 tile image starting at (x, y) from the generations database. Returns a 1024x1024 PNG image composed of 4 quadrants: (x, y) (x+
src/layers/water_shader/app/server.py:132
FunctiongoTo
()
src/isometric_nyc/generation/static/viewer.js:470
FunctionhandleChange
(e: React.ChangeEvent<HTMLInputElement>)
src/layers/water_shader/app/src/components/ControlPanel.tsx:69
FunctionhandleKeyDown
(e: KeyboardEvent)
src/layers/snow/app/src/App.tsx:146
FunctionhandleKeyDown
(e: React.KeyboardEvent)
src/layers/dark_mode/app/src/App.tsx:151
FunctionhandleKeyDown
(e: React.KeyboardEvent)
src/layers/water_shader/app/src/components/ControlPanel.tsx:91
FunctionhandlePopState
()
src/layers/snow/app/src/App.tsx:132
FunctionhandlePopState
()
src/layers/dark_mode/app/src/App.tsx:131
FunctionhandlePopState
()
src/layers/water_shader/app/src/App.tsx:161
← previousnext →901–1,000 of 1,260, ranked by callers