New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nexrender/action-mogrt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexrender/action-mogrt

MOGRT support for Nexrender

latest
npmnpm
Version
1.57.1
Version published
Maintainers
1
Created
Source

nexrender-action-mogrt-template

This plugin adds .mogrt support to Nexrender.

Install

npm install @nexrender/action-mogrt

How to use

  • Set a .mogrt file as the template.src value
  • Add this module in predownload actions
  • Add any Essential Graphics parameters you want to change as params
  • Use unique layer names in the .mogrt file to reference assets to leverage nexrender built-in asset substitution
{
    "template": {
        "src": "http://www.foo.com/template.mogrt",
        "composition": "will_be_ignored"
    },
    "assets": [
        {
            "type": "image",
            "src": "http://www.foo.com/image.png",
            "layerName": "$ref-layer-1"
        },
        {
            "type": "image",
            "src": "http://www.foo.com/image2.png",
            "layerName": "$ref-layer-2"
        }
    ],
    "actions": {
        "predownload": [
            {
                "module": "@nexrender/action-mogrt",
                "params": {
                    "Title": "This should be the title",
                    "Dropdown": 2,
                        "Group Name": {
                        "Some Name": "Some Value",
                        "Another Name": 123
                    },
                    "My First Image": "$ref-image-1",
                    "My Second Image": "$ref-image-2"
                    "Scale": [50, 50],
                    "Checkbox": true,
                    "Point Control:": [30, 50],
                    "Angle": 720,
                    "Colour": [0.7, 0.2, 0],
                    "Slider": 50,
                    "Scale": [50, 50]
                }
            }
        ],

Notes

  • Any template.src without a .mogrt extension will be ignored
  • The value in template.composition will be ignored, as .mogrt files specify what composition to use on their own, but Nexrender requires one to be specified
  • Invalid .mogrt files will cause an error

License

Please refer to the LICENSE file for more information. Unlike the main nexrender project, this plugin is licensed under the AGPL-3.0 license.

FAQs

Package last updated on 18 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts