Giter Club home page Giter Club logo

Comments (7)

jimbojw avatar jimbojw commented on July 22, 2024

Just run the test example in facets_dive/components.

Can you paste the command you used to run? This will help me get to the root cause, thanks!

from facets.

makroid avatar makroid commented on July 22, 2024

I run it as specified in the readme:
bazel run //facets_dive/components/facets_dive:devserver
It works but instead of the images in test_sprite.png it shows the default colored circles.
test_sprite.png is in the facets_dive/components/facets_dive folder next to facets-dive.html etc.

from facets.

jimbojw avatar jimbojw commented on July 22, 2024

Ok thanks. I believe the problem is that bazel is not picking up your file during the build process. The target //facets_dive/components/facets_dive:devserver is defined in the file facets_dive/components/facets_dive/BUILD and depends no the :test target.

I think if you add test_sprite.png to the deps of the test target, bazel should pick it up and include it.

ts_web_library(
    name = "test",
    testonly = True,
    srcs = [
        "test.html",
        "test.ts",
        "test_sprite.png",  ### ADD THIS ###
    ],
    path = "/facets-dive/components/facets-dive",
    deps = [
        ":facets_dive",
        "//facets_dive/lib/test:externs",
        "@org_tensorflow_tensorboard//tensorboard/components/tf_imports:web_component_tester",
    ],
)

from facets.

makroid avatar makroid commented on July 22, 2024

I included it into the BUILD file, but it still does not show up.
I also changed "atlasUrl" to "test_sprite.png" and spriteImageWidth: 100, spriteImageHeight: 100 in facets-dive.ts, but this also does not help.

from facets.

makroid avatar makroid commented on July 22, 2024

Ok, if I change settings in facets-dive.html, it works. The docs should note that one has to make this change in the BUILD file:
To specify the URL to an atlas to use, set the atlasUrl property of the Dive Polymer Element in JavaScript (or the atlas-url attribute in HTML).
is not super clear (see also #15)

from facets.

jimbojw avatar jimbojw commented on July 22, 2024

Glad you got it to work! Sorry again for the confusion.

from facets.

jimbojw avatar jimbojw commented on July 22, 2024

Duplicate of #80

from facets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.