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

Frame CSS background-image: url() object problem #62

Open
Yomyer opened this issue May 10, 2020 · 1 comment
Open

Frame CSS background-image: url() object problem #62

Yomyer opened this issue May 10, 2020 · 1 comment

Comments

@Yomyer
Copy link

Yomyer commented May 10, 2020

Describe the bug
Problems with Frame when adding a background or background-image URL, it returns an [Object object] when you do toCSS();

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version 81.0.4044.138

Additional context

Don't Work

import { Frame } from 'scenejs';

const frame = new Frame({
            'background-repeat': 'no-repeat',
            'background-position': 'center center',
            'background-size': 'cover',
            'background-image': 'url(https://www.clautic.com/league/wp-content/uploads/unicorn-wallpaper.jpg)',
});

console.log(frame.toCSS());

Work

import { Frame } from 'scenejs';

const frame = new Frame({
            'background-repeat': 'no-repeat',
            'background-position': 'center center',
            'background-size': 'cover'
});

console.log(`${frame.toCSS()}; background-image: url(https://www.clautic.com/league/wp-content/uploads/unicorn-wallpaper.jpg)`);

Thanks man

daybrush added a commit that referenced this issue May 11, 2020
@daybrush
Copy link
Owner

@Yomyer

scenejs 1.1.7 is released. Check it again.

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants