Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definition for font blur has optional property offset, but it is required #3068

Open
spustlik opened this issue May 18, 2024 · 1 comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior

Comments

@spustlik
Copy link

Steps to Reproduce

let font =  fontSource.toFont({
        family: 'pleasantly_plumpnormal',
        color: ex.Color.White,
        shadow: { 
           blur: 5, 
           color: ex.Color.Black, 
           offset: ex.vec(0, 0)  // if ommited, engine will throw error
       }
    })

Expected Result

typescript with required property, or engine accepts undefined

Environment

Excalibur: (v0.30.0-alpha.1053+29fef3b)

Current Workaround

offset: ex.vec(0,0)
@eonarheim eonarheim added the bug This issue describes undesirable, incorrect, or unexpected behavior label May 19, 2024
@eonarheim
Copy link
Member

@spustlik Thanks for the issue, definitely a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

No branches or pull requests

2 participants