This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Scene from 'Scene'; | |
| import FaceTracking from 'FaceTracking'; | |
| import Animation from 'Animation'; | |
| /* | |
| Model structure: | |
| - Model | |
| - skeleton (null) | |
| - Armatures (null objs) | |
| - Petal & pollen (meshes) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type ReactiveToVanilla<Obj> = { | |
| [Property in keyof Obj]: | |
| Obj[Property] extends ScalarSignal ? number : | |
| Obj[Property] extends StringSignal ? string : | |
| Obj[Property] extends BoolSignal ? boolean | |
| : any | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class FileComparer | |
| { | |
| public static bool CompareEquals(string filePath1, string filePath2, int bufferSize = 65536) | |
| { | |
| if (filePath1 == filePath2) return true; | |
| var buffer1 = ArrayPool<byte>.Shared.Rent(bufferSize); | |
| var buffer2 = ArrayPool<byte>.Shared.Rent(bufferSize); | |
| try | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useMemo } from "react"; | |
| import { useSearchParams } from "react-router-dom"; | |
| type ParseConfig = Record< | |
| string, | |
| | { type: "string"; defaultValue?: string } | |
| | { type: "number"; defaultValue?: number } | |
| | { parse: (value: URLSearchParams) => unknown } | |
| >; |
OlderNewer