Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aidymouse/Hexfriend
/ functions
Functions
152 in github.com/Aidymouse/Hexfriend
⨍
Functions
152
◇
Types & classes
20
↓ 12 callers
Method
add
(v: Vector)
src/lib/vector2d.ts:16
↓ 12 callers
Method
multiply
(v: Vector | number)
src/lib/vector2d.ts:38
↓ 8 callers
Function
genHexId
(q: number, r: number, s: number)
src/lib/terrainGenerator.ts:120
↓ 8 callers
Function
genHexId
(q: number, r: number, s: number)
src/helpers/hexHelpers.ts:101
↓ 6 callers
Function
coords_cubeToWorld
( q: number, r: number, s: number, HexOrientation: HexOrientation, hexWidth: number, hexHeight: nu
src/helpers/hexHelpers.ts:232
↓ 5 callers
Method
normalize
()
src/lib/vector2d.ts:78
↓ 5 callers
Function
saver
(url, winMode)
src/lib/download2.js:67
↓ 4 callers
Function
AxialToCube
(q: number, r: number)
src/helpers/hexHelpers.ts:169
↓ 4 callers
Function
breakDownHexID
(hexId: HexId)
src/helpers/hexHelpers.ts:66
↓ 4 callers
Function
coords_worldToCube
( worldX: number, worldY: number, HexOrientation: HexOrientation, hexWidth: number, hexHeight: numbe
src/helpers/hexHelpers.ts:194
↓ 4 callers
Function
getHexPath
( hexWidth: number, hexHeight: number, orientation: HexOrientation = HexOrientation.FLATTOP, centerX:
src/helpers/hexHelpers.ts:15
↓ 4 callers
Method
set
(x: number, y: number)
src/lib/vector2d.ts:106
↓ 4 callers
Method
subtract
(v: Vector | number)
src/lib/vector2d.ts:27
↓ 3 callers
Function
coords_cubeToq
(raisedColumn: 'odd' | 'even', q: number, r: number, s: number)
src/helpers/hexHelpers.ts:276
↓ 3 callers
Function
coords_cubeTor
(indentedRow: 'odd' | 'even', q, r, s)
src/helpers/hexHelpers.ts:312
↓ 3 callers
Function
get_icon_scale_for_hex
(icon: Icon, hexInfo: HexSizeParams)
src/helpers/imageSizing.ts:54
↓ 3 callers
Function
get_symbol_texture
(tile: Tile)
src/lib/texture_loader.ts:68
↓ 3 callers
Method
length
()
src/lib/vector2d.ts:74
↓ 3 callers
Method
max
()
src/lib/vector2d.ts:86
↓ 3 callers
Method
rotate
(ang: number)
src/lib/vector2d.ts:112
↓ 3 callers
Function
worldX
(state: pan_state)
src/stores/panning.ts:27
↓ 3 callers
Function
worldY
(state: pan_state)
src/stores/panning.ts:31
↓ 2 callers
Function
apply_state_data
(applied_data: UndoData, layers: LayerComponents, panels: PanelComponents)
src/lib/undoManager.ts:160
↓ 2 callers
Method
clone
()
src/lib/vector2d.ts:102
↓ 2 callers
Function
colorWith
(hex, tileid, tileset)
src/lib/terrainGenerator.ts:197
↓ 2 callers
Function
cube_add
(c1: cube_coords, c2: cube_coords)
src/helpers/hexHelpers.ts:153
↓ 2 callers
Function
cube_round
(frac: cube_coords)
src/helpers/hexHelpers.ts:173
↓ 2 callers
Method
dot
(v: Vector)
src/lib/vector2d.ts:66
↓ 2 callers
Function
findIntersectionPoint
(line1, line2)
src/helpers/pathHelpers.ts:52
↓ 2 callers
Function
generate_tile_preview
( tile: Tile, preview_hex_info: PreviewHexInfo, spr: PIXI.Sprite, grph: PIXI.Graphics, cont: PIXI.Co
src/helpers/tileFns.ts:46
↓ 2 callers
Function
getHexNeighbours
(q: number, r: number, s: number)
src/lib/terrainGenerator.ts:130
↓ 2 callers
Function
get_icon_texture
(icon_id: string)
src/lib/texture_loader.ts:40
↓ 2 callers
Function
preProcessUndoState
(data: UndoData)
src/lib/undoManager.ts:79
↓ 2 callers
Function
rand
(min: number, max: number)
src/lib/terrainGenerator.ts:124
↓ 1 callers
Function
addResourcesToCache
(resources)
public/worker.js:3
↓ 1 callers
Function
convert_v10_to_v11
(old_data: SaveData)
src/lib/saveDataConverter.ts:172
↓ 1 callers
Function
convert_v11_to_v12
(old_data: SaveData)
src/lib/saveDataConverter.ts:187
↓ 1 callers
Function
convert_v12_to_v13
(old_data: SaveData)
src/lib/saveDataConverter.ts:198
↓ 1 callers
Function
convert_v13_to_v14
(oldData: SaveData)
src/lib/saveDataConverter.ts:235
↓ 1 callers
Function
convert_v1_to_v2
(old_tileset: Tileset)
src/lib/tilesetConverter.ts:8
↓ 1 callers
Function
convert_v1_to_v2
(old: Iconset)
src/lib/iconsetConverter.ts:5
↓ 1 callers
Function
convert_v1_to_v5
I better make sure I like these names because they can NEVER CHANGE! Or old save versions will need to know what they used to be
src/lib/saveDataConverter.ts:8
↓ 1 callers
Function
convert_v2_to_v3
(old_tileset: Tileset)
src/lib/tilesetConverter.ts:23
↓ 1 callers
Function
convert_v3_to_v4
(old: Tileset)
src/lib/tilesetConverter.ts:36
↓ 1 callers
Function
convert_v5_to_v6
(oldData: SaveData)
src/lib/saveDataConverter.ts:67
↓ 1 callers
Function
convert_v6_to_v7
(oldData: SaveData)
src/lib/saveDataConverter.ts:78
↓ 1 callers
Function
convert_v7_to_v8
(old_data: SaveData)
src/lib/saveDataConverter.ts:100
↓ 1 callers
Function
convert_v8_to_v9
(old_data: SaveData)
src/lib/saveDataConverter.ts:111
↓ 1 callers
Function
convert_v9_to_v10
(old_data: SaveData)
src/lib/saveDataConverter.ts:132
↓ 1 callers
Function
coords_cubeToEvenq
(q: number, r: number, s)
src/helpers/hexHelpers.ts:264
↓ 1 callers
Function
coords_cubeToEvenr
(q, r, s)
src/helpers/hexHelpers.ts:300
↓ 1 callers
Function
coords_cubeToOddq
(q: number, r: number, s)
src/helpers/hexHelpers.ts:270
↓ 1 callers
Function
coords_cubeToOddr
(q, r, s)
src/helpers/hexHelpers.ts:306
↓ 1 callers
Function
coords_evenqToCube
(col: number, row: number)
src/helpers/hexHelpers.ts:281
↓ 1 callers
Function
coords_evenrToCube
(col, row)
src/helpers/hexHelpers.ts:317
↓ 1 callers
Function
coords_oddqToCube
(col: number, row: number)
src/helpers/hexHelpers.ts:287
↓ 1 callers
Function
coords_oddrToCube
(col, row)
src/helpers/hexHelpers.ts:323
↓ 1 callers
Function
coords_qToCube
(oddOrEven: 'odd' | 'even', col: number, row: number)
src/helpers/hexHelpers.ts:293
↓ 1 callers
Function
coords_rToCube
(indentedRow: 'odd' | 'even', col, row)
src/helpers/hexHelpers.ts:329
↓ 1 callers
Function
cube_scale
(coords: cube_coords, scale: number)
src/helpers/hexHelpers.ts:149
↓ 1 callers
Function
d2b
(u)
src/lib/download2.js:53
↓ 1 callers
Method
divide
(v: Vector | number)
src/lib/vector2d.ts:49
↓ 1 callers
Function
genCoordsObj
(hexId: HexId)
src/helpers/hexHelpers.ts:116
↓ 1 callers
Function
genHexId_coordsObj
(coords: cube_coords)
src/helpers/hexHelpers.ts:105
↓ 1 callers
Function
generate_tile_previews
( tile: Tile, preview_hex_info: PreviewHexInfo, spr: PIXI.Sprite, grph: PIXI.Graphics, cont: PIXI.Co
src/helpers/tileFns.ts:20
↓ 1 callers
Function
getHexGridParams
(terrainField: TerrainField)
src/helpers/hexHelpers.ts:343
↓ 1 callers
Function
getShiftForSquareExpansion
( direction: 'left' | 'top' | 'right' | 'bottom', amount: number, hexInfo: HexGridParams, )
src/helpers/dimensionHelpers.ts:30
↓ 1 callers
Function
getTextMetrics
(text: TextLayerText)
src/helpers/textHelpers.ts:46
↓ 1 callers
Function
get_image_scaled_for_hex_bydimension
( texWidth: number, texHeight: number, hexWidth: number, hexHeight: number, proportion_of_hex_width:
src/helpers/imageSizing.ts:39
↓ 1 callers
Function
get_image_scaled_for_hex_relative
( texWidth: number, texHeight: number, hexWidth: number, hexHeight: number, proportion_of_hex: numbe
src/helpers/imageSizing.ts:19
↓ 1 callers
Function
load_icon_texture
(icon_id: string, base64: string)
src/lib/texture_loader.ts:11
↓ 1 callers
Function
load_symbol_texture
(texture_id: string, base64: string)
src/lib/texture_loader.ts:51
↓ 1 callers
Function
merge_translation
(translation: Translation, merge: Translation)
src/stores/translation.ts:16
↓ 1 callers
Method
min
()
src/lib/vector2d.ts:82
↓ 1 callers
Function
networkFirst
({ request, fallbackUrl })
public/worker.js:14
↓ 1 callers
Function
numToAlphabet
(num: number)
src/helpers/coordHelpers.ts:5
↓ 1 callers
Function
pathPointsToPoints
(path: PathLayerPath)
src/helpers/pathHelpers.ts:44
↓ 1 callers
Function
putInCache
(request, response)
public/worker.js:9
↓ 1 callers
Function
registerServiceWorker
()
public/register.js:1
↓ 1 callers
Function
textStylesMatch
(style1: TextStyle, style2: TextStyle)
src/helpers/textHelpers.ts:25
Method
angleTo
(v: Vector)
src/lib/vector2d.ts:94
Function
cancelProspectiveUndoState
()
src/lib/undoManager.ts:87
Function
capitialize
(str: string)
src/helpers/string.ts:1
Function
collapseWaveGen
(hexesOut: number, rules = gf_test)
src/lib/terrainGenerator.ts:28
Function
completeUndoState
(data: UndoData, label?: string)
src/lib/undoManager.ts:59
Method
constructor
()
src/lib/db.ts:19
Method
constructor
(x: number, y: number)
src/lib/vector2d.ts:5
Function
convertSaveDataToLatest
(oldData: SaveData)
src/lib/saveDataConverter.ts:289
Function
convert_iconset_to_latest
(iconset: Iconset)
src/lib/iconsetConverter.ts:35
Function
convert_tileset_to_latest
(old: Tileset)
src/lib/tilesetConverter.ts:83
Function
copy_iconset
(set: Iconset, new_id: string)
src/helpers/iconFns.ts:101
Function
copy_tileset
(set: Tileset, new_id: string)
src/helpers/tileFns.ts:95
Method
cross
(v: Vector)
src/lib/vector2d.ts:70
Function
curWorldX
()
src/stores/panning.ts:35
Function
curWorldY
()
src/stores/panning.ts:39
Function
cyrb128
(str: string)
src/helpers/random.ts:19
Function
download
(data, strFileName, strMimeType)
src/lib/download2.js:9
Method
equals
(v: Vector)
src/lib/vector2d.ts:62
Function
findHitArea
(path: PathLayerPath)
src/helpers/pathHelpers.ts:91
Function
find_new_pos_square_orientation_change
( pos: { x: number; y: number }, old_hex_size: HexSizeParams, new_hex_size: HexSizeParams, cur_raised:
src/lib/map_resize.ts:75
next →
1–100 of 152, ranked by callers