@rbxts/types 1.0.831 → 1.0.832
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -787,7 +787,7 @@ interface EditableImage extends RBXObject {
|
|
|
787
787
|
* - `FadeAngle` (number) as the angle in degrees for the projection edges to fall off.
|
|
788
788
|
* - `BlendIntensity` (number) as the value between `0` and `1` which controls how much of the projection is blended into the resulting image.
|
|
789
789
|
*/
|
|
790
|
-
DrawImageProjected(this: EditableImage, mesh: EditableMesh, projection:
|
|
790
|
+
DrawImageProjected(this: EditableImage, mesh: EditableMesh, projection: DrawImageProjectedProjection, brushConfig: DrawImageProjectedBrushConfig): void;
|
|
791
791
|
/**
|
|
792
792
|
* Draws an image into this `EditableImage` with transformations including scaling and rotation, placing it at the specified position.
|
|
793
793
|
*
|
|
@@ -803,7 +803,7 @@ interface EditableImage extends RBXObject {
|
|
|
803
803
|
* - `SamplingMode`: Specifies the sampling method (e.g. `Default` for bilinear or `Pixelated` for nearest neighbor). Default is `ResamplerMode.Default`.
|
|
804
804
|
* - `PivotPoint`: Specifies the pivot point within the source image for scaling and rotation. Default is the center of the source image (i.e. `Size / 2`).
|
|
805
805
|
*/
|
|
806
|
-
DrawImageTransformed(this: EditableImage, position: Vector2, scale: Vector2, rotation: number, image: EditableImage, options
|
|
806
|
+
DrawImageTransformed(this: EditableImage, position: Vector2, scale: Vector2, rotation: number, image: EditableImage, options: DrawImageTransformedOptions): void;
|
|
807
807
|
/**
|
|
808
808
|
* Draws a line between two provided points.
|
|
809
809
|
*
|
|
@@ -866,7 +866,7 @@ interface EditableImage extends RBXObject {
|
|
|
866
866
|
*
|
|
867
867
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/EditableMesh)
|
|
868
868
|
*/
|
|
869
|
-
interface EditableMesh extends
|
|
869
|
+
interface EditableMesh extends RBXObject {
|
|
870
870
|
/**
|
|
871
871
|
* **DO NOT USE!**
|
|
872
872
|
*
|
|
@@ -1398,7 +1398,7 @@ interface EditableMesh extends DataModelMesh {
|
|
|
1398
1398
|
*
|
|
1399
1399
|
* @deprecated
|
|
1400
1400
|
*/
|
|
1401
|
-
CreateMeshPartAsync(this: EditableMesh, initialSize: Vector3, options?:
|
|
1401
|
+
CreateMeshPartAsync(this: EditableMesh, initialSize: Vector3, options?: CreateMeshPartAsyncOptions): MeshPart;
|
|
1402
1402
|
}
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Instance is the base class for all classes in the Roblox class hierarchy which can be part of the DataModel tree.
|
|
@@ -3297,7 +3297,7 @@ interface AssetService extends Instance {
|
|
|
3297
3297
|
* - `RenderFidelity` – The value of `RenderFidelity` in the resulting part. Defaults to `RenderFidelity.Automatic` if the option is absent or the `options` table is `nil`.
|
|
3298
3298
|
* - `FluidFidelity` – The value of `FluidFidelity` in the resulting part. Defaults to `FluidFidelity.Automatic` if the option is absent or the `options` table is `nil`.
|
|
3299
3299
|
*/
|
|
3300
|
-
CreateMeshPartAsync(this: AssetService, meshContent: Content, options?:
|
|
3300
|
+
CreateMeshPartAsync(this: AssetService, meshContent: Content, options?: CreateMeshPartAsyncOptions): MeshPart;
|
|
3301
3301
|
/**
|
|
3302
3302
|
* Clones a place through the given `templatePlaceID`.
|
|
3303
3303
|
*
|
|
@@ -745,7 +745,7 @@ interface EditableImage extends RBXObject {
|
|
|
745
745
|
*
|
|
746
746
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/EditableMesh)
|
|
747
747
|
*/
|
|
748
|
-
interface EditableMesh extends
|
|
748
|
+
interface EditableMesh extends RBXObject {
|
|
749
749
|
/**
|
|
750
750
|
* **DO NOT USE!**
|
|
751
751
|
*
|
package/include/lua.d.ts
CHANGED
|
@@ -508,6 +508,9 @@ declare namespace math {
|
|
|
508
508
|
/** Returns the base-10 logarithm of x. */
|
|
509
509
|
function log10(n: number): number;
|
|
510
510
|
|
|
511
|
+
/** Maps a number from one range to another. */
|
|
512
|
+
function map(x: number, inmin: number, inmax: number, outmin: number, outmax: number): number;
|
|
513
|
+
|
|
511
514
|
/** Returns the maximum value among the numbers passed to the function. */
|
|
512
515
|
function max(...n: Array<number>): number;
|
|
513
516
|
|
package/include/roblox.d.ts
CHANGED
|
@@ -3333,3 +3333,54 @@ interface PromptBulkPurchaseFinishedResults {
|
|
|
3333
3333
|
status: Enum.MarketplaceItemPurchaseStatus;
|
|
3334
3334
|
}>;
|
|
3335
3335
|
}
|
|
3336
|
+
|
|
3337
|
+
interface DrawImageTransformedOptions {
|
|
3338
|
+
/**
|
|
3339
|
+
* Specifies how the pixels of the source image blend with those of the destination.
|
|
3340
|
+
* Default is `Enum.ImageCombineType.AlphaBlend`.
|
|
3341
|
+
*/
|
|
3342
|
+
CombineType: Enum.ImageCombineType.AlphaBlend;
|
|
3343
|
+
/**
|
|
3344
|
+
* Specifies the sampling method (e.g. Default for bilinear or `Pixelated` for nearest neighbor)
|
|
3345
|
+
* Default is `Enum.ResamplerMode.Default`.
|
|
3346
|
+
*/
|
|
3347
|
+
SamplingMode: Enum.ResamplerMode.Default;
|
|
3348
|
+
/**
|
|
3349
|
+
* Specifies the pivot point within the source image for scaling and rotation.
|
|
3350
|
+
* Default is the center of the source image (i.e. `Image.Size / 2`).
|
|
3351
|
+
*/
|
|
3352
|
+
PivotPoint: Vector2;
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
interface DrawImageProjectedProjection {
|
|
3356
|
+
/** Direction (`Vector3`) where the projector is facing. */
|
|
3357
|
+
Direction: Vector3;
|
|
3358
|
+
/** Position (`Vector3`) as the position in local space with respect to the mesh. */
|
|
3359
|
+
Position: Vector3;
|
|
3360
|
+
/** Size (`Vector3`) as the size of the projector. */
|
|
3361
|
+
Size: Vector3;
|
|
3362
|
+
/** Up (`Vector3`) as the up vector of the projector in local space with respect to the mesh. */
|
|
3363
|
+
Up: Vector3;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
interface DrawImageProjectedBrushConfig {
|
|
3367
|
+
/** AlphaBlendType (`Enum.ImageAlphaType`) which determines how this projection will blend alpha values. */
|
|
3368
|
+
AlphaBlendType: Enum.ImageAlphaType;
|
|
3369
|
+
/** ColorBlendType (`Enum.ImageCombineType`) which determines how this projection will blend color values. */
|
|
3370
|
+
ColorBlendType: Enum.ImageCombineType;
|
|
3371
|
+
/** Decal (`EditableImage`) as the image used for projection. */
|
|
3372
|
+
Decal: EditableImage;
|
|
3373
|
+
/** FadeAngle (`number`) as the angle in degrees for the projection edges to fall off. */
|
|
3374
|
+
FadeAngle: number;
|
|
3375
|
+
/** BlendIntensity (`number`) as the value between 0 and 1 which controls how much of the projection is blended into the resulting image. */
|
|
3376
|
+
BlendIntensity: number;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
interface CreateMeshPartAsyncOptions {
|
|
3380
|
+
/** The value of `CollisionFidelity` in the resulting part. Defaults to `Enum.CollisionFidelity.Default` if the option is absent or the `options` table is `nil`. */
|
|
3381
|
+
CollisionFidelity?: Enum.CollisionFidelity;
|
|
3382
|
+
/** The value of `RenderFidelity` in the resulting part. Defaults to `Enum.RenderFidelity.Automatic` if the option is absent or the `options` table is `nil`. */
|
|
3383
|
+
RenderFidelity?: Enum.RenderFidelity;
|
|
3384
|
+
/** The value of `FluidFidelity` in the resulting part. Defaults to `Enum.FluidFidelity.Automatic` if the option is absent or the `options` table is `nil`. */
|
|
3385
|
+
FluidFidelity?: Enum.FluidFidelity;
|
|
3386
|
+
}
|