Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mofron-layout-margin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mofron-layout-margin - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

21

index.js

@@ -11,18 +11,13 @@ /**

super();
this.name('Margin');
var _tp = (undefined === tp) ? null : tp;
var _val = (undefined === val) ? null : val;
if (null === _tp) {
throw new Error('invalid paramter');
} else if ('number' === (typeof _tp)) {
_val = _tp;
_tp = '';
}
this.m_type = null;
this.m_value = null;
this.type(_tp);
this.value(_val);
if ('object' === typeof tp) {
this.prmOpt(tp);
} else {
this.type(tp);
this.value(val);
}
} catch (e) {

@@ -72,3 +67,2 @@ console.error(e.stack);

}
if ((null === val) || ('number' !== (typeof val))) {

@@ -84,1 +78,2 @@ throw new Error('invalid parameter');

}
module.exports = mofron.layout.Margin;
{
"name": "mofron-layout-margin",
"version": "0.0.5",
"version": "0.0.7",
"description": "margin layout of mofron",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,22 @@

# mofron-layout-margin
# mofron-layout-margin
margin layout for [mofron](https://github.com/simpart/mofron).<br>
# Install
```bash
mofron install mofron-layout-padding
```
# Sample
```javascript
require('mofron');
let Text = require('mofron-comp-text');
let Margin = require('mofron-layout-margin');
new mofron.Component({
layout : new Margin('left',100), // margin layout
child : [new Text('child 1'),
new Text('child 2'),
new Text('child 3')],
visible : true
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc