file_path stringlengths 4 154 | file_url stringlengths 83 244 | repo_name stringlengths 8 65 | repo_description stringlengths 1 350 ⌀ | contributors listlengths 0 100 | commit_hash stringlengths 40 40 | license stringlengths 0 20.1k | license_url stringlengths 0 150 | file_content stringlengths 4 182k |
|---|---|---|---|---|---|---|---|---|
src\Shared\packages\Import\lib\Cryo\Dictionary\init.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\Dictionary\init.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Defines utilities for working with 'dictionary-like' tables.
Dictionaries can be indexed by any value, but don't have the ordering
expectations that lists have.
]]
return {
join = require(script.join),
keys = require(script.keys),
values = require(script.values),
}
|
src\Shared\packages\Import\lib\Cryo\Dictionary\join.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\Dictionary\join.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local None = require(script.Parent.Parent.None)
--[[
Combine a number of dictionary-like tables into a new table.
Keys specified in later tables will overwrite keys in previous tables.
Use `Cryo.None` as a value to remove a key. This is necessary because
Lua does not distinguish between a value not being present... |
src\Shared\packages\Import\lib\Cryo\Dictionary\keys.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\Dictionary\keys.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns a list of the keys from the given dictionary.
]]
local function keys(dictionary)
local new = {}
local index = 1
for key in pairs(dictionary) do
new[index] = key
index = index + 1
end
return new
end
return keys
|
src\Shared\packages\Import\lib\Cryo\Dictionary\values.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\Dictionary\values.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns a list of the values of the given dictionary.
]]
local function values(dictionary)
local new = {}
local index = 1
for _, value in pairs(dictionary) do
new[index] = value
index = index + 1
end
return new
end
return values
|
src\Shared\packages\Import\lib\Cryo\List\filter.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\filter.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Create a copy of a list with only values for which `callback` returns true.
Calls the callback with (value, index).
]]
local function filter(list, callback)
local new = {}
local index = 1
for i = 1, #list do
local value = list[i]
if callback(value, i) then
new[index] = value
index = index + 1
end... |
src\Shared\packages\Import\lib\Cryo\List\filterMap.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\filterMap.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Create a copy of a list doing a combination filter and map.
If callback returns nil for any item, it is considered filtered from the
list. Any other value is considered the result of the 'map' operation.
]]
local function filterMap(list, callback)
local new = {}
local index = 1
for i = 1, #list do
local ... |
src\Shared\packages\Import\lib\Cryo\List\find.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\find.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns the index of the given value or nil if not found.
]]
local function find(list, value)
for i = 1, #list do
if list[i] == value then
return i
end
end
return nil
end
return find
|
src\Shared\packages\Import\lib\Cryo\List\foldLeft.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\foldLeft.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Performs a left-fold of the list with the given initial value and callback.
]]
local function foldLeft(list, callback, initialValue)
local accum = initialValue
for i = 1, #list do
accum = callback(accum, list[i], i)
end
return accum
end
return foldLeft
|
src\Shared\packages\Import\lib\Cryo\List\foldRight.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\foldRight.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Performs a right-fold of the list with the given initial value and callback.
]]
local function foldRight(list, callback, initialValue)
local accum = initialValue
for i = #list, 1, -1 do
accum = callback(accum, list[i], i)
end
return accum
end
return foldRight
|
src\Shared\packages\Import\lib\Cryo\List\getRange.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\getRange.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns a new list containing only the elements within the given range.
]]
local function getRange(list, startIndex, endIndex)
assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex")
local new = {}
local index = 1
for i = math.max(1, startIndex), math.min(#list, endIndex) do
n... |
src\Shared\packages\Import\lib\Cryo\List\init.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\init.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Defines utilities for working with 'list-like' tables.
]]
return {
filter = require(script.filter),
filterMap = require(script.filterMap),
find = require(script.find),
foldLeft = require(script.foldLeft),
foldRight = require(script.foldRight),
getRange = require(script.getRange),
join = require(script.joi... |
src\Shared\packages\Import\lib\Cryo\List\join.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\join.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local None = require(script.Parent.Parent.None)
--[[
Joins any number of lists together into a new list
]]
local function join(...)
local new = {}
for listKey = 1, select("#", ...) do
local list = select(listKey, ...)
local len = #new
for itemKey = 1, #list do
if list[itemKey] == None then
len = len ... |
src\Shared\packages\Import\lib\Cryo\List\map.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\map.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Create a copy of a list where each value is transformed by `callback`
]]
local function map(list, callback)
local new = {}
for i = 1, #list do
new[i] = callback(list[i], i)
end
return new
end
return map
|
src\Shared\packages\Import\lib\Cryo\List\removeIndex.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\removeIndex.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Remove the element at the given index.
]]
local function removeIndex(list, index)
local new = {}
local removed = 0
for i = 1, #list do
if i == index then
removed = 1
else
new[i - removed] = list[i]
end
end
return new
end
return removeIndex
|
src\Shared\packages\Import\lib\Cryo\List\removeRange.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\removeRange.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Remove the range from the list starting from the index.
]]
local function removeRange(list, startIndex, endIndex)
assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex")
local new = {}
local index = 1
for i = 1, math.min(#list, startIndex - 1) do
new[index] = list[i]
index = ... |
src\Shared\packages\Import\lib\Cryo\List\removeValue.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\removeValue.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Creates a new list that has no occurrences of the given value.
]]
local function removeValue(list, value)
local new = {}
local index = 1
for i = 1, #list do
if list[i] ~= value then
new[index] = list[i]
index = index + 1
end
end
return new
end
return removeValue
|
src\Shared\packages\Import\lib\Cryo\List\reverse.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\reverse.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns a new list with the reversed order of the given list
]]
local function reverse(list)
local new = {}
local len = #list
local top = len + 1
for i = 1, len do
new[i] = list[top - i]
end
return new
end
return reverse
|
src\Shared\packages\Import\lib\Cryo\List\sort.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\Cryo\List\sort.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Returns a new list, ordered with the given sort callback.
If no callback is given, the default table.sort will be used.
]]
local function sort(list, callback)
local new = {}
for i = 1, #list do
new[i] = list[i]
end
table.sort(new, callback)
return new
end
return sort
|
src\Shared\packages\Import\lib\t\init.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\lib\t\init.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | -- t: a runtime typechecker for Roblox
-- regular lua compatibility
local typeof = typeof or type
local function primitive(typeName)
return function(value)
local valueType = typeof(value)
if valueType == typeName then
return true
else
return false, string.format("%s expected, got %s", typeName, valueType... |
src\Shared\packages\Import\mocks\functionModule.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\mocks\functionModule.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
return true
end
|
src\Shared\packages\Import\mocks\tableModule.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\mocks\tableModule.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | -- This module gets required for testing.
local module = {}
module.foo = "foo"
module.bar = "bar"
return module
|
src\Shared\packages\Import\mocks\recursionTest\barModule.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\mocks\recursionTest\barModule.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local import = require(script.Parent.Parent.Parent)
import("./recursiveModule")
return {}
|
src\Shared\packages\Import\mocks\recursionTest\fooModule.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\mocks\recursionTest\fooModule.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local import = require(script.Parent.Parent.Parent)
import("./barModule")
return {}
|
src\Shared\packages\Import\mocks\recursionTest\recursiveModule.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Import\mocks\recursionTest\recursiveModule.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local import = require(script.Parent.Parent.Parent)
import("./fooModule")
return {}
|
src\Shared\packages\Roact\assertDeepEqual.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\assertDeepEqual.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A utility used to assert that two objects are value-equal recursively. It
outputs fairly nicely formatted messages to help diagnose why two objects
would be different.
This should only be used in tests.
]]
local function deepEqual(a, b)
if typeof(a) ~= typeof(b) then
local message = ("{1} is of type %s, b... |
src\Shared\packages\Roact\assertDeepEqual.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\assertDeepEqual.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.assertDeepEqual)
it("should fail with a message when args are not equal", function()
local success, message = pcall(assertDeepEqual, 1, 2)
expect(success).to.equal(false)
expect(message:find("first ~= second")).to.be.ok()
success, message = pc... |
src\Shared\packages\Roact\assign.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\assign.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local None = require(script.Parent.None)
--[[
Merges values from zero or more tables onto a target table. If a value is
set to None, it will instead be removed from the table.
This function is identical in functionality to JavaScript's Object.assign.
]]
local function assign(target, ...)
for index = 1, select("#"... |
src\Shared\packages\Roact\assign.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\assign.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local None = require(script.Parent.None)
local assign = require(script.Parent.assign)
it("should accept zero additional tables", function()
local input = {}
local result = assign(input)
expect(input).to.equal(result)
end)
it("should merge multiple tables onto the given target table", fu... |
src\Shared\packages\Roact\Binding.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Binding.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local createSignal = require(script.Parent.createSignal)
local Symbol = require(script.Parent.Symbol)
local Type = require(script.Parent.Type)
local config = require(script.Parent.GlobalConfig).get()
local BindingImpl = Symbol.named("BindingImpl")
local BindingInternalApi = {}
local bindingPrototype = {}
function ... |
src\Shared\packages\Roact\Binding.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Binding.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createSpy = require(script.Parent.createSpy)
local Type = require(script.Parent.Type)
local GlobalConfig = require(script.Parent.GlobalConfig)
local Binding = require(script.Parent.Binding)
describe("Binding.create", function()
it("should return a Binding object and an update function",... |
src\Shared\packages\Roact\Component.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local assign = require(script.Parent.assign)
local ComponentLifecyclePhase = require(script.Parent.ComponentLifecyclePhase)
local Type = require(script.Parent.Type)
local Symbol = require(script.Parent.Symbol)
local invalidSetStateMessages = require(script.Parent.invalidSetStateMessages)
local internalAssert = require(... |
src\Shared\packages\Roact\ComponentLifecyclePhase.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\ComponentLifecyclePhase.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Symbol = require(script.Parent.Symbol)
local strict = require(script.Parent.strict)
local ComponentLifecyclePhase = strict({
-- Component methods
Init = Symbol.named("init"),
Render = Symbol.named("render"),
ShouldUpdate = Symbol.named("shouldUpdate"),
WillUpdate = Symbol.named("willUpdate"),
DidMount = Sy... |
src\Shared\packages\Roact\Config.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Config.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Exposes an interface to set global configuration values for Roact.
Configuration can only occur once, and should only be done by an application
using Roact, not a library.
Any keys that aren't recognized will cause errors. Configuration is only
intended for configuring Roact itself, not extensions or librar... |
src\Shared\packages\Roact\Config.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Config.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Config = require(script.Parent.Config)
it("should accept valid configuration", function()
local config = Config.new()
local values = config.get()
expect(values.elementTracing).to.equal(false)
config.set({
elementTracing = true,
})
expect(values.elementTracing).to.equal(true)... |
src\Shared\packages\Roact\createContext.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createContext.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Symbol = require(script.Parent.Symbol)
local createFragment = require(script.Parent.createFragment)
local createSignal = require(script.Parent.createSignal)
local Children = require(script.Parent.PropMarkers.Children)
local Component = require(script.Parent.Component)
--[[
Construct the value that is assigned t... |
src\Shared\packages\Roact\createContext.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createContext.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Component = require(script.Parent.Component)
local NoopRenderer = require(script.Parent.NoopRenderer)
local Children = require(script.Parent.PropMarkers.Children)
local createContext = require(script.Parent.createContext)
local createElement = require(script.Parent.createElement)
local cre... |
src\Shared\packages\Roact\createElement.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createElement.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Children = require(script.Parent.PropMarkers.Children)
local ElementKind = require(script.Parent.ElementKind)
local Logging = require(script.Parent.Logging)
local Type = require(script.Parent.Type)
local config = require(script.Parent.GlobalConfig).get()
local multipleChildrenMessage = [[
The prop `Roact.Childr... |
src\Shared\packages\Roact\createElement.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createElement.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Component = require(script.Parent.Component)
local ElementKind = require(script.Parent.ElementKind)
local GlobalConfig = require(script.Parent.GlobalConfig)
local Logging = require(script.Parent.Logging)
local Type = require(script.Parent.Type)
local Portal = require(script.Parent.Portal)
... |
src\Shared\packages\Roact\createFragment.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createFragment.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local ElementKind = require(script.Parent.ElementKind)
local Type = require(script.Parent.Type)
local function createFragment(elements)
return {
[Type] = Type.Element,
[ElementKind] = ElementKind.Fragment,
elements = elements,
}
end
return createFragment
|
src\Shared\packages\Roact\createFragment.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createFragment.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local ElementKind = require(script.Parent.ElementKind)
local Type = require(script.Parent.Type)
local createFragment = require(script.Parent.createFragment)
it("should create new primitive elements", function()
local fragment = createFragment({})
expect(fragment).to.be.ok()
expect(Type.of... |
src\Shared\packages\Roact\createReconciler.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createReconciler.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Type = require(script.Parent.Type)
local ElementKind = require(script.Parent.ElementKind)
local ElementUtils = require(script.Parent.ElementUtils)
local Children = require(script.Parent.PropMarkers.Children)
local Symbol = require(script.Parent.Symbol)
local internalAssert = require(script.Parent.internalAssert)
... |
src\Shared\packages\Roact\createReconciler.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createReconciler.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assign = require(script.Parent.assign)
local createElement = require(script.Parent.createElement)
local createFragment = require(script.Parent.createFragment)
local createSpy = require(script.Parent.createSpy)
local NoopRenderer = require(script.Parent.NoopRenderer)
local Type = require(sc... |
src\Shared\packages\Roact\createReconcilerCompat.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createReconcilerCompat.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Contains deprecated methods from Reconciler. Broken out so that removing
this shim is easy -- just delete this file and remove it from init.
]]
local Logging = require(script.Parent.Logging)
local reifyMessage = [[
Roact.reify has been renamed to Roact.mount and will be removed in a future release.
Check the c... |
src\Shared\packages\Roact\createReconcilerCompat.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createReconcilerCompat.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.createElement)
local createReconciler = require(script.Parent.createReconciler)
local Logging = require(script.Parent.Logging)
local NoopRenderer = require(script.Parent.NoopRenderer)
local createReconcilerCompat = require(script.Parent.createReconcile... |
src\Shared\packages\Roact\createRef.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createRef.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A ref is nothing more than a binding with a special field 'current'
that maps to the getValue method of the binding
]]
local Binding = require(script.Parent.Binding)
local function createRef()
local binding, _ = Binding.create(nil)
local ref = {}
--[[
A ref is just redirected to a binding via its metatab... |
src\Shared\packages\Roact\createRef.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createRef.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Binding = require(script.Parent.Binding)
local Type = require(script.Parent.Type)
local createRef = require(script.Parent.createRef)
it("should create refs, which are specialized bindings", function()
local ref = createRef()
expect(Type.of(ref)).to.equal(Type.Binding)
expect(ref.cur... |
src\Shared\packages\Roact\createSignal.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createSignal.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
This is a simple signal implementation that has a dead-simple API.
local signal = createSignal()
local disconnect = signal:subscribe(function(foo)
print("Cool foo:", foo)
end)
signal:fire("something")
disconnect()
]]
local function addToMap(map, addKey, addValue)
local new = {}
for key, value... |
src\Shared\packages\Roact\createSignal.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createSignal.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createSignal = require(script.Parent.createSignal)
local createSpy = require(script.Parent.createSpy)
it("should fire subscribers and disconnect them", function()
local signal = createSignal()
local spy = createSpy()
local disconnect = signal:subscribe(spy.value)
expect(spy.callCo... |
src\Shared\packages\Roact\createSpy.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createSpy.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A utility used to create a function spy that can be used to robustly test
that functions are invoked the correct number of times and with the correct
number of arguments.
This should only be used in tests.
]]
local assertDeepEqual = require(script.Parent.assertDeepEqual)
local function createSpy(inner)
loc... |
src\Shared\packages\Roact\createSpy.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\createSpy.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createSpy = require(script.Parent.createSpy)
describe("createSpy", function()
it("should create spies", function()
local spy = createSpy(function() end)
expect(spy).to.be.ok()
end)
it("should throw if spies are indexed by an invalid key", function()
local spy = createSpy(func... |
src\Shared\packages\Roact\ElementKind.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\ElementKind.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Contains markers for annotating the type of an element.
Use `ElementKind` as a key, and values from it as the value.
local element = {
[ElementKind] = ElementKind.Host,
}
]]
local Symbol = require(script.Parent.Symbol)
local strict = require(script.Parent.strict)
local Portal = require(script.Parent.Po... |
src\Shared\packages\Roact\ElementKind.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\ElementKind.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Portal = require(script.Parent.Portal)
local Component = require(script.Parent.Component)
local ElementKind = require(script.Parent.ElementKind)
describe("of", function()
it("should return nil for non-table values", function()
expect(ElementKind.of(nil)).to.equal(nil)
expect(Elemen... |
src\Shared\packages\Roact\ElementUtils.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\ElementUtils.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Type = require(script.Parent.Type)
local Symbol = require(script.Parent.Symbol)
local function noop()
return nil
end
local ElementUtils = {}
--[[
A signal value indicating that a child should use its parent's key, because
it has no key of its own.
This occurs when you return only one element from a functi... |
src\Shared\packages\Roact\ElementUtils.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\ElementUtils.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local ElementUtils = require(script.Parent.ElementUtils)
local createElement = require(script.Parent.createElement)
local createFragment = require(script.Parent.createFragment)
local Type = require(script.Parent.Type)
describe("iterateElements", function()
it("should iterate once for a single ... |
src\Shared\packages\Roact\getDefaultInstanceProperty.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\getDefaultInstanceProperty.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Attempts to get the default value of a given property on a Roblox instance.
This is used by the reconciler in cases where a prop was previously set on a
primitive component, but is no longer present in a component's new props.
Eventually, Roblox might provide a nicer API to query the default property
of an ... |
src\Shared\packages\Roact\getDefaultInstanceProperty.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\getDefaultInstanceProperty.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local getDefaultInstanceProperty = require(script.Parent.getDefaultInstanceProperty)
it("should get default name string values", function()
local _, defaultName = getDefaultInstanceProperty("StringValue", "Name")
expect(defaultName).to.equal("Value")
end)
it("should get default empty string... |
src\Shared\packages\Roact\GlobalConfig.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\GlobalConfig.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Exposes a single instance of a configuration as Roact's GlobalConfig.
]]
local Config = require(script.Parent.Config)
return Config.new()
|
src\Shared\packages\Roact\GlobalConfig.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\GlobalConfig.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local GlobalConfig = require(script.Parent.GlobalConfig)
it("should have the correct methods", function()
expect(GlobalConfig).to.be.ok()
expect(GlobalConfig.set).to.be.ok()
expect(GlobalConfig.get).to.be.ok()
end)
end
|
src\Shared\packages\Roact\init.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\init.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Packages up the internals of Roact and exposes a public API for it.
]]
local GlobalConfig = require(script.GlobalConfig)
local createReconciler = require(script.createReconciler)
local createReconcilerCompat = require(script.createReconcilerCompat)
local RobloxRenderer = require(script.RobloxRenderer)
local stri... |
src\Shared\packages\Roact\init.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\init.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Roact = require(script.Parent)
it("should load with all public APIs", function()
local publicApi = {
createElement = "function",
createFragment = "function",
createRef = "function",
createBinding = "function",
joinBindings = "function",
mount = "function",
unmount = "fu... |
src\Shared\packages\Roact\internalAssert.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\internalAssert.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local function internalAssert(condition, message)
if not condition then
error(message .. " (This is probably a bug in Roact!)", 3)
end
end
return internalAssert
|
src\Shared\packages\Roact\invalidSetStateMessages.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\invalidSetStateMessages.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
These messages are used by Component to help users diagnose when they're
calling setState in inappropriate places.
The indentation may seem odd, but it's necessary to avoid introducing extra
whitespace into the error messages themselves.
]]
local ComponentLifecyclePhase = require(script.Parent.ComponentLifecy... |
src\Shared\packages\Roact\Logging.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Logging.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Centralized place to handle logging. Lets us:
- Unit test log output via `Logging.capture`
- Disable verbose log messages when not debugging Roact
This should be broken out into a separate library with the addition of
scoping and logging configuration.
]]
-- Determines whether log messages will go to stdout... |
src\Shared\packages\Roact\None.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\None.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Symbol = require(script.Parent.Symbol)
-- Marker used to specify that the value is nothing, because nil cannot be
-- stored in tables.
local None = Symbol.named("None")
return None
|
src\Shared\packages\Roact\NoopRenderer.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\NoopRenderer.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Reference renderer intended for use in tests as well as for documenting the
minimum required interface for a Roact renderer.
]]
local NoopRenderer = {}
function NoopRenderer.isHostObject(target)
-- Attempting to use NoopRenderer to target a Roblox instance is almost
-- certainly a mistake.
return target == ... |
src\Shared\packages\Roact\oneChild.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\oneChild.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Retrieves at most one child from the children passed to a component.
If passed nil or an empty table, will return nil.
Throws an error if passed more than one child.
]]
local function oneChild(children)
if not children then
return nil
end
local key, child = next(children)
if not child then
return ni... |
src\Shared\packages\Roact\oneChild.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\oneChild.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.createElement)
local oneChild = require(script.Parent.oneChild)
it("should get zero children from a table", function()
local children = {}
expect(oneChild(children)).to.equal(nil)
end)
it("should get exactly one child", function()
local child ... |
src\Shared\packages\Roact\Portal.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Portal.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Symbol = require(script.Parent.Symbol)
local Portal = Symbol.named("Portal")
return Portal
|
src\Shared\packages\Roact\PureComponent.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PureComponent.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A version of Component with a `shouldUpdate` method that forces the
resulting component to be pure.
]]
local Component = require(script.Parent.Component)
local PureComponent = Component:extend("PureComponent")
-- When extend()ing a component, you don't get an extend method.
-- This is to promote composition o... |
src\Shared\packages\Roact\PureComponent.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PureComponent.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.createElement)
local NoopRenderer = require(script.Parent.NoopRenderer)
local createReconciler = require(script.Parent.createReconciler)
local PureComponent = require(script.Parent.PureComponent)
local noopReconciler = createReconciler(NoopRenderer)
... |
src\Shared\packages\Roact\RobloxRenderer.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\RobloxRenderer.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Renderer that deals in terms of Roblox Instances. This is the most
well-supported renderer after NoopRenderer and is currently the only
renderer that does anything.
]]
local Binding = require(script.Parent.Binding)
local Children = require(script.Parent.PropMarkers.Children)
local ElementKind = require(script.... |
src\Shared\packages\Roact\RobloxRenderer.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\RobloxRenderer.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.assertDeepEqual)
local Binding = require(script.Parent.Binding)
local Children = require(script.Parent.PropMarkers.Children)
local Component = require(script.Parent.Component)
local createElement = require(script.Parent.createElement)
local createFra... |
src\Shared\packages\Roact\SingleEventManager.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\SingleEventManager.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A manager for a single host virtual node's connected events.
]]
local Logging = require(script.Parent.Logging)
local CHANGE_PREFIX = "Change."
local EventStatus = {
-- No events are processed at all; they're silently discarded
Disabled = "Disabled",
-- Events are stored in a queue; listeners are invoked wh... |
src\Shared\packages\Roact\SingleEventManager.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\SingleEventManager.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.assertDeepEqual)
local createSpy = require(script.Parent.createSpy)
local Logging = require(script.Parent.Logging)
local SingleEventManager = require(script.Parent.SingleEventManager)
describe("new", function()
it("should create a SingleEventManag... |
src\Shared\packages\Roact\strict.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\strict.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local function strict(t, name)
name = name or tostring(t)
return setmetatable(t, {
__index = function(self, key)
local message = ("%q (%s) is not a valid member of %s"):format(tostring(key), typeof(key), name)
error(message, 2)
end,
__newindex = function(self, key, value)
local message = ("%q (%s) i... |
src\Shared\packages\Roact\strict.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\strict.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local strict = require(script.Parent.strict)
it("should error when getting a nonexistent key", function()
local t = strict({
a = 1,
b = 2,
})
expect(function()
return t.c
end).to.throw()
end)
it("should error when setting a nonexistent key", function()
local t = strict({
a... |
src\Shared\packages\Roact\Symbol.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Symbol.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
A 'Symbol' is an opaque marker type.
Symbols have the type 'userdata', but when printed to the console, the name
of the symbol is shown.
]]
local Symbol = {}
--[[
Creates a Symbol with the given name.
When printed or coerced to a string, the symbol will turn into the string
given as its name.
]]
function... |
src\Shared\packages\Roact\Symbol.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Symbol.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Symbol = require(script.Parent.Symbol)
describe("named", function()
it("should give an opaque object", function()
local symbol = Symbol.named("foo")
expect(symbol).to.be.a("userdata")
end)
it("should coerce to the given name", function()
local symbol = Symbol.named("foo")
... |
src\Shared\packages\Roact\Type.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Type.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Contains markers for annotating objects with types.
To set the type of an object, use `Type` as a key and the actual marker as
the value:
local foo = {
[Type] = Type.Foo,
}
]]
local Symbol = require(script.Parent.Symbol)
local strict = require(script.Parent.strict)
local Type = newproxy(true)
local ... |
src\Shared\packages\Roact\Type.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Type.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Type = require(script.Parent.Type)
describe("of", function()
it("should return nil if the value is not a table", function()
expect(Type.of(1)).to.equal(nil)
expect(Type.of(true)).to.equal(nil)
expect(Type.of("test")).to.equal(nil)
expect(Type.of(print)).to.equal(nil)
end)
i... |
src\Shared\packages\Roact\Component.spec\context.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\context.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local oneChild = require(... |
src\Shared\packages\Roact\Component.spec\defaultProps.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\defaultProps.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local None = require(script.Parent.Parent.None)
local NoopRenderer = require(script.Paren... |
src\Shared\packages\Roact\Component.spec\didMount.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\didMount.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local Type = require(script.Parent.Pa... |
src\Shared\packages\Roact\Component.spec\didUpdate.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\didUpdate.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(sc... |
src\Shared\packages\Roact\Component.spec\extend.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\extend.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Type = require(script.Parent.Parent.Type)
local Component = require(script.Parent.Parent.Component)
it("should be extendable", function()
local MyComponent = Component:extend("The Senate")
expect(MyComponent).to.be.ok()
expect(Type.of(MyComponent)).to.equal(Type.StatefulComponentClas... |
src\Shared\packages\Roact\Component.spec\getDerivedStateFromProps.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\getDerivedStateFromProps.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createSpy = require(script.Parent.Parent.createSpy)
local createElement = require(script.Parent.Parent.createElement)
local createFragment = require(script.Parent.Parent.createFragment)
local createReconciler = require(sc... |
src\Shared\packages\Roact\Component.spec\getElementTraceback.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\getElementTraceback.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local GlobalConfig = require(script.Parent.Parent.GlobalConfig)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local Component = require(scri... |
src\Shared\packages\Roact\Component.spec\init.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\init.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(sc... |
src\Shared\packages\Roact\Component.spec\legacyContext.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\legacyContext.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local Component = requir... |
src\Shared\packages\Roact\Component.spec\render.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\render.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(sc... |
src\Shared\packages\Roact\Component.spec\setState.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\setState.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local None = require(script.Parent.Parent.None)
local NoopRenderer = require(script.Parent.Parent.Noo... |
src\Shared\packages\Roact\Component.spec\shouldUpdate.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\shouldUpdate.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(sc... |
src\Shared\packages\Roact\Component.spec\validateProps.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\validateProps.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local GlobalConfig = require(script.P... |
src\Shared\packages\Roact\Component.spec\willUnmount.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\willUnmount.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
local Type = require(script.Parent.Pa... |
src\Shared\packages\Roact\Component.spec\willUpdate.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\Component.spec\willUpdate.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local assertDeepEqual = require(script.Parent.Parent.assertDeepEqual)
local createElement = require(script.Parent.Parent.createElement)
local createReconciler = require(script.Parent.Parent.createReconciler)
local createSpy = require(script.Parent.Parent.createSpy)
local NoopRenderer = require(sc... |
src\Shared\packages\Roact\PropMarkers\Change.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PropMarkers\Change.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Change is used to generate special prop keys that can be used to connect to
GetPropertyChangedSignal.
Generally, Change is indexed by a Roblox property name:
Roact.createElement("TextBox", {
[Roact.Change.Text] = function(rbx)
print("The TextBox", rbx, "changed text to", rbx.Text)
end,
})
]]
lo... |
src\Shared\packages\Roact\PropMarkers\Change.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PropMarkers\Change.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Type = require(script.Parent.Parent.Type)
local Change = require(script.Parent.Change)
it("should yield change listener objects when indexed", function()
expect(Type.of(Change.Text)).to.equal(Type.HostChangeEvent)
expect(Type.of(Change.Selected)).to.equal(Type.HostChangeEvent)
end)
i... |
src\Shared\packages\Roact\PropMarkers\Children.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PropMarkers\Children.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | local Symbol = require(script.Parent.Parent.Symbol)
local Children = Symbol.named("Children")
return Children
|
src\Shared\packages\Roact\PropMarkers\Event.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PropMarkers\Event.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | --[[
Index into `Event` to get a prop key for attaching to an event on a Roblox
Instance.
Example:
Roact.createElement("TextButton", {
Text = "Hello, world!",
[Roact.Event.MouseButton1Click] = function(rbx)
print("Clicked", rbx)
end
})
]]
local Type = require(script.Parent.Parent.Type)
local Ev... |
src\Shared\packages\Roact\PropMarkers\Event.spec.lua | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/src\Shared\packages\Roact\PropMarkers\Event.spec.lua | ShaneButt/UIRadialConstraint | null | [
"ShaneButt"
] | 2c1f8b4680e170d0b164743fc0b2d7b2240e73fb | MIT License
Copyright (c) 2021 Shane Alexander
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | https://github.com/ShaneButt/UIRadialConstraint/blob/2c1f8b4680e170d0b164743fc0b2d7b2240e73fb/LICENSE | return function()
local Type = require(script.Parent.Parent.Type)
local Event = require(script.Parent.Event)
it("should yield event objects when indexed", function()
expect(Type.of(Event.MouseButton1Click)).to.equal(Type.HostEvent)
expect(Type.of(Event.Touched)).to.equal(Type.HostEvent)
end)
it("should yiel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.