{"id":20762028,"url":"https://github.com/donkeyclip/motorcortex-polymorph","last_synced_at":"2025-04-30T06:40:37.990Z","repository":{"id":40598741,"uuid":"360278068","full_name":"donkeyclip/motorcortex-polymorph","owner":"donkeyclip","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-14T04:59:09.000Z","size":4177,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T05:37:05.891Z","etag":null,"topics":["motorcortex","motorcortex-plugin","polymorph"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donkeyclip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-21T19:05:47.000Z","updated_at":"2022-04-01T08:49:30.000Z","dependencies_parsed_at":"2023-02-08T04:47:02.215Z","dependency_job_id":"e5ccce51-e397-4216-bf1a-d21510e1421b","html_url":"https://github.com/donkeyclip/motorcortex-polymorph","commit_stats":{"total_commits":315,"total_committers":12,"mean_commits":26.25,"dds":0.5555555555555556,"last_synced_commit":"f62861d0aaea22959b05398e88956da45d376f91"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-polymorph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-polymorph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-polymorph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-polymorph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeyclip","download_url":"https://codeload.github.com/donkeyclip/motorcortex-polymorph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251657406,"owners_count":21622813,"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":["motorcortex","motorcortex-plugin","polymorph"],"created_at":"2024-11-17T10:28:45.795Z","updated_at":"2025-04-30T06:40:37.970Z","avatar_url":"https://github.com/donkeyclip.png","language":"JavaScript","readme":"# MotorCortex-Polymorph\n\n**Table of Contents**\n\n- [MotorCortex-Polymorph](#motorcortex-polymorph)\n  - [Demo](#demo)\n- [Intro / Features](#intro--features)\n- [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Importing and Loading](#importing-and-loading)\n- [Creating Incidents](#creating-incidents)\n  - [Polymorph](#polymorph)\n- [Adding Incidents in your clip](#adding-incidents-in-your-clip)\n- [Contributing](#contributing)\n- [License](#license)\n- [Sponsored by](#sponsored-by)\n\n## Demo\n[Check it out here](https://donkeyclip.github.io/motorcortex-polymorph/demo/index.html)\n\n# Intro / Features\nMotorCortex-Polymorph brings the capabilities of [Polymorph](https://notoriousb1t.github.io/polymorph-docs/) Library into MotorCortex. With this plugin you can morph a shape to another shape.\n\nThis Plugin exposes one Incident:\n- Polymorph\n\n# Getting Started\n## Installation\n\n```bash\n$ npm install --save @donkeyclip/motorcortex-polymorph\n# OR\n$ yarn add @donkeyclip/motorcortex-polymorph\n```\n\n## Importing and loading\n\n```javascript\nimport { loadPlugin } from \"@donkeyclip/motorcortex/\";\nimport polymorphDefinition from \"@donkeyclip/motorcortex-polymorph\";\nconst Plugin = loadPlugin(polymorphDefinition);\n```\n\n# Creating Incidents\n\n## Polymorph\n\n```javascript\nconst polymorph = new Plugin.Polymorph(\n  {\n    animatedAttrs: {\n      d: `M209 289h-4c-4-8.4-5.8-8.8-13.5-3.9-2.4 1.5-5 2.6-7.5 11.4z`,\n    },\n    addPoints: 100,\n    originX: 0,\n    originY: 0,\n    precision: 0,\n  },\n  {\n    selector: \"#poly\",\n    duration: 1000,\n  }\n);\n```\n\n### Polymorph Attrs\n\n| Name      |                                        Are                                         | Values |\n| --------- | :--------------------------------------------------------------------------------: | -----: |\n| d         |                                      svg path                                      |  sting |\n| addPoints |       Adds additional points to each side of the tween over what is required       |    num |\n| originX   | Is values between 0 and 1 representing 0% to 100% of the bounding box of the path. |    num |\n| originY   | Is values between 0 and 1 representing 0% to 100% of the bounding box of the path. |    num |\n| precision |              The number of decimal places to use when rendering paths              |    num |\n\n# Adding Incidents in your clip\n\n```javascript\nclipName.addIncident(incidentName,startTime);\n```\n\n# Contributing \n\nIn general, we follow the \"fork-and-pull\" Git workflow, so if you want to submit patches and additions you should follow the next steps:\n1.\t**Fork** the repo on GitHub\n2.\t**Clone** the project to your own machine\n3.\t**Commit** changes to your own branch\n4.\t**Push** your work back up to your fork\n5.\tSubmit a **Pull request** so that we can review your changes\n\n# License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n# Sponsored by\n[\u003cimg src=\"https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg\" width=250\u003e\u003c/img\u003e](https://donkeyclip.com)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-polymorph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeyclip%2Fmotorcortex-polymorph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-polymorph/lists"}