-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
PropertySupport
component and some examples
- Loading branch information
Showing
7 changed files
with
182 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
| Property Type | Example Property | CLI | Plugin | XML | Binary | | ||
| ----------------------------------------- | ------------------------------- | --- | ------ | --- | ------ | | ||
| [Attributes](#attributes) | `Instance.Attributes` | ✅ | ✅ | ✅ | ✅ | | ||
| [Axes](#axes) | `ArcHandles.Axes` | ✅ | ✅ | ✅ | ✅ | | ||
| [BinaryString](#binarystring) | `Terrain.MaterialColors` | ✅ | ⏺️ | ✅ | ✅ | | ||
| [Bool](#bool) | `Part.Anchored` | ✅ | ✅ | ✅ | ✅ | | ||
| [BrickColor](#brickcolor) | `Part.BrickColor` | ✅ | ✅ | ✅ | ✅ | | ||
| Bytecode | `N/A` | ❌ | ⛔ | ❌ | ❌ | | ||
| [CFrame](#cframe) | `Camera.CFrame` | ✅ | ✅ | ✅ | ✅ | | ||
| [Color3](#color3) | `Lighting.Ambient` | ✅ | ✅ | ✅ | ✅ | | ||
| [Color3uint8](#color3uint8) | `Part.BrickColor` | ✅ | ✅ | ✅ | ✅ | | ||
| [ColorSequence](#colorsequence) | `Beam.Color` | ✅ | ✅ | ✅ | ✅ | | ||
| [Content](#content) | `Decal.Texture` | ✅ | ✅ | ✅ | ✅ | | ||
| [Enum](#enum) | `Part.Shape` | ✅ | ✅ | ✅ | ✅ | | ||
| [Faces](#faces) | `Handles.Faces` | ✅ | ✅ | ✅ | ✅ | | ||
| [Float32](#float32) | `Players.RespawnTime` | ✅ | ✅ | ✅ | ✅ | | ||
| [Float64](#float64) | `Sound.PlaybackLoudness` | ✅ | ✅ | ✅ | ✅ | | ||
| [Font](#font) | `TextLabel.Font` | ✅ | ✅ | ✅ | ✅ | | ||
| [Int32](#int32) | `Frame.ZIndex` | ✅ | ✅ | ✅ | ✅ | | ||
| [Int64](#int64) | `Player.UserId` | ✅ | ✅ | ✅ | ✅ | | ||
| [NumberRange](#numberrange) | `ParticleEmitter.Lifetime` | ✅ | ✅ | ✅ | ✅ | | ||
| [NumberSequence](#numbersequence) | `Beam.Transparency` | ✅ | ✅ | ✅ | ✅ | | ||
| [OptionalCFrame](#optionalcframe) | `Model.WorldPivotData` | ✅ | ✅ | ✅ | ✅ | | ||
| [PhysicalProperties](#physicalproperties) | `Part.CustomPhysicalProperties` | ✅ | ✅ | ✅ | ✅ | | ||
| [ProtectedString](#protectedstring) | `ModuleScript.Source` | ✅ | ✅ | ✅ | ✅ | | ||
| [Ray](#ray) | `RayValue.Value` | ✅ | ✅ | ✅ | ✅ | | ||
| [Rect](#rect) | `ImageButton.SliceCenter` | ✅ | ✅ | ✅ | ✅ | | ||
| [Ref](#ref) | `Model.PrimaryPart` | ✅ | ✅ | ✅ | ✅ | | ||
| [Region3](#region3) | `N/A` | ✅ | ✅ | ❌ | ❌ | | ||
| [Region3int16](#region3int16) | `Terrain.MaxExtents` | ✅ | ✅ | ❌ | ❌ | | ||
| SecurityCapabilities | `Folder.SecurityCapabilities` | ✅ | ❌ | ✅ | ✅ | | ||
| [SharedString](#sharedstring) | `N/A` | ✅ | ✅ | ✅ | ✅ | | ||
| [String](#string) | `Instance.Name` | ✅ | ✅ | ✅ | ✅ | | ||
| [Tags](#tags) | `UIListLayout.Padding` | ✅ | ✅ | ✅ | ✅ | | ||
| [UDim](#udim) | `Frame.Size` | ✅ | ✅ | ✅ | ✅ | | ||
| [UDim2](#udim2) | `Instance.UniqueId` | ✅ | ❌ | ✅ | ✅ | | ||
| [Vector2](#vector2) | `ImageLabel.ImageRectSize` | ✅ | ✅ | ✅ | ✅ | | ||
| [Vector2int16](#vector2int16) | `N/A` | ✅ | ✅ | ✅ | ❌ | | ||
| [Vector3](#vector3) | `Part.Size` | ✅ | ✅ | ✅ | ✅ | | ||
| [Vector3int16](#vector3int16) | `TerrainRegion.ExtentsMax` | ✅ | ✅ | ✅ | ✅ | | ||
| QDir | `Studio.Auto-Save Path` | ⛔ | ⛔ | ⛔ | ⛔ | | ||
| QFont | `Studio.Font` | ⛔ | ⛔ | ⛔ | ⛔ | | ||
|
||
✅ Implemented | ❌ Unimplemented | ⏺️ Partially Implemented | ⛔ Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { useState } from "react" | ||
import Markdown from "react-markdown" | ||
import remarkGfm from "remark-gfm" | ||
|
||
const coverage: string = require("!!raw-loader!./PropertyCoverage.md")?.default | ||
|
||
export default function PropertySupport({ withLinks }: { withLinks: boolean }) { | ||
const [state, setState] = useState(coverage) | ||
|
||
fetch("https://raw.githubusercontent.com/argon-rbx/rbx-dom/master/README.md") | ||
.then((response) => response.text()) | ||
.then((text) => { | ||
text = text.substring(text.indexOf("Coverage") + 10) | ||
text = text.substring(0, text.indexOf("##") - 2) | ||
|
||
text = text.replace("rbx_types", "CLI") | ||
text = text.replace("rbx_dom_lua", "Plugin") | ||
text = text.replace("rbx_xml", "XML") | ||
text = text.replace("rbx_binary", "Binary") | ||
|
||
if (withLinks) { | ||
for (const line of text.split("\n")) { | ||
let property = line.substring(line.indexOf("| ") + 2) | ||
property = property.substring(0, property.indexOf(" |")) | ||
property = property.trimEnd() | ||
|
||
let link = `| [${property}](#${property.toLocaleLowerCase()})` | ||
|
||
if (coverage.includes(link)) { | ||
text = text.replace("| " + property, link) | ||
} | ||
} | ||
} | ||
|
||
setState(text) | ||
}) | ||
|
||
return <Markdown remarkPlugins={[remarkGfm]}>{state}</Markdown> | ||
} |
This file was deleted.
Oops, something went wrong.