MCPcopy Create free account

hub / github.com/EaseCation/cube-3d-text / functions

Functions120 in github.com/EaseCation/cube-3d-text

↓ 103 callersFunctiongLang
(path: string, params?: LanguageParams)
src/language.tsx:444
↓ 11 callersFunctionhandleOptionChange
( face: keyof TextMaterials, option: Partial<TextMaterialOption> )
src/components/TextSettingsMaterialPanel.tsx:111
↓ 11 callersFunctionuseLanguage
()
src/language.tsx:483
↓ 7 callersFunctioncreateMeshBasicMaterialFromOption
( option: TextMaterialOption, reverseGradient: boolean = false, repeatScale: [number, number] = [1
src/utils/textMaterial.ts:75
↓ 7 callersFunctionformatNum
(n: number)
src/components/Position3DControl.tsx:175
↓ 7 callersFunctionshapeToCanvasPath
(shape: THREE.Shape, path?: Path2D)
src/utils/overlay.ts:216
↓ 4 callersFunctioncalculateCameraDistance
(fov: number, isOrthographic: boolean)
src/components/ThreeCanvas.tsx:27
↓ 4 callersFunctioncomputeShapeArea
(shape: THREE.Shape | THREE.Path, curveSegments: number = 12)
src/utils/textGeometry.ts:92
↓ 4 callersFunctionoffsetShape
(shape: THREE.Shape, offset: number)
src/utils/offsetShape.ts:12
↓ 4 callersFunctionuseMessage
()
src/contexts/MessageContext.tsx:22
↓ 3 callersFunctioncreateRectShape
(centerX: number, bottom: number, width: number, height: number)
src/utils/textGeometry.ts:21
↓ 3 callersFunctiondownloadTextData
(dataString: string, fileName: string, mimeType = "text/plain")
src/components/ThreeCanvas.tsx:253
↓ 3 callersFunctionhandleBlur
(axis: 'x' | 'y' | 'z')
src/components/Position3DControl.tsx:214
↓ 3 callersFunctionhandleInputChange
(axis: 'x' | 'y' | 'z', raw: string)
src/components/Position3DControl.tsx:193
↓ 3 callersFunctioninnerStroke
({ ctx, shapes, strokeWidth, strokeColor }: StrokeContext)
src/utils/overlay.ts:74
↓ 3 callersFunctionisMaterialSelected
(material: TextMaterials)
src/components/TextSettingsMaterialPresets.tsx:97
↓ 3 callersMethodloadIndex
* 加载材质索引 * 现在使用单一请求策略,避免重复请求
src/utils/materialLoader.ts:43
↓ 3 callersFunctionuseFonts
()
src/contexts/FontContext.tsx:94
↓ 2 callersFunctioncreateGradientTexture
( colorGradualStart: string, colorGradualEnd: string, repeat: number, offset: number )
src/utils/textMaterial.ts:5
↓ 2 callersFunctioncreatePlaceholder2DShape
(offsetX: number, size: number)
src/utils/textGeometry.ts:42
↓ 2 callersFunctioncreatePlaceholderOutlineShape
(size: number, outlineWidth: number)
src/utils/textGeometry.ts:76
↓ 2 callersFunctiondeserializeMaterial
(serializedData: SerializedMaterial)
src/utils/materialSerializer.ts:97
↓ 2 callersFunctionexportGLTF
(format: "glb" | "gltf")
src/components/ThreeCanvas.tsx:264
↓ 2 callersFunctiongetTranslation
(lang: string)
src/language.tsx:445
↓ 2 callersFunctionhandleTextFontChange
(index: number, fontId: string | undefined)
src/App.tsx:239
↓ 2 callersFunctioniconColor
(materials: TextMaterials)
src/components/TextSettingsMaterialPresets.tsx:83
↓ 2 callersFunctionisOrthographicCamera
(options: CameraOptions)
src/components/ThreeCanvas.tsx:22
↓ 2 callersFunctionrestoreOverlayField
* 恢复 overlay 字段为完整的 OverlayRendererInfo 对象 * 支持三种情况: * 1. overlay 为字符串 - 根据 name 从预设列表查找 * 2. overlay 为对象但缺少 renderer - 根据 name 从预设列表查找 * 3. overl
src/utils/workspaceIO.ts:94
↓ 2 callersFunctionreverseShape
(shape: THREE.Shape | THREE.Path, curveSegments: number = 12)
src/utils/textGeometry.ts:112
↓ 2 callersFunctionupgradeToLatest
(jsonData: string, messageApi?: MessageInstance | null)
src/utils/workspaceIO.ts:156
↓ 1 callersMethodclearCache
* 清除加载的材质
src/utils/materialLoader.ts:170
↓ 1 callersFunctioncomputeScreenBoundingBox
( scene: THREE.Scene, camera: THREE.Camera, gl: THREE.WebGLRenderer )
src/components/ThreeCanvas.tsx:191
↓ 1 callersFunctionconvert
( font: opentype.Font, { reverseTypeface, restrictCharacters, restrictCharacte
src/utils/ttfConverter.ts:56
↓ 1 callersFunctionconvertTTFtoFaceTypeJson
( arrayBuffer: ArrayBuffer, options: ConvertOptions = {} )
src/utils/ttfConverter.ts:21
↓ 1 callersFunctioncreateCubeMaterial
( materials: TextMaterials, boundingBox: THREE.Box3, globalTextureYOffset: number )
src/utils/textMaterial.ts:116
↓ 1 callersFunctioncreatePlaceholderGeometry
(size: number, height: number)
src/utils/textGeometry.ts:54
↓ 1 callersFunctioncreateSpacedTextGeometry
({ text, font, spacingWidth, size, height, curveSegments, bevelEnabled, letter
src/utils/textGeometry.ts:222
↓ 1 callersFunctioncreateSpacedTextGeometryOutline
({ text,
src/utils/textGeometry.ts:358
↓ 1 callersFunctioncreateTextShapes2D
(params: { text: string; font: Font; letterSpacing?: number; spacingWidth?: number; })
src/utils/textGeometry.ts:485
↓ 1 callersFunctionensureWindingOrder
(shape: THREE.Shape, curveSegments: number = 12)
src/utils/textGeometry.ts:134
↓ 1 callersFunctionexportOBJ
()
src/components/ThreeCanvas.tsx:310
↓ 1 callersFunctionexportSTL
()
src/components/ThreeCanvas.tsx:329
↓ 1 callersFunctionexportWorkspace
(workspace: WorkspaceData)
src/utils/workspaceIO.ts:47
↓ 1 callersFunctiongenerateValidFileName
(workspace: WorkspaceData)
src/utils/workspaceIO.ts:23
↓ 1 callersMethodgetState
* 获取当前状态
src/utils/materialLoader.ts:35
↓ 1 callersFunctionhandleAddText
()
src/App.tsx:170
↓ 1 callersFunctionhandleModeChange
(face: keyof TextMaterials, mode: TextMaterialOption["mode"])
src/components/TextSettingsMaterialPanel.tsx:59
↓ 1 callersFunctionhandleResize
()
src/App.tsx:61
↓ 1 callersFunctionimageToBase64
(imageUrl: string)
src/utils/materialSerializer.ts:20
↓ 1 callersFunctionimportWorkspaceFromFile
( file: File, messageApi?: MessageInstance | null, gLang?: (key: string) => string )
src/utils/workspaceIO.ts:209
↓ 1 callersMethodloadAllMaterials
* 加载所有材质
src/utils/materialLoader.ts:139
↓ 1 callersMethodloadMaterial
* 加载指定ID的材质 * @param id 材质ID
src/utils/materialLoader.ts:88
↓ 1 callersFunctionloadWorkspaceFromLocalStorage
(messageApi?: MessageInstance | null)
src/utils/workspaceIO.ts:262
↓ 1 callersFunctionndcToScreen
(v: THREE.Vector3, width: number, height: number)
src/components/ThreeCanvas.tsx:216
↓ 1 callersFunctionoverlayRendererHighlightDown
(ctx, shapes)
src/utils/overlay.ts:40
↓ 1 callersFunctionoverlayRendererHighlightUp
(ctx, shapes)
src/utils/overlay.ts:18
↓ 1 callersFunctionreadNavigatorLanguage
()
src/language.tsx:412
↓ 1 callersFunctionreassignUVByNormal
(geometry: THREE.BufferGeometry)
src/utils/textGeometry.ts:155
↓ 1 callersFunctionrenderExtraPreview
(material: TextMaterialOption)
src/components/TextSettingsMaterialPanel.tsx:290
↓ 1 callersFunctionrenderMaterialsList
()
src/components/TextSettingsMaterialPresets.tsx:102
↓ 1 callersFunctionrenderModeOptions
(face: keyof TextMaterials)
src/components/TextSettingsMaterialPanel.tsx:124
↓ 1 callersFunctionrenderPreview
(material: TextMaterials)
src/components/TextSettingsMaterialPresets.tsx:41
↓ 1 callersFunctionreverseCommands
* 反转 commands
src/utils/ttfConverter.ts:183
↓ 1 callersFunctionsaveWorkspaceToLocalStorage
(workspace: WorkspaceData, messageApi?: MessageInstance | null)
src/utils/workspaceIO.ts:243
↓ 1 callersFunctionserializeMaterial
( material: TextMaterials )
src/utils/materialSerializer.ts:57
↓ 1 callersFunctiontextureToDataURL
(texture: THREE.Texture)
src/utils/debug.ts:4
↓ 1 callersFunctionupgradeMaterialToLatest
(serializedData: SerializedMaterial)
src/utils/materialSerializer.ts:110
↓ 1 callersFunctionuploadFont
(file: File)
src/contexts/FontContext.tsx:44
↓ 1 callersFunctionuseMaterials
()
src/contexts/MaterialContext.tsx:107
FunctionApp
()
src/App.tsx:646
FunctionAppContent
()
src/App.tsx:52
FunctionCameraController
({ cameraOptions })
src/components/ThreeCanvas.tsx:119
FunctionCanvasToolsImpl
({ orbitRef })
src/components/ThreeCanvas.tsx:353
FunctionColorPickerPopover
({ color, onChange })
src/components/ColorPickerPopover.tsx:10
FunctionDraggablePrefix
({ label, color, value, range, step, disabled, onValueChange })
src/components/Position3DControl.tsx:28
FunctionFontProvider
({ children })
src/contexts/FontContext.tsx:18
FunctionFontSelector
({ value, onChange, fontsMap, builtinFontsMap, builtinFontsLicence, onUploadClick, onDeleteFont,
src/components/FontSelector.tsx:22
FunctionLanguageProvider
({ children })
src/language.tsx:433
FunctionMaterialProvider
({ children })
src/contexts/MaterialContext.tsx:29
FunctionMessageProvider
({ children })
src/contexts/MessageContext.tsx:11
FunctionOverlayHelper
(props)
src/components/OverlayHelper.tsx:16
FunctionPosition3DControl
({ x, y, z, onPositionChange, xRange = [-50, 50], yRange = [-20, 20], zRange = [-2
src/components/Position3DControl.tsx:154
FunctionSceneAndCameraSettingsPanel
({ selectedFont, setSelectedFont, cameraOptions, setCameraOptions, })
src/components/SceneAndCameraSettingsPanel.tsx:22
FunctionTextSettingsMaterialPanel
({ materials,
src/components/TextSettingsMaterialPanel.tsx:22
FunctionTextSettingsMaterialPresets
({ materials, onMaterialsChange, })
src/components/TextSettingsMaterialPresets.tsx:20
FunctionTextSettingsOverlayPanel
(props)
src/components/TextSettingsOverlayPanel.tsx:11
FunctionTextSettingsPanel
({ text, textOptions, fontId, globalFontId, onTextChange, onTextOptionsChange, onF
src/components/TextSettingsPanel.tsx:24
FunctionUserZoomTracker
({ cameraOptions, setCameraOptions, orbitRef })
src/components/ThreeCanvas.tsx:54
FunctionassignFrontUV
(geometry: THREE.BufferGeometry)
src/utils/textGeometry.ts:305
Methodconstructor
(baseUrl: string = '/materials')
src/utils/materialLoader.ts:28
FunctioncreateLinePointMaterial
()
src/utils/textMaterial.ts:68
FunctioncreateMeshStandardMaterialFromOption
( option: TextMaterialOption, reverseGradient: boolean = false, extra: { [key: string]: unknown }
src/utils/textMaterial.ts:46
FunctiondeleteFont
(fontName: string)
src/contexts/FontContext.tsx:73
FunctiondisplayTexture
(texture: THREE.Texture)
src/utils/debug.ts:14
FunctionensurePresetMaterialsExported
()
src/utils/materialLoader.ts:184
FunctionexportMaterial
()
src/components/TextSettingsMaterialPanel.tsx:332
FunctionhandleChange
()
src/components/ThreeCanvas.tsx:63
FunctionhandleClickUploadTTF
()
src/components/SceneAndCameraSettingsPanel.tsx:32
FunctionhandleEnd
()
src/components/Position3DControl.tsx:96
FunctionhandleExportConfirm
()
src/components/TextSettingsMaterialPanel.tsx:339
next →1–100 of 120, ranked by callers