MCPcopy Create free account

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

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

↓ 5 callersFunctionclamp
(val: number, min: number, max: number)
src/utils/options-validator.ts:21
↓ 5 callersFunctionclearModel
(scene, model)
public/app.js:855
↓ 5 callersFunctioncreateGltfNodeIO
(options: GltfIOOptions = {})
src/components/gltf-io.ts:30
↓ 5 callersMethodcreatePaidWebJob
(input: CreatePaidWebJobInput)
src/accounts/account-service.ts:242
↓ 5 callersFunctioncreateTencentCredentialProvider
()
src/cloud/tencent-credentials.ts:125
↓ 5 callersMethoddeleteMessage
(receiptHandle: string)
src/cloud/tencent-cmq-client.ts:100
↓ 5 callersMethodensureDirectoryExists
* Ensures a directory exists, creating it if necessary
src/utils/storage.ts:345
↓ 5 callersFunctionescapeHtml
(value)
public/app.js:80
↓ 5 callersFunctionfixNonFinite
(arr: Float32Array)
src/components/geometry-fixer.ts:30
↓ 5 callersFunctiongetAuthServiceRuntimeConfig
()
src/accounts/auth-service.ts:83
↓ 5 callersMethodgetJobCharge
(jobId: string)
src/accounts/account-store.ts:35
↓ 5 callersMethodlist
()
src/jobs/job-store.ts:27
↓ 5 callersMethodrequest
(action: TencentCmqAction, actionParams: Record<string, string>)
src/cloud/tencent-cmq-client.ts:119
↓ 5 callersFunctionrequireLoginForAction
(action)
public/app.js:886
↓ 5 callersFunctionsetPlaceholder
(elementId, message)
public/app.js:892
↓ 5 callersMethodsettleJobCharge
(jobId: string)
src/accounts/account-store.ts:33
↓ 5 callersFunctionsignCallbackPayload
(payload: CallbackPayload, secret: string, timestamp: string)
src/callbacks/callback-service.ts:11
↓ 5 callersFunctionstopWechatLoginPolling
()
public/app.js:538
↓ 5 callersFunctionstringOrUndefined
(value: unknown)
src/jobs/cos-manifest.ts:139
↓ 5 callersFunctionupdateMySqlJobRow
(client: MySqlQueryable, job: CloudJob)
src/jobs/job-store.ts:501
↓ 5 callersMethoduploadedFileExists
* Checks if an uploaded file exists for a task * * @param taskId - The task identifier * @returns true if the file exists
src/utils/storage.ts:234
↓ 5 callersFunctionupsertJobRow
(client: SqlQueryable, job: CloudJob)
src/jobs/job-store.ts:267
↓ 5 callersFunctionverifyWechatOAuthState
( state: string | undefined, options: SignedStateOptions = {} )
src/accounts/wechat-oauth.ts:99
↓ 4 callersFunctionaddMs
(date: Date, ms: number)
src/jobs/job-store.ts:52
↓ 4 callersMethodclaim
(jobId: string, input: ClaimJobInput)
src/jobs/job-store.ts:23
↓ 4 callersMethodclaimNext
(input: ClaimJobInput)
src/jobs/job-store.ts:24
↓ 4 callersMethodcompleteUpload
(jobId: string, input?: CosObjectRef)
src/jobs/job-service.ts:139
↓ 4 callersFunctioncreatePaymentProvider
()
src/payments/index.ts:10
↓ 4 callersFunctiondeleteTaskFiles
(taskId: string)
src/utils/storage.ts:597
↓ 4 callersMethoddeleteTaskFiles
* Deletes all files associated with a task * * @param taskId - The task identifier * @returns Object indicating which files were deleted
src/utils/storage.ts:278
↓ 4 callersFunctiondescribeOptimizationOptions
(metadata: Pick<ResultMetadata, 'options' | 'presetName'> | null)
src/utils/optimization-metadata.ts:108
↓ 4 callersFunctionevaluateAlerts
( jobs: CloudJob[], workers: WorkerHeartbeat[], queueAttributes: TencentCmqQueueAttributes | undefined,
src/monitor/business-monitor.ts:102
↓ 4 callersFunctionexpiresAtIso
(expiresInSeconds: number)
src/cloud/object-storage.ts:254
↓ 4 callersFunctionfetchOptimizedFile
(taskId, downloadUrl = null)
public/app.js:1401
↓ 4 callersMethodfindRechargeOrderByOutTradeNo
(outTradeNo: string)
src/accounts/account-store.ts:29
↓ 4 callersFunctionformatRatio
(value)
public/app.js:76
↓ 4 callersMethodgetLocalPath
(object: CosObjectRef)
src/cloud/object-storage.ts:70
↓ 4 callersMethodgetRechargeOrder
(orderId: string)
src/accounts/account-store.ts:28
↓ 4 callersMethodgetUploadedFile
* Retrieves an uploaded file for a task * * @param taskId - The task identifier * @returns The file buffer, or null if not found
src/utils/storage.ts:144
↓ 4 callersFunctionhashOptimizationOptions
(options: OptimizationOptions)
src/utils/optimization-metadata.ts:45
↓ 4 callersFunctionhmac
(key: string | Buffer, value: string, encoding?: 'hex')
src/cloud/tencent-cloud-api.ts:81
↓ 4 callersFunctionhmac
(key: string | Buffer, value: string, encoding?: 'hex')
src/dispatcher/tencent-as-client.ts:177
↓ 4 callersFunctionisEnabled
(options: Record<string, unknown>, key: string)
src/utils/optimization-metadata.ts:18
↓ 4 callersMethodlistLedger
(userId: string, limit?: number)
src/accounts/account-store.ts:26
↓ 4 callersFunctionloadModelFromFile
(file, scene, side)
public/app.js:787
↓ 4 callersMethodloginWithAuthService
(input: UpsertAuthServiceUserInput)
src/accounts/account-service.ts:88
↓ 4 callersFunctionmysqlOrderFromRow
(row: MySqlOrderRow)
src/billing/order-store.ts:241
↓ 4 callersFunctionnullableTimestamp
(value: string | undefined)
src/billing/order-store.ts:98
↓ 4 callersFunctionorderFromRow
(row: OrderRow)
src/billing/order-store.ts:94
↓ 4 callersMethodparseWechatInvoiceEvent
( headers: Record<string, unknown>, rawBody: Buffer | string )
src/invoices/invoice-service.ts:268
↓ 4 callersMethodpublish
(job: CloudJob)
src/jobs/job-service.ts:240
↓ 4 callersFunctionquantizeVertices
( document: Document, options?: QuantizeOptions )
src/components/vertex-quantizer.ts:169
↓ 4 callersMethodread
()
src/billing/order-store.ts:71
↓ 4 callersMethodrecoverExpiredLeases
(input?: RecoverExpiredJobLeasesInput)
src/jobs/job-store.ts:26
↓ 4 callersMethodrequireJob
(jobId: string)
src/jobs/job-service.ts:251
↓ 4 callersFunctionrequireString
(value: string | undefined, field: string)
src/routes/billing.ts:20
↓ 4 callersFunctionresolveLeaseDurationMs
(value?: number)
src/jobs/job-store.ts:42
↓ 4 callersMethodresultFileExists
* Checks if a result file exists for a task * * @param taskId - The task identifier * @returns true if the file exists
src/utils/storage.ts:245
↓ 4 callersMethodsend
(title: string, description: string)
src/monitor/tencent-custom-alarm.ts:5
↓ 4 callersMethodstop
()
src/worker/cloud-worker.ts:86
↓ 4 callersFunctionstopRechargePolling
()
public/app.js:401
↓ 4 callersFunctionsummarizeOptimizationOptions
(metadata: Pick<ResultMetadata, 'options' | 'presetName'> | null)
src/utils/optimization-metadata.ts:61
↓ 4 callersFunctionupdateOptimizeButtonLabel
()
public/app.js:375
↓ 3 callersFunctionapplyOptimizationOptions
(options)
public/app.js:1195
↓ 3 callersFunctionassertTaskTypeAccess
(principal: ApiPrincipal | undefined, taskType: string)
src/jobs/cos-manifest.ts:88
↓ 3 callersFunctioncalculateDesiredInstances
(input: { requiredSlots: number; slotsPerInstance: number; minInstances: number; maxInstances: number;
src/dispatcher/scaling.ts:43
↓ 3 callersFunctioncanAccessTaskType
(principal: ApiPrincipal | undefined, taskType: string)
src/middleware/auth.ts:111
↓ 3 callersFunctioncanAccessTenant
(principal: ApiPrincipal | undefined, tenantId: string)
src/middleware/auth.ts:106
↓ 3 callersMethodcancelJob
(jobId: string)
src/jobs/job-service.ts:200
↓ 3 callersMethodcancelPaidWebJob
(userId: string, jobId: string)
src/accounts/account-service.ts:295
↓ 3 callersMethodcleanupOldFiles
* Cleans up files older than the specified age * * @param maxAgeMs - Maximum age in milliseconds * @returns Object with counts of deleted fi
src/utils/storage.ts:291
↓ 3 callersFunctioncleanupUploadedFile
(file: Express.Multer.File | undefined)
src/utils/model-upload.ts:51
↓ 3 callersMethodcompress
* Compress geometry data in a gltf-transform Document using Draco. * * @param document - The gltf-transform Document to process * @param opti
src/components/draco-compressor.ts:50
↓ 3 callersFunctioncomputeNormals
* Compute smooth normals from position + index data.
src/components/geometry-fixer.ts:68
↓ 3 callersFunctioncountJobs
(jobs: CloudJob[], status: CloudJob['status'])
src/monitor/business-monitor.ts:185
↓ 3 callersFunctioncreateAuthServiceWechatOpenId
(authUserId: string)
src/accounts/account-store.ts:62
↓ 3 callersFunctioncreateDocumentWithDifferentMaterialMeshes
* Creates a document with meshes using different materials.
tests/unit/mesh-merger.test.ts:66
↓ 3 callersFunctioncreateJobStore
()
src/jobs/job-store.ts:727
↓ 3 callersFunctioncreateMeshInfoHtml
(meshes, recommendation = currentSimplifyRecommendation)
public/app.js:1011
↓ 3 callersFunctioncreateObjectStorageProvider
()
src/cloud/object-storage.ts:248
↓ 3 callersMethodcreateRechargeOrderInvoice
(userId: string, orderId: string, buyer: InvoiceBuyer)
src/invoices/invoice-service.ts:201
↓ 3 callersFunctioncreateTestDocument
* Create a simple GLB document with a mesh for testing.
tests/unit/optimization-pipeline.test.ts:41
↓ 3 callersFunctioncreateTextureCompressor
()
src/components/texture-compressor.ts:312
↓ 3 callersMethodcreateUploadGrant
(object: CosObjectRef, expiresInSeconds?: number)
src/cloud/object-storage.ts:16
↓ 3 callersFunctioncreateWechatOAuthState
(returnTo: string | undefined, options: SignedStateOptions = {})
src/accounts/wechat-oauth.ts:89
↓ 3 callersFunctioncreateZip
(entries: Array<{ name: string; data: Buffer }>)
tests/unit/model-input.test.ts:27
↓ 3 callersFunctiondecodeUploadFilename
(filename: string)
src/utils/model-input.ts:201
↓ 3 callersMethoddeleteFileIfExists
* Deletes a file if it exists
src/utils/storage.ts:402
↓ 3 callersMethoddescribeAutoScalingGroups
(groupIds: string[])
src/dispatcher/tencent-as-client.ts:48
↓ 3 callersFunctiondisplayAccount
(user, wallet)
public/app.js:269
↓ 3 callersFunctiondisplayLightModelInfo
(file, ext, previewMessage, meshStats = null)
public/app.js:1027
↓ 3 callersFunctionensureDirForFile
(filePath: string)
src/cloud/object-storage.ts:28
↓ 3 callersFunctiongetModelAwareDefaultOptions
()
public/app.js:982
↓ 3 callersMethodgetPaidWebJob
(userId: string, jobId: string)
src/accounts/account-service.ts:260
↓ 3 callersMethodgetResultFile
* Retrieves an optimized result file for a task * * @param taskId - The task identifier * @returns The file buffer, or null if not found
src/utils/storage.ts:157
↓ 3 callersFunctiongetResultFilePath
(taskId: string)
src/utils/storage.ts:626
↓ 3 callersFunctiongetResultMetadata
(taskId: string)
src/utils/storage.ts:577
↓ 3 callersMethodgetWallet
(userId: string)
src/accounts/account-service.ts:128
↓ 3 callersFunctiongetWechatOAuthRuntimeConfig
()
src/accounts/wechat-oauth.ts:117
↓ 3 callersFunctionhasScope
(principal: ApiPrincipal | undefined, scope: string)
src/middleware/auth.ts:101
← previousnext →101–200 of 989, ranked by callers