{"id":18878472,"url":"https://github.com/httpstersk/image-mask","last_synced_at":"2025-12-16T21:10:52.986Z","repository":{"id":16652644,"uuid":"19408078","full_name":"httpstersk/image-mask","owner":"httpstersk","description":"A Polymer element for masking the images with basic (and some extraordinary) geometric shapes","archived":false,"fork":false,"pushed_at":"2017-09-22T14:16:49.000Z","size":68,"stargazers_count":29,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T22:11:38.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/httpstersk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-03T17:18:20.000Z","updated_at":"2020-09-29T13:47:47.000Z","dependencies_parsed_at":"2022-08-29T08:50:41.191Z","dependency_job_id":null,"html_url":"https://github.com/httpstersk/image-mask","commit_stats":null,"previous_names":["hejty/image-mask"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpstersk%2Fimage-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpstersk%2Fimage-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpstersk%2Fimage-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpstersk%2Fimage-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httpstersk","download_url":"https://codeload.github.com/httpstersk/image-mask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936869,"owners_count":21186117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-08T06:27:11.736Z","updated_at":"2025-12-16T21:10:52.633Z","avatar_url":"https://github.com/httpstersk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026lt;image-mask\u0026gt;\n\n\u003e A Polymer element for masking the images with basic (and some extraordinary) geometric shapes\n\n![alt tag](http://www.hejty.com/github/image-mask-circle-320.png)\n\n## Demo\n\n[Check it live!](http://hejty.github.io/demos/image-mask/)\n\n\n## Install\n\n1. Install from npm registry:\n\n    ```sh\n    npm install polymer-image-mask\n    ```\n\n## Usage\n\n1. Import Custom Element as a script with type `module` or `ES` module:\n\n    ```html\n    \u003cscript src=\"image-mask.js\" type=\"module\"\u003e\u003c/script\u003e\n    ```\n\n\n    ```js\n    import { ImageMask } from 'polymer-image-mask';\n    ```\n\n2. Start using it!\n\n    ```html\n    \u003cimage-mask\u003e\u003c/image-mask\u003e\n    ```\n\n## Options\n\nAttribute       | Description                                                           | Options       | Default               \n---             | ---                                                                   | ---           | ---                          \n`shape`         | The `shape` attribute sets a masking shape                            | `circle`, `triangle`, `square`, `hexagon`, `octagon`, `star`, `rhombus`, `parallelogram`, `plus`, `squircle`, `ring`                               | `circle`\n`size`          | The `size` attribute sets a size of an element                        | *int*         | `320`\n`src`           | The `src` attribute defines a path to an image that will be masked    | *string*      | `http://placehold.it/320`\n`title`         | The `title` attribute sets a short description of an image            | *string*      | `-`\n`desc`          | The `desc` attribute sets a long description of an image              | *string*      | `-`\n\n## Example\n\n```html\n\u003cimage-mask shape=\"circle\" size=\"320\" src=\"img/image.jpg\" title=\"A short description of an image\" desc=\"A long description of an image\"\u003e\u003c/image-mask\u003e\n```\n\n## Contributing\n\n1. Fork it 🍴\n2. Create your feature branch: `git checkout -b my-freaking-cool-feature`\n3. Commit your changes: `git commit -m 'Add some freaking cool feature'`\n4. Push to the branch: `git push origin my-freaking-cool-feature`\n5. Submit a pull request ☝️\n\n## History\n\nFor detailed changelog, check [Releases](https://github.com/hejty/image-mask/releases).\n\n## License\n\n[MIT License](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpstersk%2Fimage-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpstersk%2Fimage-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpstersk%2Fimage-mask/lists"}