repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
wizevaxel/picguin | wizevaxel-picguin-34af261/scripts/build.luau | luau | .luau | local PACKAGES_DIR = "packages"
local RELEASES_DIR = "release"
local function release()
local codec = assert(zune.process.args[2], "no codec provided")
local package_dir = `{PACKAGES_DIR}/{codec}`
assert(zune.fs.stat(package_dir).kind ~= "none", "codec not found in packages")
zune.fs.makeDir(RELEASES_DIR, tru... | 178 |
wizevaxel/picguin | wizevaxel-picguin-34af261/scripts/bump.luau | luau | .luau | local PACKAGES_DIR = "packages"
local function bump_file(path: string, version: string)
local write = zune.fs.readFile(path):gsub('version%s*=%s*"[^"]+"', `version = "{version}"`, 1)
zune.fs.writeFile(path, write)
end
local function bump()
local codec = assert(zune.process.args[2], "no codec provided")
local vers... | 222 |
omrezkeypie/BinaryOctree | omrezkeypie-BinaryOctree-6253a82/benchmarks/QueryingBench.luau | luau | .luau | --!optimize 2
--[[
This file is for use by Benchmarker (https://boatbomber.itch.io/benchmarker)
|WARNING| THIS RUNS IN YOUR REAL ENVIRONMENT. |WARNING|
--]]
local BinaryOctreeModule = require("path to binary octree")
local SleitnickModule = require("path to sleitnicks module")
local Dot = Vector3.zero.Dot
local Oct... | 427 |
omrezkeypie/BinaryOctree | omrezkeypie-BinaryOctree-6253a82/src/init.luau | luau | .luau | --!optimize 2
--!native
type Object = {
Position: Vector3
}
export type BinaryOctree = {
MaxDepth: number?,
Size: number,
OffsetPosition : Vector3?,
Nodes: {{Object}},
}
type Module = {
new: (Size: number, MaxDepth: number?,OffsetPosition : Vector3?) -> BinaryOctree,
InsertObjects: (BinaryOctree: BinaryOctree... | 2,835 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.parser-tests.runner.luau | luau | .luau | local ServerScriptService = game:GetService("ServerScriptService")
local variants = ServerScriptService.superproperties.packages.mosaic.components.map.item.value.variants
local tests = {
variants.utils["normalizeCommaDelimitedTokens.test"],
variants.mathExpression["parser.test"],
variants.vector["parser.test"],
va... | 132 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.pesde/scripts/roblox_sync_config_generator.luau | luau | .luau | return require("./../../lune_packages/.pesde/pesde+scripts_rojo/0.2.0/scripts_rojo/roblox_sync_config_generator") | 33 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/.pesde/scripts/sourcemap_generator.luau | luau | .luau | return require("./../../lune_packages/.pesde/pesde+scripts_rojo/0.2.0/scripts_rojo/sourcemap_generator") | 32 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/assets.luau | luau | .luau | --!strict
return {
Arrow = "rbxassetid://137576406570664",
ArrowThin = "rbxassetid://98440150303753",
Dot = "rbxassetid://116942102031970",
Chevrons = "rbxassetid://74884627555785",
ChevronsThin = "rbxassetid://102795771267126",
-- Sharper replacements for ScrollingFrame's scrollbar assets.
... | 262 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/background/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New = Fusion.New
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Component, CombineProps =
FusionUtils.Component, FusionUtils.CombineProps
loc... | 217 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/booleanIconButton/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Children, Computed, New, OnEvent, Peek, Tween, Value =
Fusion.Children, Fusion.Computed, Fusion.New, Fusion.OnEvent,
Fusion.peek, Fusion.Tween, Fusion.Value
local Utils = script.Parent.P... | 1,632 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/brickColorPicker/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Children, Computed, Value =
Fusion.New, Fusion.Children, Fusion.Computed, Fusion.Value
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Com... | 1,469 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/brickColorPicker/item.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Children, Computed, Value, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Computed,
Fusion.Value, Fusion.OnEvent, Fusion.Tween
local Utils = script.Parent.Parent.Parent.utils
local FusionUti... | 1,225 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/button/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Computed, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Computed, Fusion.On... | 1,284 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/getNextChecked.luau | luau | .luau | --!strict
return function(checked: boolean | "Mixed"): boolean
return checked == false
end
| 24 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/getNextChecked.test.luau | luau | .luau | --!strict
local GetNextChecked = require("./getNextChecked")
assert(GetNextChecked(false) == true, "false should become true")
assert(GetNextChecked(true) == false, "true should become false")
assert(GetNextChecked("Mixed") == false, "Mixed should become false")
print("getNextChecked verification passed")
| 67 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/checkbox/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Computed, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Computed, Fusion.On... | 1,533 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/container/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Children, New, Peek = Fusion.Children, Fusion.New, Fusion.peek
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusio... | 897 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/focusRing/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Tween, Computed, Observer, Peek =
Fusion.Tween, Fusion.Computed, Fusion.Observer, Fusion.peek
local Utils = script.Parent.Parent.utils
loca... | 1,413 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/icon/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New = Fusion.New
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Component, CombineProps = FusionUtils.Component, FusionUtils.CombineProps
local Co... | 317 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/iconButton/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Value, New, Children, OnEvent =
Fusion.Value, Fusion.New, Fusion.Children,
Fusion.OnEvent
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local C... | 921 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/input/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Out, OnEvent, Computed, Observer =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Out, Fusion... | 2,056 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/animation.luau | luau | .luau | --!strict
return TweenInfo.new(0.135, Enum.EasingStyle.Exponential, Enum.EasingDirection.InOut)
| 27 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/arrow.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Peek, OnEvent, Computed, Tween =
Fusion.peek, Fusion.OnEvent, Fusion.Computed, Fusion.Tween
local Components = script.Parent.Parent
local IconButton = require(Components.iconButton)
local Assets = require... | 293 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/cornerRadii.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Computed, Peek = Fusion.Computed, Fusion.peek
export type RowSide = "Left" | "Right" | "Both"
local function CalculateRowCornerRadii(
scope: Fusion.Scope,
side: RowSide,
rowCount: Fusion.UsedAs<num... | 357 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/emptyItem.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Typeforge = require(Packages.typeforge)
local Fusion = require(Packages.fusion)
local New, Children = Fusion.New, Fusion.Children
local Utils = script.Parent.Parent.Parent.utils... | 731 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/header/createHeaderColors.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Computed = Fusion.Computed
local Types = require(script.Parent.Parent.types)
local TintHeaderColor = require(script.Parent.headerColorTint)
type HeaderColors = Types.HeaderColors
type TintTarget = Tint... | 337 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/header/headerColorTint.luau | luau | .luau | --!strict
local Utils = script.Parent.Parent.Parent.Parent.utils
local ColorSpace = require(Utils.colorSpace)
local ThemeConstants = require(Utils.themeUtils.constants)
export type TintTarget = "Background" | "Foreground"
local Uint32Mask = 0xFFFFFFFF
local Uint32Scale = 4_294_967_296
local HeaderColorTintChroma: { ... | 815 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/header/headerColorTint.test.luau | luau | .luau | --!strict
local ColorSpace =
require("../../../utils/colorSpace")
local TintHeaderColor =
require("./headerColorTint")
local Epsilon = 1e-6
local MaxTintDistance = 0.02
local MinimumExpectedHueSeparation = math.rad(89)
local Tau = 2 * math.pi
local BackgroundTarget: "Background" = "Background"
local Foregroun... | 1,762 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/header/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Computed =
Fusion.New, Fusion.Children, Fusion.Computed
local Utils = script.Parent.Parent.Parent.utils
local FusionU... | 1,278 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Computed, Peek =
Fusion.New, Fusion.Children, Fusion.Computed, Fusion.peek
local Utils = script.Parent.Parent.utils
local Fu... | 2,043 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/hoverTweenInfo.luau | luau | .luau | --!strict
return TweenInfo.new(
.18,
Enum.EasingStyle.Exponential,
Enum.EasingDirection.InOut
)
| 30 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Computed, New, Children, Observer, Peek, Tween, Value =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.Observer,
Fusion.peek, Fusion.Tween, Fusion.Value
local Utils = script... | 3,110 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/interaction.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Computed, OnEvent, Peek, Tween, Value =
Fusion.Computed, Fusion.OnEvent, Fusion.peek, Fusion.Tween, Fusion.Value
local Utils = script.Parent.Parent.... | 1,806 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/intrinsicSubItems/definitions.luau | luau | .luau | --!strict
local Types = require(script.Parent.Parent.Parent.types)
type Reader<T> = (rootValue: any) -> T
type Writer<T> = (rootValue: any, value: T) -> any
local function CreateVector3Items(
readVector: Reader<Vector3>,
writeVector: Writer<Vector3>
): Types.IntrinsicItems
return {
{
... | 2,275 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/intrinsicSubItems/getFlattenedDefinitionsList.luau | luau | .luau | --!strict
local Types = require(script.Parent.Parent.Parent.types)
local DefinitionsByType = require(script.Parent.definitions)
local EmptyItems = table.freeze({}) :: Types.IntrinsicItems
local FlattenedDefinitionsByType: { [string]: Types.IntrinsicItems } = {}
local function AppendFlattenedItems(
items: Types.... | 218 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/intrinsicSubItems/getFlattenedDefinitionsList.test.luau | luau | .luau | --!strict
local GetFlattenedDefinitionsList =
require("./getFlattenedDefinitionsList")
local function AssertKeys(items: { any }, expectedKeys: { string })
assert(
#items == #expectedKeys,
`expected {#expectedKeys} items, got {#items}`
)
for idx, expectedKey in expectedKeys do
... | 214 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/intrinsicSubItems/init.luau | luau | .luau | --!strict
return {
Definitions = require(script.definitions),
GetFlattenedDefinitionsList =
require(script.getFlattenedDefinitionsList)
}
| 33 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/key.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Typeforge = require(Packages.typeforge)
local Fusion = require(Packages.fusion)
local New, Children, OnEvent, Out, Peek, Value =
Fusion.New, Fusion.Children, Fusion.On... | 1,766 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/focusTransitionTweenInfo.luau | luau | .luau | --!strict
return TweenInfo.new(
.23,
Enum.EasingStyle.Quint,
Enum.EasingDirection.InOut
)
| 30 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Peek = Fusion.New, Fusion.Children, Fusion.peek
local Utils = script.Parent.Parent.Parent.Parent.utils
local Fusio... | 1,085 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/boolean.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children, Observer, Value, Peek, OnEvent =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.Observer,
Fusion.Value, Fusion.peek, Fusion.OnEvent... | 665 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/brickColor.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children, Observer, OnEvent, Peek, Value =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.Observer,
Fusion.OnEvent, Fusion.peek, Fusion.Value... | 1,292 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/cframe/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseCFrame = require(script.parser)
local function FormatComponent(value: number): string
return tostring(NormalizeNumber(value))
end
local function Forma... | 347 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/cframe/lexer.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
local CreateDelimitedNumbersLexer =
require(script.Parent.Parent.utils.createDelimitedNumbersLexer)
local MathExpressionLexer =
require(script.Parent.Parent.mat... | 123 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/cframe/parser.luau | luau | .luau | --!strict
local CFrameLexer = require(script.Parent.lexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.Parent.utils.normalizeCommaDelimitedTokens)
local ParseMathExpression =
require(script.Parent.Parent.mathExpression.parser)
type VectorComponents = {
X: number,
Y: number,
Z: numb... | 1,417 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/cframe/parser.test.luau | luau | .luau | --!strict
local ParseCFrame = require("./parser")
local flat, parseError =
ParseCFrame("1 + 2, 8 / 2, 2 ^ 3")
assert(flat ~= nil, `expected flat CFrame components, got {parseError}`)
assert(
flat.Position.X == 3
and flat.Position.Y == 4
and flat.Position.Z == 8
and flat.Orientation == nil,
"un... | 609 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/color/init.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local Computed, New, Children, Peek =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.peek
local Utils = script.Par... | 952 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/color/parser.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
local CreateDelimitedNumbersLexer =
require(script.Parent.Parent.utils.createDelimitedNumbersLexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.... | 1,578 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/color/parser.test.luau | luau | .luau | --!strict
local ParseColor = require("./parser")
local Epsilon = 1e-6
local function AssertColor(
text: string,
expected: Color3,
label: string
)
local actual, parseError = ParseColor(text)
assert(actual ~= nil, `{label}: expected a color, got {parseError}`)
assert(
math.abs(actual.R... | 568 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/content/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local ParseContent = require(script.parser)
local function FormatContent(value: Content): string
if value.SourceType == Enum.ContentSourceType.Uri then
return value.Uri :: string
elseif value.SourceType == Enum.ContentSourceType.No... | 118 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/content/lexer.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
type State = {}
local function NewState(): State
return {}
end
local UriBodyLexer = Lexuau.new
<< State
>> {
init_state = NewState,
patterns = {
assetId = {
... | 321 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/content/parser.luau | luau | .luau | --!strict
local ContentLexer = require(script.Parent.lexer)
type Token = {
Kind: string?,
Value: string,
}
type Parser = {
Tokens: { Token },
Position: number,
}
local SupportedSchemes = table.freeze({
rbxassetid = true,
rbxasset = true,
rbxthumb = true,
rbxgameasset = true,
rbxhttp = true,
rbxtemp = true... | 918 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/default.luau | luau | .luau |
--!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children =
Fusion.Computed, Fusion.New, Fusion.Children
local Types = require(script.Parent.types)
local CreateSidePadding = require(script.Parent.ut... | 241 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/enumItem.luau | luau | .luau | --!strict
local CreateSelectMenuVariant =
require(script.Parent.utils.createSelectMenuVariant)
type EnumMetadata = {
Items: { EnumItem },
Names: { string },
IndexByItem: { [EnumItem]: number }
}
local EnumMetadataByType: { [any]: EnumMetadata } = {}
local function GetEnumMetadata(value: EnumItem): E... | 361 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/font.luau | luau | .luau | --!strict
local CreateSelectMenuVariant =
require(script.Parent.utils.createSelectMenuVariant)
local FontItems = {} :: { Enum.Font }
local MenuItems = {}
local IndexByFamily = {} :: { [string]: number }
local NameByFamily = {} :: { [string]: string }
for _, enumFont in Enum.Font:GetEnumItems() do
if enumFont... | 430 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/init.luau | luau | .luau | --!strict
local Types = require(script.types)
local Vector = require(script.vector)
local InstanceValue = require(script.instance)
export type ValueVariantProps<T> = Types.ValueVariantProps<T>
export type ValueVariantFn<T> = Types.ValueVariantFn<T>
return {
string = require(script.string),
number = require(script.... | 180 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/instance.luau | luau | .luau | --!strict
local StudioService = game:GetService("StudioService")
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children, OnEvent, Peek, Tween =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.OnEvent,... | 2,829 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/mathExpression/lexer.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
export type State = {
ReturnLexer: Lexuau.Lexer<State>?
}
local function ReturnToConsumer(
value: string,
state: State
): (string, Lexuau.Lexer<State>?)
... | 322 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/mathExpression/parser.luau | luau | .luau | --!strict
local MathExpressionLexer = require(script.Parent.lexer)
type Token = {
Kind: string?,
Value: string
}
type Parser = {
Tokens: { Token },
Position: number
}
local function DescribeToken(token: Token?): string
if token == nil then
return "end of input"
end
local quotedV... | 1,179 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/mathExpression/parser.test.luau | luau | .luau | --!strict
local ParseMathExpression = require("./parser")
local Epsilon = 1e-9
local function AssertExpression(
text: string,
expected: number,
label: string
)
local actual, parseError = ParseMathExpression(text)
assert(
actual ~= nil,
`{label}: expected a number, got {parseError ... | 474 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/number.luau | luau | .luau |
--!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseMathExpression = require(script.Parent.mathExpression.parser)
local function FormatValue(value: number): string
return tostring(NormalizeNumber(value)... | 93 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/string.luau | luau | .luau |
--!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
return CreateTextVariant<<string>>({
InputName = "StringValueInput",
Format = function(value: string): string
return value
end,
Parse = function(text: string): (string?, string?)
return text, nil
... | 74 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/types.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
export type ValueVariantProps<T> = {
Value: Fusion.UsedAs<T>,
Mixed: Fusion.UsedAs<boolean>,
TextColor3: Fusion.UsedAs<Color3>,
Writable: boolean,
TrySetVa... | 166 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseUDim = require(script.parser)
local function FormatComponent(value: number): string
return tostring(NormalizeNumber(value))
end
local function FormatV... | 187 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim/parser.luau | luau | .luau | --!strict
local DelimitedNumbersLexer =
require(script.Parent.Parent.utils.delimitedNumbersLexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.Parent.utils.normalizeCommaDelimitedTokens)
local ParseMathExpression =
require(script.Parent.Parent.mathExpression.parser)
export type Components =... | 800 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim/parser.test.luau | luau | .luau | --!strict
local ParseUDim = require("./parser")
local components, parseError = ParseUDim("1 / 2, 2 ^ 3")
assert(components ~= nil, `expected UDim components, got {parseError}`)
assert(
components.Scale == 0.5 and components.Offset == 8,
`unexpected UDim components: {components.Scale}, {components.Offset}`
)
... | 369 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim2/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseUDim2 = require(script.parser)
local function FormatComponent(value: number): string
return tostring(NormalizeNumber(value))
end
local function Format... | 234 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim2/lexer.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
local CreateDelimitedNumbersLexer =
require(script.Parent.Parent.utils.createDelimitedNumbersLexer)
local MathExpressionLexer =
require(script.Parent.Parent.mat... | 126 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim2/parser.luau | luau | .luau | --!strict
local ParseUDim = require(script.Parent.Parent.udim.parser)
local UDim2Lexer = require(script.Parent.lexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.Parent.utils.normalizeCommaDelimitedTokens)
type UDimComponents = {
Scale: number,
Offset: number
}
export type Components = {
... | 1,612 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/udim2/parser.test.luau | luau | .luau | --!strict
local ParseUDim2 = require("./parser")
local flat, parseError =
ParseUDim2("1 / 2, 8 / 2, 3 % 2, 2 ^ 3")
assert(flat ~= nil, `expected flat UDim2 components, got {parseError}`)
assert(
flat.X.Scale == 0.5
and flat.X.Offset == 4
and flat.Y.Scale == 1
and flat.Y.Offset == 8,
"unexpecte... | 492 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/createDelimitedNumbersLexer.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Lexuau = require(Packages.lexuau)
local MathExpressionLexer =
require(script.Parent.Parent.mathExpression.lexer)
type LexerState = MathExpressionLexer.State
type PatternConfig = Lexuau.PatternConfi... | 289 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/createSelectMenuVariant.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children, Observer, OnEvent, Peek, Value =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.Observer,
Fusion.OnEvent, Fusion.peek, Fusio... | 2,307 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/createSidePadding.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local New = Fusion.New
return function(scope: Fusion.Scope): Instance
return New(scope, "UIPadding") {
PaddingLeft = UDim.new(0, 6),
PaddingRight = ... | 85 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/createTextVariant.luau | luau | .luau | --!strict
local Packages =
script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.packages
local Fusion = require(Packages.fusion)
local Computed, New, Children, Observer, Value, Peek, Out, OnEvent =
Fusion.Computed, Fusion.New, Fusion.Children, Fusion.Observer,
Fusion.Value, Fusion.peek, Fu... | 1,195 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/delimitedNumbersLexer.luau | luau | .luau | --!strict
local CreateDelimitedNumbersLexer =
require(script.Parent.createDelimitedNumbersLexer)
return CreateDelimitedNumbersLexer()
| 28 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/normalizeCommaDelimitedTokens.luau | luau | .luau | --!strict
export type Token = {
Kind: string?,
Value: string
}
local function NormalizeCommaDelimitedTokens(
tokens: { Token }
): { Token }
local normalizedTokens: { Token } = {}
local pendingComma: Token? = nil
for _, token in tokens do
if token.Kind == "comma" then
pendi... | 161 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/normalizeCommaDelimitedTokens.test.luau | luau | .luau | --!strict
local NormalizeCommaDelimitedTokens =
require("./normalizeCommaDelimitedTokens")
type Token = NormalizeCommaDelimitedTokens.Token
local function Token(kind: string?, value: string): Token
return {
Kind = kind,
Value = value
}
end
local normalized = NormalizeCommaDelimitedTokens(... | 305 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/utils/normalizeNumber.luau | luau | .luau | --!strict
local DecimalScale = 1000
local function NormalizeNumber(value: number): number
local normalizedValue = math.round(value * DecimalScale) / DecimalScale
return if normalizedValue == 0 then 0 else normalizedValue
end
return NormalizeNumber
| 59 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/vector/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseVector = require(script.parser)
type VectorValue = Vector3 | vector
local function FormatComponent(value: number): string
return tostring(NormalizeNum... | 220 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/vector/parser.luau | luau | .luau | --!strict
local DelimitedNumbersLexer =
require(script.Parent.Parent.utils.delimitedNumbersLexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.Parent.utils.normalizeCommaDelimitedTokens)
local ParseMathExpression =
require(script.Parent.Parent.mathExpression.parser)
export type Components =... | 879 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/vector2/init.luau | luau | .luau | --!strict
local CreateTextVariant = require(script.Parent.utils.createTextVariant)
local NormalizeNumber = require(script.Parent.utils.normalizeNumber)
local ParseVector2 = require(script.parser)
local function FormatComponent(value: number): string
return tostring(NormalizeNumber(value))
end
local function Form... | 187 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/vector2/parser.luau | luau | .luau | --!strict
local DelimitedNumbersLexer =
require(script.Parent.Parent.utils.delimitedNumbersLexer)
local NormalizeCommaDelimitedTokens =
require(script.Parent.Parent.utils.normalizeCommaDelimitedTokens)
local ParseMathExpression =
require(script.Parent.Parent.mathExpression.parser)
export type Components =... | 765 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/item/value/variants/vector2/parser.test.luau | luau | .luau | --!strict
local ParseVector2 = require("./parser")
local components, parseError =
ParseVector2("(2 + 3) * 4, 2 ^ -2")
assert(components ~= nil, `expected Vector2 components, got {parseError}`)
assert(
components.X == 20 and components.Y == 0.25,
`unexpected Vector2 components: {components.X}, {components.... | 314 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/types.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Utils = script.Parent.Parent.Parent.utils
local ThemeUtils = require(Utils.themeUtils)
local ValueVariantTypes =
require(script.Parent.item.value.variants.types)
export type BaseMapProps = {
Variant: ThemeU... | 750 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/virtualization/math.luau | luau | .luau | --!strict
-- Pure row geometry helpers for the virtualized map module.
export type RowGeometry = {
Tops: { number },
Bottoms: { number },
SpacerHeights: { number },
TotalHeight: number
}
export type RootRange = {
First: number,
Last: number
}
local function BuildRowGeometry(
rowHeights: ... | 1,492 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/virtualization/math.test.luau | luau | .luau | --!strict
local VirtualizationMath =
require("./math")
local function AssertEqual(actual: number, expected: number, label: string)
assert(
actual == expected,
`{label}: expected {expected}, got {actual}`
)
end
local geometry = VirtualizationMath.BuildRowGeometry({ 10, 20, 30 }, 1, 1)
Asse... | 1,869 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/map/zIndices.luau | luau | .luau | --!strict
return {
Default = 1,
Hover = 99,
DisappearingFocus = 100,
Focus = 101,
FocusRingActiveAlphaThreshold = .15
}
| 44 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/scrollable/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Children, Out, Computed =
Fusion.New, Fusion.Children, Fusion.Out,
Fusion.Computed
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Com... | 1,030 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/select/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Computed, Observer, OnEvent =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Computed, Fusion... | 2,778 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/selectMenu/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Value, Peek, Out, OnEvent, Computed, Observer, Tween =
Fusion.New, Fusion.Children, Fusion.Value, Fusion.peek,
Fusion.Out,... | 4,631 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/selectMenu/item.luau | luau | .luau | --!strict
local Packages = script.Parent.Parent.Parent.Parent
local Supercorner = require(Packages.supercorner)
local Fusion = require(Packages.fusion)
local New, Children, Computed, Value, Peek, OnEvent, Tween =
Fusion.New, Fusion.Children, Fusion.Computed, Fusion.Value,
Fusion.peek, Fusion.OnEvent, Fusion.T... | 1,260 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/text/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New = Fusion.New
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local Component, CombineProps =
FusionUtils.Component, FusionUtils.CombineProps
loc... | 496 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/toolbar/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Typeforge = require(Packages.typeforge)
local Fusion = require(Packages.fusion)
local Children, Hydrate = Fusion.Children, Fusion.Hydrate
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.fusionUtils)
local C... | 418 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/toolbarButton/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Typeforge = require(Packages.typeforge)
local Fusion = require(Packages.fusion)
local Hydrate, Observer, Peek = Fusion.Hydrate, Fusion.Observer, Fusion.peek
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils.f... | 510 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/virtualMapScrollable/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local Children, Computed, Observer, Peek =
Fusion.Children, Fusion.Computed, Fusion.Observer, Fusion.peek
local ProfileBegin, ProfileEnd =
(debug :: any).profilebegin, (debug :: any).profileend... | 5,338 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/virtualMapScrollable/math.luau | luau | .luau | --!strict
-- Pure scheduling and map-bound helpers for VirtualMapScrollable.
type GetMapBound = (mapIdx: number) -> number
local function ShouldRefreshBufferedWindow(
renderedTop: number?,
renderedBottom: number?,
viewportTop: number,
viewportBottom: number,
minimumBuffer: number
): boolean
i... | 789 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/virtualMapScrollable/math.test.luau | luau | .luau | --!strict
local VirtualMapScrollableMath = require("./math")
local ShouldRefreshBufferedWindow =
VirtualMapScrollableMath.ShouldRefreshBufferedWindow
local GetStableLayoutOrderIndices =
VirtualMapScrollableMath.GetStableLayoutOrderIndices
local FindVisibleMapRange =
VirtualMapScrollableMath.FindVisibleMap... | 2,022 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/virtualMapScrollable/scheduler.luau | luau | .luau | --!strict
-- A small injected scheduler keeps frame coalescing testable without Roblox
-- frame signals. The supplied schedule function must return a cancellation
-- callback for the queued work.
export type Cancel = () -> ()
export type Schedule = (callback: () -> ()) -> Cancel
export type Coalescer = {
Request... | 341 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/virtualMapScrollable/scheduler.test.luau | luau | .luau | --!strict
local Scheduler = require("./scheduler")
type ScheduledWork = {
Active: boolean,
Callback: () -> ()
}
local scheduledWork = {} :: { ScheduledWork }
local refreshCount = 0
local function Schedule(callback: () -> ()): () -> ()
local work = {
Active = true,
Callback = callback
... | 474 |
cameronpcampbell/superproperties | cameronpcampbell-superproperties-95d2140/mosaic/components/widget/init.luau | luau | .luau | --!strict
--!nolint LocalShadow
local StarterGui = game:GetService("StarterGui")
local Packages = script.Parent.Parent.Parent
local Fusion = require(Packages.fusion)
local New, Hydrate, Children = Fusion.New, Fusion.Hydrate, Fusion.Children
local Utils = script.Parent.Parent.utils
local FusionUtils = require(Utils... | 920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.