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
↓ 5 callers
Function
clamp
(val: number, min: number, max: number)
src/utils/options-validator.ts:21
↓ 5 callers
Function
clearModel
(scene, model)
public/app.js:855
↓ 5 callers
Function
createGltfNodeIO
(options: GltfIOOptions = {})
src/components/gltf-io.ts:30
↓ 5 callers
Method
createPaidWebJob
(input: CreatePaidWebJobInput)
src/accounts/account-service.ts:242
↓ 5 callers
Function
createTencentCredentialProvider
()
src/cloud/tencent-credentials.ts:125
↓ 5 callers
Method
deleteMessage
(receiptHandle: string)
src/cloud/tencent-cmq-client.ts:100
↓ 5 callers
Method
ensureDirectoryExists
* Ensures a directory exists, creating it if necessary
src/utils/storage.ts:345
↓ 5 callers
Function
escapeHtml
(value)
public/app.js:80
↓ 5 callers
Function
fixNonFinite
(arr: Float32Array)
src/components/geometry-fixer.ts:30
↓ 5 callers
Function
getAuthServiceRuntimeConfig
()
src/accounts/auth-service.ts:83
↓ 5 callers
Method
getJobCharge
(jobId: string)
src/accounts/account-store.ts:35
↓ 5 callers
Method
list
()
src/jobs/job-store.ts:27
↓ 5 callers
Method
request
(action: TencentCmqAction, actionParams: Record<string, string>)
src/cloud/tencent-cmq-client.ts:119
↓ 5 callers
Function
requireLoginForAction
(action)
public/app.js:886
↓ 5 callers
Function
setPlaceholder
(elementId, message)
public/app.js:892
↓ 5 callers
Method
settleJobCharge
(jobId: string)
src/accounts/account-store.ts:33
↓ 5 callers
Function
signCallbackPayload
(payload: CallbackPayload, secret: string, timestamp: string)
src/callbacks/callback-service.ts:11
↓ 5 callers
Function
stopWechatLoginPolling
()
public/app.js:538
↓ 5 callers
Function
stringOrUndefined
(value: unknown)
src/jobs/cos-manifest.ts:139
↓ 5 callers
Function
updateMySqlJobRow
(client: MySqlQueryable, job: CloudJob)
src/jobs/job-store.ts:501
↓ 5 callers
Method
uploadedFileExists
* 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 callers
Function
upsertJobRow
(client: SqlQueryable, job: CloudJob)
src/jobs/job-store.ts:267
↓ 5 callers
Function
verifyWechatOAuthState
( state: string | undefined, options: SignedStateOptions = {} )
src/accounts/wechat-oauth.ts:99
↓ 4 callers
Function
addMs
(date: Date, ms: number)
src/jobs/job-store.ts:52
↓ 4 callers
Method
claim
(jobId: string, input: ClaimJobInput)
src/jobs/job-store.ts:23
↓ 4 callers
Method
claimNext
(input: ClaimJobInput)
src/jobs/job-store.ts:24
↓ 4 callers
Method
completeUpload
(jobId: string, input?: CosObjectRef)
src/jobs/job-service.ts:139
↓ 4 callers
Function
createPaymentProvider
()
src/payments/index.ts:10
↓ 4 callers
Function
deleteTaskFiles
(taskId: string)
src/utils/storage.ts:597
↓ 4 callers
Method
deleteTaskFiles
* 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 callers
Function
describeOptimizationOptions
(metadata: Pick<ResultMetadata, 'options' | 'presetName'> | null)
src/utils/optimization-metadata.ts:108
↓ 4 callers
Function
evaluateAlerts
( jobs: CloudJob[], workers: WorkerHeartbeat[], queueAttributes: TencentCmqQueueAttributes | undefined,
src/monitor/business-monitor.ts:102
↓ 4 callers
Function
expiresAtIso
(expiresInSeconds: number)
src/cloud/object-storage.ts:254
↓ 4 callers
Function
fetchOptimizedFile
(taskId, downloadUrl = null)
public/app.js:1401
↓ 4 callers
Method
findRechargeOrderByOutTradeNo
(outTradeNo: string)
src/accounts/account-store.ts:29
↓ 4 callers
Function
formatRatio
(value)
public/app.js:76
↓ 4 callers
Method
getLocalPath
(object: CosObjectRef)
src/cloud/object-storage.ts:70
↓ 4 callers
Method
getRechargeOrder
(orderId: string)
src/accounts/account-store.ts:28
↓ 4 callers
Method
getUploadedFile
* 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 callers
Function
hashOptimizationOptions
(options: OptimizationOptions)
src/utils/optimization-metadata.ts:45
↓ 4 callers
Function
hmac
(key: string | Buffer, value: string, encoding?: 'hex')
src/cloud/tencent-cloud-api.ts:81
↓ 4 callers
Function
hmac
(key: string | Buffer, value: string, encoding?: 'hex')
src/dispatcher/tencent-as-client.ts:177
↓ 4 callers
Function
isEnabled
(options: Record<string, unknown>, key: string)
src/utils/optimization-metadata.ts:18
↓ 4 callers
Method
listLedger
(userId: string, limit?: number)
src/accounts/account-store.ts:26
↓ 4 callers
Function
loadModelFromFile
(file, scene, side)
public/app.js:787
↓ 4 callers
Method
loginWithAuthService
(input: UpsertAuthServiceUserInput)
src/accounts/account-service.ts:88
↓ 4 callers
Function
mysqlOrderFromRow
(row: MySqlOrderRow)
src/billing/order-store.ts:241
↓ 4 callers
Function
nullableTimestamp
(value: string | undefined)
src/billing/order-store.ts:98
↓ 4 callers
Function
orderFromRow
(row: OrderRow)
src/billing/order-store.ts:94
↓ 4 callers
Method
parseWechatInvoiceEvent
( headers: Record<string, unknown>, rawBody: Buffer | string )
src/invoices/invoice-service.ts:268
↓ 4 callers
Method
publish
(job: CloudJob)
src/jobs/job-service.ts:240
↓ 4 callers
Function
quantizeVertices
( document: Document, options?: QuantizeOptions )
src/components/vertex-quantizer.ts:169
↓ 4 callers
Method
read
()
src/billing/order-store.ts:71
↓ 4 callers
Method
recoverExpiredLeases
(input?: RecoverExpiredJobLeasesInput)
src/jobs/job-store.ts:26
↓ 4 callers
Method
requireJob
(jobId: string)
src/jobs/job-service.ts:251
↓ 4 callers
Function
requireString
(value: string | undefined, field: string)
src/routes/billing.ts:20
↓ 4 callers
Function
resolveLeaseDurationMs
(value?: number)
src/jobs/job-store.ts:42
↓ 4 callers
Method
resultFileExists
* 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 callers
Method
send
(title: string, description: string)
src/monitor/tencent-custom-alarm.ts:5
↓ 4 callers
Method
stop
()
src/worker/cloud-worker.ts:86
↓ 4 callers
Function
stopRechargePolling
()
public/app.js:401
↓ 4 callers
Function
summarizeOptimizationOptions
(metadata: Pick<ResultMetadata, 'options' | 'presetName'> | null)
src/utils/optimization-metadata.ts:61
↓ 4 callers
Function
updateOptimizeButtonLabel
()
public/app.js:375
↓ 3 callers
Function
applyOptimizationOptions
(options)
public/app.js:1195
↓ 3 callers
Function
assertTaskTypeAccess
(principal: ApiPrincipal | undefined, taskType: string)
src/jobs/cos-manifest.ts:88
↓ 3 callers
Function
calculateDesiredInstances
(input: { requiredSlots: number; slotsPerInstance: number; minInstances: number; maxInstances: number;
src/dispatcher/scaling.ts:43
↓ 3 callers
Function
canAccessTaskType
(principal: ApiPrincipal | undefined, taskType: string)
src/middleware/auth.ts:111
↓ 3 callers
Function
canAccessTenant
(principal: ApiPrincipal | undefined, tenantId: string)
src/middleware/auth.ts:106
↓ 3 callers
Method
cancelJob
(jobId: string)
src/jobs/job-service.ts:200
↓ 3 callers
Method
cancelPaidWebJob
(userId: string, jobId: string)
src/accounts/account-service.ts:295
↓ 3 callers
Method
cleanupOldFiles
* 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 callers
Function
cleanupUploadedFile
(file: Express.Multer.File | undefined)
src/utils/model-upload.ts:51
↓ 3 callers
Method
compress
* 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 callers
Function
computeNormals
* Compute smooth normals from position + index data.
src/components/geometry-fixer.ts:68
↓ 3 callers
Function
countJobs
(jobs: CloudJob[], status: CloudJob['status'])
src/monitor/business-monitor.ts:185
↓ 3 callers
Function
createAuthServiceWechatOpenId
(authUserId: string)
src/accounts/account-store.ts:62
↓ 3 callers
Function
createDocumentWithDifferentMaterialMeshes
* Creates a document with meshes using different materials.
tests/unit/mesh-merger.test.ts:66
↓ 3 callers
Function
createJobStore
()
src/jobs/job-store.ts:727
↓ 3 callers
Function
createMeshInfoHtml
(meshes, recommendation = currentSimplifyRecommendation)
public/app.js:1011
↓ 3 callers
Function
createObjectStorageProvider
()
src/cloud/object-storage.ts:248
↓ 3 callers
Method
createRechargeOrderInvoice
(userId: string, orderId: string, buyer: InvoiceBuyer)
src/invoices/invoice-service.ts:201
↓ 3 callers
Function
createTestDocument
* Create a simple GLB document with a mesh for testing.
tests/unit/optimization-pipeline.test.ts:41
↓ 3 callers
Function
createTextureCompressor
()
src/components/texture-compressor.ts:312
↓ 3 callers
Method
createUploadGrant
(object: CosObjectRef, expiresInSeconds?: number)
src/cloud/object-storage.ts:16
↓ 3 callers
Function
createWechatOAuthState
(returnTo: string | undefined, options: SignedStateOptions = {})
src/accounts/wechat-oauth.ts:89
↓ 3 callers
Function
createZip
(entries: Array<{ name: string; data: Buffer }>)
tests/unit/model-input.test.ts:27
↓ 3 callers
Function
decodeUploadFilename
(filename: string)
src/utils/model-input.ts:201
↓ 3 callers
Method
deleteFileIfExists
* Deletes a file if it exists
src/utils/storage.ts:402
↓ 3 callers
Method
describeAutoScalingGroups
(groupIds: string[])
src/dispatcher/tencent-as-client.ts:48
↓ 3 callers
Function
displayAccount
(user, wallet)
public/app.js:269
↓ 3 callers
Function
displayLightModelInfo
(file, ext, previewMessage, meshStats = null)
public/app.js:1027
↓ 3 callers
Function
ensureDirForFile
(filePath: string)
src/cloud/object-storage.ts:28
↓ 3 callers
Function
getModelAwareDefaultOptions
()
public/app.js:982
↓ 3 callers
Method
getPaidWebJob
(userId: string, jobId: string)
src/accounts/account-service.ts:260
↓ 3 callers
Method
getResultFile
* 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 callers
Function
getResultFilePath
(taskId: string)
src/utils/storage.ts:626
↓ 3 callers
Function
getResultMetadata
(taskId: string)
src/utils/storage.ts:577
↓ 3 callers
Method
getWallet
(userId: string)
src/accounts/account-service.ts:128
↓ 3 callers
Function
getWechatOAuthRuntimeConfig
()
src/accounts/wechat-oauth.ts:117
↓ 3 callers
Function
hasScope
(principal: ApiPrincipal | undefined, scope: string)
src/middleware/auth.ts:101
← previous
next →
101–200 of 989, ranked by callers