forked from foundryvtt/pf2e
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some minor type updates for 12.323 (foundryvtt#14743)
- Loading branch information
1 parent
da634bd
commit 0bc0780
Showing
16 changed files
with
107 additions
and
21 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
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
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
32 changes: 31 additions & 1 deletion
32
types/foundry/client-esm/canvas/sources/point-darkness-source.d.ts
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 |
---|---|---|
@@ -1,5 +1,35 @@ | ||
import type { Edge } from "../edges/edge.js"; | ||
import type { PointEffectLightSource } from "./point-effect-source-mixes.ts"; | ||
|
||
export default class PointDarknessSource< | ||
TObject extends Token | AmbientLight | null, | ||
> extends PointEffectLightSource<TObject> {} | ||
> extends PointEffectLightSource<TObject> { | ||
/** | ||
* The optional geometric shape is solely utilized for visual representation regarding darkness sources. | ||
* Used only when an additional radius is added for visuals. | ||
*/ | ||
_visualShape: PointSourcePolygon; | ||
|
||
/** | ||
* Padding applied on the darkness source shape for visual appearance only. | ||
* Note: for now, padding is increased radius. It might evolve in a future release. | ||
*/ | ||
protected _padding: number; | ||
|
||
/** The Edge instances used by this darkness source */ | ||
edges: Edge[]; | ||
|
||
/* -------------------------------------------- */ | ||
/* Darkness Source Properties */ | ||
/* -------------------------------------------- */ | ||
|
||
/** A convenience accessor to the darkness layer mesh. */ | ||
get darkness(): PointSourceMesh; | ||
|
||
/* -------------------------------------------- */ | ||
/* Shader Management */ | ||
/* -------------------------------------------- */ | ||
|
||
/** Update the uniforms of the shader on the darkness layer. */ | ||
_updateDarknessUniforms(): void; | ||
} |
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
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
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
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
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