MCPcopy Create free account

hub / github.com/3dugc/3D-Model-Optimizer / functions

Functions989 in github.com/3dugc/3D-Model-Optimizer

↓ 69 callersMethodget
(jobId: string)
src/jobs/job-store.ts:19
↓ 51 callersMethodquery
(text: string, values?: unknown[])
src/database/postgres.ts:8
↓ 50 callersFunctionmysqlDateTime
(value: string | Date | undefined)
src/database/mysql.ts:56
↓ 33 callersFunctioncompressTextures
( document: Document, options: TextureOptions )
src/components/texture-compressor.ts:219
↓ 32 callersFunctionexecutePipeline
( inputPath: string, outputPath: string, options: OptimizationOptions, onProgress?: ProgressCallback )
src/components/optimization-pipeline.ts:277
↓ 30 callersFunctionsimplifyMesh
( document: Document, options: SimplifyOptions )
src/components/mesh-simplifier.ts:207
↓ 28 callersMethodexecute
(sql: string, values?: any)
src/database/mysql.ts:13
↓ 27 callersFunctioncreateDocumentWithTexture
* Helper function to create a document with a texture.
tests/unit/texture-compressor.test.ts:42
↓ 26 callersFunctionensureMySqlSchema
(client: MySqlQueryable = getMySqlPool())
src/database/mysql.ts:33
↓ 26 callersFunctionensurePostgresSchema
(client: SqlQueryable = getPostgresPool())
src/database/postgres.ts:31
↓ 24 callersFunctionparseJson
(value: T | string)
src/accounts/account-store.ts:90
↓ 23 callersFunctioncompressDraco
( document: Document, options: DracoOptions )
src/components/draco-compressor.ts:188
↓ 22 callersMethodupdate
(jobId: string, updates: Partial<CloudJob>)
src/jobs/job-store.ts:21
↓ 21 callersFunctionparsePositiveNumber
(value: string | undefined, defaultValue: number)
src/config/parsers.ts:16
↓ 20 callersFunctionnowIso
()
src/accounts/account-store.ts:54
↓ 20 callersFunctionvalidateGlbBuffer
(buffer: Buffer, filename?: string)
src/utils/file-validator.ts:67
↓ 19 callersFunctioncreateDocumentWithBasicMesh
* Helper function to create a document with a basic mesh.
tests/unit/draco-compressor.test.ts:71
↓ 18 callersFunctionrequireWebUserId
(req: Request)
src/middleware/web-auth.ts:47
↓ 18 callersFunctiontempFile
(name: string)
tests/unit/account-wallet.test.ts:58
↓ 16 callersFunctionmerge
(document: Document)
src/components/mesh-merger.ts:69
↓ 16 callersFunctionparseNumber
(value: string | undefined, defaultValue: number)
src/config/parsers.ts:7
↓ 16 callersMethodsaveUploadedFile
* 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 callersMethodwrite
(data: JobStoreFile)
src/jobs/job-store.ts:247
↓ 15 callersFunctioncreateValidGlbHeader
* 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 callersFunctionclean
( document: Document, options?: CleanOptions )
src/components/resource-cleaner.ts:97
↓ 14 callersFunctioncreateDocumentWithIndexedMesh
* Creates a document with an indexed mesh grid.
tests/unit/mesh-simplifier.test.ts:185
↓ 14 callersMethodcreateRechargeOrder
(order: RechargeOrder)
src/accounts/account-store.ts:27
↓ 14 callersMethodread
()
src/accounts/account-store.ts:407
↓ 14 callersMethodread
()
src/jobs/job-store.ts:234
↓ 13 callersMethodgetWallet
(userId: string)
src/accounts/account-store.ts:25
↓ 13 callersMethodloginWithWechat
(input: UpsertWechatUserInput)
src/accounts/account-service.ts:82
↓ 13 callersFunctionmakeJob
(id: string)
tests/unit/cloud-runtime.test.ts:15
↓ 13 callersFunctionwithMySqlTransaction
(callback: (client: PoolConnection) => Promise<T>)
src/database/mysql.ts:40
↓ 13 callersFunctionwithPostgresTransaction
(callback: (client: PoolClient) => Promise<T>)
src/database/postgres.ts:38
↓ 12 callersFunctioncreateDocumentWithTriangles
* Creates a document with a mesh containing the specified number of triangles.
tests/unit/mesh-simplifier.test.ts:99
↓ 12 callersFunctiongetMySqlPool
()
src/database/mysql.ts:23
↓ 12 callersFunctiongetPostgresPool
()
src/database/postgres.ts:14
↓ 12 callersFunctionnowIso
()
src/invoices/invoice-service.ts:18
↓ 12 callersFunctionparseJson
(value: T | string)
src/invoices/invoice-store.ts:53
↓ 12 callersFunctiontempFile
(name: string)
tests/unit/invoice-service.test.ts:34
↓ 11 callersFunctionasRecord
(value: unknown)
src/utils/optimization-metadata.ts:12
↓ 11 callersMethodsaveResultFile
* 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 callersMethodgetResultFilePath
* 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 callersFunctiongetWebAuthHeaders
()
public/app.js:73
↓ 10 callersMethodmarkRechargePaid
(orderId: string, transactionId?: string)
src/accounts/account-store.ts:30
↓ 10 callersFunctionrenderProgressStep
(step, status, label, detail = '')
public/app.js:1240
↓ 10 callersMethodtransition
(jobId: string, status: CloudJobStatus, updates?: Partial<CloudJob>)
src/jobs/job-store.ts:22
↓ 9 callersMethodcreate
(job: CloudJob)
src/jobs/job-store.ts:18
↓ 9 callersFunctioncreateLedgerEntry
(input: Omit<WalletLedgerEntry, 'id' | 'createdAt'>)
src/accounts/account-store.ts:77
↓ 9 callersFunctionparseBoolean
(value: string | undefined, defaultValue: boolean)
src/config/parsers.ts:31
↓ 9 callersFunctionrequireScope
(scope: string)
src/middleware/auth.ts:139
↓ 9 callersFunctionsanitizeObjectKey
(key: string)
src/cloud/object-storage.ts:20
↓ 9 callersFunctionshowError
(msg)
public/app.js:1456
↓ 9 callersFunctionvalidateFileExtension
(filename: string)
src/utils/file-validator.ts:145
↓ 9 callersMethodwrite
(data: AccountStoreFile)
src/accounts/account-store.ts:426
↓ 8 callersMethodcreateJob
(input: CreateCloudJobInput)
src/jobs/job-service.ts:63
↓ 8 callersFunctioncreateMeshWithMaterial
* 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 callersFunctionensureMySqlInvoiceSchema
(client: MySqlQueryable = getMySqlPool())
src/invoices/invoice-store.ts:160
↓ 8 callersFunctionensurePostgresInvoiceSchema
(client: SqlQueryable = getPostgresPool())
src/invoices/invoice-store.ts:358
↓ 8 callersFunctionformatCount
(value)
public/app.js:75
↓ 8 callersFunctionformatSize
(bytes)
public/app.js:1432
↓ 8 callersFunctiongetFileExtension
(filename: string)
src/components/format-converter.ts:37
↓ 8 callersMethodgetJob
(jobId: string)
src/jobs/job-service.ts:131
↓ 8 callersFunctionnullableTimestamp
(value: string | undefined)
src/jobs/job-store.ts:263
↓ 8 callersFunctionparseJson
(value: T | string)
src/monitor/state-reader.ts:30
↓ 8 callersMethodread
()
src/invoices/invoice-store.ts:133
↓ 7 callersFunctionassertTenantAccess
(principal: ApiPrincipal | undefined, tenantId: string)
src/jobs/cos-manifest.ts:82
↓ 7 callersFunctionassertTenantObjectPrefix
(tenantId: string, object: CosObjectRef)
src/jobs/cos-manifest.ts:70
↓ 7 callersFunctioncreateErrorResponse
( code: ErrorCode, message?: string, details?: Record<string, unknown> )
src/models/error.ts:149
↓ 7 callersFunctionjobFromRow
(row: JobRow)
src/jobs/job-store.ts:259
↓ 7 callersFunctionmysqlJobFromRow
(row: MySqlJobRow)
src/jobs/job-store.ts:497
↓ 7 callersFunctionnormalizeWechatOAuthReturnTo
(returnTo: string | undefined)
src/accounts/wechat-oauth.ts:81
↓ 7 callersFunctionvalidateFileSize
(size: number)
src/utils/file-validator.ts:156
↓ 6 callersFunctionbuildClaimedJob
(current: CloudJob, input: ClaimJobInput, now: Date)
src/jobs/job-store.ts:81
↓ 6 callersFunctioncanClaimJob
(job: CloudJob, now: Date)
src/jobs/job-store.ts:74
↓ 6 callersFunctioncreateDocumentWithSameMaterialMeshes
* Creates a document with multiple meshes sharing the same material.
tests/unit/mesh-merger.test.ts:43
↓ 6 callersFunctioncreateDocumentWithUnusedResources
* Creates a document with unused resources.
tests/unit/resource-cleaner.test.ts:59
↓ 6 callersFunctioncreateErrorResponse
* 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 callersMethodcreateRechargeInvoiceFromWechatTitle
(input: CreateRechargeInvoiceFromWechatTitleInput)
src/invoices/invoice-service.ts:125
↓ 6 callersFunctioncreateTempFilePath
(name: string)
tests/unit/cloud-runtime.test.ts:43
↓ 6 callersFunctioncreateWallet
(user: WebUser, now: string = nowIso())
src/accounts/account-store.ts:66
↓ 6 callersFunctioncreateWebTenantId
(userId: string)
src/accounts/account-store.ts:58
↓ 6 callersFunctiondisplayWallet
(wallet)
public/app.js:262
↓ 6 callersFunctionfitCamera
(camera, controls, model)
public/app.js:859
↓ 6 callersFunctionformatMoney
(cents)
public/app.js:74
↓ 6 callersMethodgetCredentials
()
src/cloud/tencent-credentials.ts:12
↓ 6 callersMethodgetResultMetadataPath
* 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 callersMethodgetUploadedFilePath
* 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 callersMethodhas
(type: string)
src/tasks/registry.ts:11
↓ 6 callersFunctionhasNonFinite
(arr: ArrayLike<number>)
src/components/geometry-fixer.ts:23
↓ 6 callersFunctionnowIso
()
src/jobs/job-service.ts:13
↓ 6 callersFunctionpad
(part: number, size = 2)
src/database/mysql.ts:60
↓ 6 callersFunctionprepareModelInput
(options: ModelInputPrepareOptions)
src/utils/model-input.ts:143
↓ 6 callersMethodreleaseJobCharge
(jobId: string, note?: string)
src/accounts/account-store.ts:34
↓ 6 callersMethodrequireUser
(userId: string)
src/accounts/account-service.ts:122
↓ 6 callersFunctiontoggleWireframe
(model, enabled)
public/app.js:865
↓ 6 callersMethodupdateInvoiceRequest
(request: InvoiceRequest)
src/invoices/invoice-store.ts:21
↓ 5 callersFunctionassertInvoiceEnabled
()
src/routes/invoices.ts:15
↓ 5 callersFunctionassertJobStatusTransition
(from: CloudJobStatus, to: CloudJobStatus)
src/jobs/state-machine.ts:22
↓ 5 callersFunctionbuildAuthServiceUrl
(path: string, runtimeConfig: AuthServiceRuntimeConfig)
src/accounts/auth-service.ts:68
next →1–100 of 989, ranked by callers