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
↓ 3 callers
Function
hideDownloadList
()
public/app.js:294
↓ 3 callers
Method
holdOptimizationCharge
(userId: string, jobId: string)
src/accounts/account-service.ts:278
↓ 3 callers
Method
insertLedgerRow
(client: MySqlQueryable, entry: WalletLedgerEntry)
src/accounts/account-store.ts:916
↓ 3 callers
Method
insertLedgerRow
(client: SqlQueryable, entry: WalletLedgerEntry)
src/accounts/account-store.ts:1498
↓ 3 callers
Function
isAuthEnabled
()
src/middleware/auth.ts:32
↓ 3 callers
Function
isAuthServiceConfigured
()
src/accounts/auth-service.ts:109
↓ 3 callers
Function
isSupportedFormat
(ext: string)
src/components/format-converter.ts:30
↓ 3 callers
Function
isTerminalJobStatus
(status: CloudJobStatus)
src/jobs/state-machine.ts:29
↓ 3 callers
Function
loadDownloadList
()
public/app.js:347
↓ 3 callers
Method
lockWallet
(client: MySqlQueryable, userId: string)
src/accounts/account-store.ts:889
↓ 3 callers
Method
lockWallet
(client: SqlQueryable, userId: string)
src/accounts/account-store.ts:1478
↓ 3 callers
Method
loginWithLocalTestAccount
()
src/accounts/account-service.ts:94
↓ 3 callers
Function
makeTempDir
()
tests/unit/model-input.test.ts:85
↓ 3 callers
Method
maybeSendCallback
(job: CloudJob)
src/worker/cloud-worker.ts:208
↓ 3 callers
Function
normalizeBuyer
(input: InvoiceBuyer)
src/invoices/invoice-service.ts:35
↓ 3 callers
Function
normalizeLimit
(limit?: number)
src/accounts/account-store.ts:85
↓ 3 callers
Function
normalizeLimit
(limit?: number)
src/invoices/invoice-store.ts:57
↓ 3 callers
Function
normalizeObjectKey
(key: unknown)
src/jobs/cos-manifest.ts:128
↓ 3 callers
Function
onLoad
(obj)
public/app.js:795
↓ 3 callers
Function
onResize
()
public/app.js:741
↓ 3 callers
Function
parseApiKeyDefinitions
(raw: string | undefined = process.env.API_KEYS)
src/middleware/auth.ts:62
↓ 3 callers
Function
parseCosJobManifest
( raw: string, manifestObject: CosObjectRef, principal?: ApiPrincipal )
src/jobs/cos-manifest.ts:28
↓ 3 callers
Method
publish
(message: QueueJobMessage, options?: PublishOptions)
src/cloud/queue.ts:15
↓ 3 callers
Method
readFileIfExists
* Reads a file if it exists
src/utils/storage.ts:356
↓ 3 callers
Method
receiveMessage
()
src/cloud/tencent-cmq-client.ts:88
↓ 3 callers
Function
recoverExpiredLeaseJob
(job: CloudJob, now: Date, reason?: string)
src/jobs/job-store.ts:97
↓ 3 callers
Method
release
(job: CloudJob, options?: PublishOptions)
src/cloud/queue.ts:18
↓ 3 callers
Method
requestDrain
(reason: string)
src/worker/cloud-worker.ts:335
↓ 3 callers
Function
requireTenantId
(value: unknown)
src/jobs/cos-manifest.ts:94
↓ 3 callers
Function
resolveRecoveryLimit
(value?: number)
src/jobs/job-store.ts:46
↓ 3 callers
Function
saveUploadedFile
(taskId: string, buffer: Buffer)
src/utils/storage.ts:527
↓ 3 callers
Function
setOptionsEditable
(editable)
public/app.js:1210
↓ 3 callers
Function
setServerPreviewStatus
(statusText, { loading = false, keepButton = true } = {})
public/app.js:918
↓ 3 callers
Function
setViewMode
(mode)
public/app.js:874
↓ 3 callers
Method
syncRechargeOrder
(userId: string, orderId: string)
src/accounts/account-service.ts:178
↓ 3 callers
Function
tempFile
(name: string)
tests/unit/external-api.test.ts:41
↓ 3 callers
Function
toProviderEvent
(input: { eventType: string; dedupeKey: string; payload?: unknown; invoiceRequestId?: string; rechar
src/invoices/invoice-service.ts:59
↓ 3 callers
Method
toUri
(object: CosObjectRef)
src/cloud/object-storage.ts:11
↓ 3 callers
Method
transitionRechargeOrder
(orderId: string, status: Exclude<RechargeOrderStatus, 'paid'>)
src/accounts/account-store.ts:31
↓ 3 callers
Function
updateAutoSimplifyFromTriangles
(totalTriangles)
public/app.js:1001
↓ 3 callers
Function
updateMySqlOrderRow
(client: MySqlQueryable, order: BillingOrder)
src/billing/order-store.ts:245
↓ 3 callers
Method
updateWalletRow
(client: MySqlQueryable, wallet: Wallet)
src/accounts/account-store.ts:895
↓ 3 callers
Method
updateWalletRow
(client: SqlQueryable, wallet: Wallet)
src/accounts/account-store.ts:1484
↓ 3 callers
Method
uploadObject
(sourcePath: string, object: CosObjectRef)
src/cloud/object-storage.ts:14
↓ 3 callers
Function
upsertOrderRow
(client: SqlQueryable, order: BillingOrder)
src/billing/order-store.ts:102
↓ 3 callers
Function
validateOptions
(raw: OptimizationOptions)
src/utils/options-validator.ts:25
↓ 3 callers
Method
write
(data: InvoiceStoreFile)
src/invoices/invoice-store.ts:150
↓ 2 callers
Function
addMinutes
(date: Date, minutes: number)
src/accounts/account-service.ts:31
↓ 2 callers
Function
applyModelDrivenSimplifyOptions
({ preserveOtherOptions = activeOptimizationMode === 'custom' } = {})
public/app.js:992
↓ 2 callers
Function
applySimplifyOptionFields
(options)
public/app.js:968
↓ 2 callers
Function
assertInside
(parentDir: string, candidatePath: string)
src/utils/model-input.ts:35
↓ 2 callers
Function
authenticateApiKey
(token: string | undefined)
src/middleware/auth.ts:89
↓ 2 callers
Function
base64Url
(buffer)
public/app.js:89
↓ 2 callers
Function
buildEffectiveOptimizeOptions
(preset: PresetName | undefined, options: OptimizationOptions)
src/routes/account.ts:137
↓ 2 callers
Function
buildRelativeRedirectUrl
(returnTo: string, params: Record<string, string>)
src/routes/account.ts:109
↓ 2 callers
Function
buildWebOptimizeResult
(job: CloudJob)
src/routes/account.ts:270
↓ 2 callers
Function
buildWechatApiUrl
(path: string, apiBaseUrl: string, params: Record<string, string>)
src/accounts/wechat-oauth.ts:163
↓ 2 callers
Function
buildWechatOAuthAuthorizeUrl
(runtimeConfig: WechatOAuthRuntimeConfig, state: string)
src/accounts/wechat-oauth.ts:136
↓ 2 callers
Function
buyerFromNotification
(event: WechatInvoiceNotification)
src/invoices/invoice-service.ts:54
↓ 2 callers
Function
calculateAccessorSize
* Calculate the total byte size of all accessors in a document. * * @param document - The gltf-transform Document * @returns Total size in bytes
src/components/vertex-quantizer.ts:47
↓ 2 callers
Function
canonicalizeOptimizationOptions
(options: OptimizationOptions)
src/utils/optimization-metadata.ts:41
↓ 2 callers
Method
cleanupDirectory
* Cleans up old files in a directory
src/utils/storage.ts:432
↓ 2 callers
Function
cleanupOldFiles
(maxAgeMs: number)
src/utils/storage.ts:607
↓ 2 callers
Function
clearAuthServiceSession
()
public/app.js:156
↓ 2 callers
Function
collectMeshStats
(model)
public/app.js:766
↓ 2 callers
Method
completePaidWebJobUpload
(userId: string, jobId: string)
src/accounts/account-service.ts:272
↓ 2 callers
Function
consumeAuthServiceCallbackFromUrl
(callbackHref)
public/app.js:145
↓ 2 callers
Function
countMaterials
* Count the number of materials in a document. * * @param document - The gltf-transform Document * @returns Number of materials
src/components/resource-cleaner.ts:46
↓ 2 callers
Function
countMeshes
* Count the number of meshes in a document. * * @param document - The gltf-transform Document * @returns Number of meshes
src/components/mesh-merger.ts:34
↓ 2 callers
Function
countNodes
* Count the number of nodes in a document. * * @param document - The gltf-transform Document * @returns Number of nodes
src/components/resource-cleaner.ts:36
↓ 2 callers
Function
countTextures
* Count the number of textures in a document. * * @param document - The gltf-transform Document * @returns Number of textures
src/components/resource-cleaner.ts:56
↓ 2 callers
Function
countTriangles
* Count the total number of triangles in a document. * * @param document - The gltf-transform Document * @returns Total number of triangles across
src/components/mesh-simplifier.ts:58
↓ 2 callers
Function
createBasicMesh
* Helper function to create a basic mesh with position and normal attributes.
tests/unit/draco-compressor.test.ts:10
↓ 2 callers
Function
createDocumentWithBasicMesh
()
tests/unit/vertex-quantizer.test.ts:29
↓ 2 callers
Function
createDocumentWithMixedMaterials
* Creates a document with mixed materials - some shared, some unique.
tests/unit/mesh-merger.test.ts:87
↓ 2 callers
Function
createDocumentWithMultipleTextures
* Helper function to create a document with multiple textures.
tests/unit/texture-compressor.test.ts:85
↓ 2 callers
Function
createDocumentWithUsedResources
* Creates a simple document with a mesh that uses a material and texture. * All resources are used.
tests/unit/resource-cleaner.test.ts:19
↓ 2 callers
Function
createDracoCompressor
()
src/components/draco-compressor.ts:273
↓ 2 callers
Function
createGltfLoader
(side)
public/app.js:748
↓ 2 callers
Function
createIndexedMesh
* Creates a document with indexed geometry for better simplification testing.
tests/unit/mesh-simplifier.test.ts:112
↓ 2 callers
Function
createInvalidMagicBuffer
* Creates an invalid buffer with wrong magic number
tests/unit/file-validator.test.ts:41
↓ 2 callers
Function
createMeshMerger
()
src/components/mesh-merger.ts:103
↓ 2 callers
Function
createMeshSimplifier
()
src/components/mesh-simplifier.ts:285
↓ 2 callers
Function
createModelUpload
(options: ModelUploadOptions = {})
src/utils/model-upload.ts:17
↓ 2 callers
Function
createOptimizationResult
(params: { taskId: string; success: boolean; processingTime: number; originalSize: number; optimized
src/models/result.ts:395
↓ 2 callers
Function
createOutTradeNo
(prefix: string)
src/accounts/account-service.ts:25
↓ 2 callers
Function
createQueueProvider
()
src/cloud/queue.ts:163
↓ 2 callers
Function
createResourceCleaner
()
src/components/resource-cleaner.ts:156
↓ 2 callers
Function
createScene
(container)
public/app.js:686
↓ 2 callers
Function
createSimplePngBuffer
* Helper function to create a simple 2x2 PNG image buffer. * This creates a minimal valid PNG for testing purposes.
tests/unit/texture-compressor.test.ts:15
↓ 2 callers
Function
createUnlitTestGlbFile
* Create a test GLB file with KHR_materials_unlit.
tests/unit/optimization-pipeline.test.ts:132
↓ 2 callers
Function
createWebUserToken
(userId: string, tenantId: string)
src/accounts/token.ts:29
↓ 2 callers
Function
createWrongVersionBuffer
* Creates a buffer with wrong version
tests/unit/file-validator.test.ts:53
↓ 2 callers
Function
defaultLeaseDurationMs
()
src/jobs/job-store.ts:38
↓ 2 callers
Method
deferWatchdogMessage
(receiptHandle: string, job: CloudJob)
src/cloud/queue.ts:123
↓ 2 callers
Method
deleteReceipt
(jobId: string)
src/cloud/queue.ts:116
↓ 2 callers
Method
describe
()
src/dispatcher/types.ts:36
↓ 2 callers
Function
displayResult
(data)
public/app.js:1387
↓ 2 callers
Method
downloadObject
(object: CosObjectRef, destinationPath: string)
src/cloud/object-storage.ts:13
↓ 2 callers
Function
emptyFile
()
src/accounts/account-store.ts:46
← previous
next →
201–300 of 989, ranked by callers