Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3dugc/3D-Model-Optimizer
/ functions
Functions
989 in github.com/3dugc/3D-Model-Optimizer
⨍
Functions
989
◇
Types & classes
311
↓ 69 callers
Method
get
(jobId: string)
src/jobs/job-store.ts:19
↓ 51 callers
Method
query
(text: string, values?: unknown[])
src/database/postgres.ts:8
↓ 50 callers
Function
mysqlDateTime
(value: string | Date | undefined)
src/database/mysql.ts:56
↓ 33 callers
Function
compressTextures
( document: Document, options: TextureOptions )
src/components/texture-compressor.ts:219
↓ 32 callers
Function
executePipeline
( inputPath: string, outputPath: string, options: OptimizationOptions, onProgress?: ProgressCallback )
src/components/optimization-pipeline.ts:277
↓ 30 callers
Function
simplifyMesh
( document: Document, options: SimplifyOptions )
src/components/mesh-simplifier.ts:207
↓ 28 callers
Method
execute
(sql: string, values?: any)
src/database/mysql.ts:13
↓ 27 callers
Function
createDocumentWithTexture
* Helper function to create a document with a texture.
tests/unit/texture-compressor.test.ts:42
↓ 26 callers
Function
ensureMySqlSchema
(client: MySqlQueryable = getMySqlPool())
src/database/mysql.ts:33
↓ 26 callers
Function
ensurePostgresSchema
(client: SqlQueryable = getPostgresPool())
src/database/postgres.ts:31
↓ 24 callers
Function
parseJson
(value: T | string)
src/accounts/account-store.ts:90
↓ 23 callers
Function
compressDraco
( document: Document, options: DracoOptions )
src/components/draco-compressor.ts:188
↓ 22 callers
Method
update
(jobId: string, updates: Partial<CloudJob>)
src/jobs/job-store.ts:21
↓ 21 callers
Function
parsePositiveNumber
(value: string | undefined, defaultValue: number)
src/config/parsers.ts:16
↓ 20 callers
Function
nowIso
()
src/accounts/account-store.ts:54
↓ 20 callers
Function
validateGlbBuffer
(buffer: Buffer, filename?: string)
src/utils/file-validator.ts:67
↓ 19 callers
Function
createDocumentWithBasicMesh
* Helper function to create a document with a basic mesh.
tests/unit/draco-compressor.test.ts:71
↓ 18 callers
Function
requireWebUserId
(req: Request)
src/middleware/web-auth.ts:47
↓ 18 callers
Function
tempFile
(name: string)
tests/unit/account-wallet.test.ts:58
↓ 16 callers
Function
merge
(document: Document)
src/components/mesh-merger.ts:69
↓ 16 callers
Function
parseNumber
(value: string | undefined, defaultValue: number)
src/config/parsers.ts:7
↓ 16 callers
Method
saveUploadedFile
* Saves an uploaded file for a task * * @param taskId - The task identifier * @param buffer - The file buffer to save * @returns The full
src/utils/storage.ts:115
↓ 16 callers
Method
write
(data: JobStoreFile)
src/jobs/job-store.ts:247
↓ 15 callers
Function
createValidGlbHeader
* Creates a valid GLB header buffer * GLB header structure: * - Bytes 0-3: Magic number 0x46546C67 ('glTF') * - Bytes 4-7: Version (2) * - Bytes 8
tests/unit/file-validator.test.ts:27
↓ 14 callers
Function
clean
( document: Document, options?: CleanOptions )
src/components/resource-cleaner.ts:97
↓ 14 callers
Function
createDocumentWithIndexedMesh
* Creates a document with an indexed mesh grid.
tests/unit/mesh-simplifier.test.ts:185
↓ 14 callers
Method
createRechargeOrder
(order: RechargeOrder)
src/accounts/account-store.ts:27
↓ 14 callers
Method
read
()
src/accounts/account-store.ts:407
↓ 14 callers
Method
read
()
src/jobs/job-store.ts:234
↓ 13 callers
Method
getWallet
(userId: string)
src/accounts/account-store.ts:25
↓ 13 callers
Method
loginWithWechat
(input: UpsertWechatUserInput)
src/accounts/account-service.ts:82
↓ 13 callers
Function
makeJob
(id: string)
tests/unit/cloud-runtime.test.ts:15
↓ 13 callers
Function
withMySqlTransaction
(callback: (client: PoolConnection) => Promise<T>)
src/database/mysql.ts:40
↓ 13 callers
Function
withPostgresTransaction
(callback: (client: PoolClient) => Promise<T>)
src/database/postgres.ts:38
↓ 12 callers
Function
createDocumentWithTriangles
* Creates a document with a mesh containing the specified number of triangles.
tests/unit/mesh-simplifier.test.ts:99
↓ 12 callers
Function
getMySqlPool
()
src/database/mysql.ts:23
↓ 12 callers
Function
getPostgresPool
()
src/database/postgres.ts:14
↓ 12 callers
Function
nowIso
()
src/invoices/invoice-service.ts:18
↓ 12 callers
Function
parseJson
(value: T | string)
src/invoices/invoice-store.ts:53
↓ 12 callers
Function
tempFile
(name: string)
tests/unit/invoice-service.test.ts:34
↓ 11 callers
Function
asRecord
(value: unknown)
src/utils/optimization-metadata.ts:12
↓ 11 callers
Method
saveResultFile
* Saves an optimized result file for a task * * @param taskId - The task identifier * @param buffer - The optimized file buffer to save *
src/utils/storage.ts:131
↓ 10 callers
Method
getResultFilePath
* Gets the path to a result file * * @param taskId - The task identifier * @returns The full path to the result file
src/utils/storage.ts:214
↓ 10 callers
Function
getWebAuthHeaders
()
public/app.js:73
↓ 10 callers
Method
markRechargePaid
(orderId: string, transactionId?: string)
src/accounts/account-store.ts:30
↓ 10 callers
Function
renderProgressStep
(step, status, label, detail = '')
public/app.js:1240
↓ 10 callers
Method
transition
(jobId: string, status: CloudJobStatus, updates?: Partial<CloudJob>)
src/jobs/job-store.ts:22
↓ 9 callers
Method
create
(job: CloudJob)
src/jobs/job-store.ts:18
↓ 9 callers
Function
createLedgerEntry
(input: Omit<WalletLedgerEntry, 'id' | 'createdAt'>)
src/accounts/account-store.ts:77
↓ 9 callers
Function
parseBoolean
(value: string | undefined, defaultValue: boolean)
src/config/parsers.ts:31
↓ 9 callers
Function
requireScope
(scope: string)
src/middleware/auth.ts:139
↓ 9 callers
Function
sanitizeObjectKey
(key: string)
src/cloud/object-storage.ts:20
↓ 9 callers
Function
showError
(msg)
public/app.js:1456
↓ 9 callers
Function
validateFileExtension
(filename: string)
src/utils/file-validator.ts:145
↓ 9 callers
Method
write
(data: AccountStoreFile)
src/accounts/account-store.ts:426
↓ 8 callers
Method
createJob
(input: CreateCloudJobInput)
src/jobs/job-service.ts:63
↓ 8 callers
Function
createMeshWithMaterial
* Creates a simple mesh with a primitive and position accessor. * Optionally assigns a material to the primitive.
tests/unit/mesh-merger.test.ts:18
↓ 8 callers
Function
ensureMySqlInvoiceSchema
(client: MySqlQueryable = getMySqlPool())
src/invoices/invoice-store.ts:160
↓ 8 callers
Function
ensurePostgresInvoiceSchema
(client: SqlQueryable = getPostgresPool())
src/invoices/invoice-store.ts:358
↓ 8 callers
Function
formatCount
(value)
public/app.js:75
↓ 8 callers
Function
formatSize
(bytes)
public/app.js:1432
↓ 8 callers
Function
getFileExtension
(filename: string)
src/components/format-converter.ts:37
↓ 8 callers
Method
getJob
(jobId: string)
src/jobs/job-service.ts:131
↓ 8 callers
Function
nullableTimestamp
(value: string | undefined)
src/jobs/job-store.ts:263
↓ 8 callers
Function
parseJson
(value: T | string)
src/monitor/state-reader.ts:30
↓ 8 callers
Method
read
()
src/invoices/invoice-store.ts:133
↓ 7 callers
Function
assertTenantAccess
(principal: ApiPrincipal | undefined, tenantId: string)
src/jobs/cos-manifest.ts:82
↓ 7 callers
Function
assertTenantObjectPrefix
(tenantId: string, object: CosObjectRef)
src/jobs/cos-manifest.ts:70
↓ 7 callers
Function
createErrorResponse
( code: ErrorCode, message?: string, details?: Record<string, unknown> )
src/models/error.ts:149
↓ 7 callers
Function
jobFromRow
(row: JobRow)
src/jobs/job-store.ts:259
↓ 7 callers
Function
mysqlJobFromRow
(row: MySqlJobRow)
src/jobs/job-store.ts:497
↓ 7 callers
Function
normalizeWechatOAuthReturnTo
(returnTo: string | undefined)
src/accounts/wechat-oauth.ts:81
↓ 7 callers
Function
validateFileSize
(size: number)
src/utils/file-validator.ts:156
↓ 6 callers
Function
buildClaimedJob
(current: CloudJob, input: ClaimJobInput, now: Date)
src/jobs/job-store.ts:81
↓ 6 callers
Function
canClaimJob
(job: CloudJob, now: Date)
src/jobs/job-store.ts:74
↓ 6 callers
Function
createDocumentWithSameMaterialMeshes
* Creates a document with multiple meshes sharing the same material.
tests/unit/mesh-merger.test.ts:43
↓ 6 callers
Function
createDocumentWithUnusedResources
* Creates a document with unused resources.
tests/unit/resource-cleaner.test.ts:59
↓ 6 callers
Function
createErrorResponse
* Create an error response object. * @param code - Error code * @param message - Error message * @param details - Optional error details * @return
src/middleware/error-handler.ts:44
↓ 6 callers
Method
createRechargeInvoiceFromWechatTitle
(input: CreateRechargeInvoiceFromWechatTitleInput)
src/invoices/invoice-service.ts:125
↓ 6 callers
Function
createTempFilePath
(name: string)
tests/unit/cloud-runtime.test.ts:43
↓ 6 callers
Function
createWallet
(user: WebUser, now: string = nowIso())
src/accounts/account-store.ts:66
↓ 6 callers
Function
createWebTenantId
(userId: string)
src/accounts/account-store.ts:58
↓ 6 callers
Function
displayWallet
(wallet)
public/app.js:262
↓ 6 callers
Function
fitCamera
(camera, controls, model)
public/app.js:859
↓ 6 callers
Function
formatMoney
(cents)
public/app.js:74
↓ 6 callers
Method
getCredentials
()
src/cloud/tencent-credentials.ts:12
↓ 6 callers
Method
getResultMetadataPath
* Gets the path to result metadata. * * @param taskId - The task identifier * @returns The full path to the metadata file
src/utils/storage.ts:224
↓ 6 callers
Method
getUploadedFilePath
* Gets the path to an uploaded file * * @param taskId - The task identifier * @returns The full path to the uploaded file
src/utils/storage.ts:204
↓ 6 callers
Method
has
(type: string)
src/tasks/registry.ts:11
↓ 6 callers
Function
hasNonFinite
(arr: ArrayLike<number>)
src/components/geometry-fixer.ts:23
↓ 6 callers
Function
nowIso
()
src/jobs/job-service.ts:13
↓ 6 callers
Function
pad
(part: number, size = 2)
src/database/mysql.ts:60
↓ 6 callers
Function
prepareModelInput
(options: ModelInputPrepareOptions)
src/utils/model-input.ts:143
↓ 6 callers
Method
releaseJobCharge
(jobId: string, note?: string)
src/accounts/account-store.ts:34
↓ 6 callers
Method
requireUser
(userId: string)
src/accounts/account-service.ts:122
↓ 6 callers
Function
toggleWireframe
(model, enabled)
public/app.js:865
↓ 6 callers
Method
updateInvoiceRequest
(request: InvoiceRequest)
src/invoices/invoice-store.ts:21
↓ 5 callers
Function
assertInvoiceEnabled
()
src/routes/invoices.ts:15
↓ 5 callers
Function
assertJobStatusTransition
(from: CloudJobStatus, to: CloudJobStatus)
src/jobs/state-machine.ts:22
↓ 5 callers
Function
buildAuthServiceUrl
(path: string, runtimeConfig: AuthServiceRuntimeConfig)
src/accounts/auth-service.ts:68
next →
1–100 of 989, ranked by callers