{"id":15389253,"url":"https://github.com/m4b/silicon-image","last_synced_at":"2026-03-01T03:02:16.487Z","repository":{"id":36535871,"uuid":"40841662","full_name":"m4b/silicon-image","owner":"m4b","description":"Displays a rasterized binary image with `silicon-image-behavior`, to update binary offsets via mouse movement, and etc.","archived":false,"fork":false,"pushed_at":"2015-08-24T17:58:12.000Z","size":1892,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T10:16:48.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m4b.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-16T21:19:14.000Z","updated_at":"2019-08-18T16:50:00.000Z","dependencies_parsed_at":"2022-09-21T09:45:33.687Z","dependency_job_id":null,"html_url":"https://github.com/m4b/silicon-image","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/m4b/silicon-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4b%2Fsilicon-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4b%2Fsilicon-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4b%2Fsilicon-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4b%2Fsilicon-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m4b","download_url":"https://codeload.github.com/m4b/silicon-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m4b%2Fsilicon-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T14:59:50.811Z","updated_at":"2026-03-01T03:02:16.444Z","avatar_url":"https://github.com/m4b.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003csilicon-image\u003e`\nDisplays a rasterized binary image with `silicon-image-behavior`.  You need to provide your own containing block, as the element has `absolute` positioning so that other images can be stacked.\n\nI suggest something like this if you've got it wrapped in a `\u003cdiv\u003e`, which itself is in a flexbox:\n\n```css\ndiv {\n  flex: 1 1 0;\n  width: 412px; \u003cyou can change this dynamically\u003e\n  overflow-y: scroll;\n  position: relative;\n  background-color: grey;\n  margin-bottom: 8px;\n}\n```\n\nor something like this div, if no flexbox:\n\n```css\ndiv {\n  overflow-y: scroll;\n  height: 200px;\n  width: 412px;\n  position: absolute;\n  background-color: grey;\n}\n```\n\nExample:\n\n```html\n\u003csilicon-image size=\"[[size]]\" width=\"400\" style=\"z-index: 10;\" zoom=\"10\" offset=\"{{offset}}\"\u003e\u003c/silicon-image\u003e\n```\n\nAs the mouse moves over the image, `offset` is updated, so listen for an `offset-changed` event, or two-way data-bind to `offset` if you're using Polymer.\n\nSee the [documentation](http://m4b.github.io/silicon-image) for more information.\n\n# Install\n\nVia bower:\n\n`bower install silicon-image`\n\nAs with all Silicon Elements, this requires Polymer, and the webcomponents polyfill (for now).\n\nExample:\n\n```html\n\u003chead\u003e\n\u003cscript src=\"bower_components/webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"import\" href=\"bower_components/polymer/polymer.html\"\u003e\n\u003clink rel=\"import\" href=\"bower_components/silicon-image/silicon-image.html\"\u003e\n\u003c/head\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4b%2Fsilicon-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm4b%2Fsilicon-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm4b%2Fsilicon-image/lists"}