New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phosphor-boxpanel

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phosphor-boxpanel - npm Package Compare versions

Comparing version 1.0.0-beta.3 to 1.0.0-beta.4

8

lib/index.d.ts

@@ -53,2 +53,10 @@ import { Message } from 'phosphor-messaging';

spacing: number;
/**
* A message handler invoked on a `'child-added'` message.
*/
protected onChildAdded(msg: ChildMessage): void;
/**
* A message handler invoked on a `'child-removed'` message.
*/
protected onChildRemoved(msg: ChildMessage): void;
}

@@ -55,0 +63,0 @@ /**

28

lib/index.js

@@ -20,3 +20,2 @@ /*-----------------------------------------------------------------------------

var phosphor_widget_1 = require('phosphor-widget');
require('./index.css');
// TODO - need better solution for storing these class names

@@ -28,2 +27,6 @@ /**

/**
* The class name added to a BoxPanel child.
*/
var CHILD_CLASS = 'p-BoxPanel-child';
/**
* The class name added to left-to-right box layout parents.

@@ -119,2 +122,14 @@ */

});
/**
* A message handler invoked on a `'child-added'` message.
*/
BoxPanel.prototype.onChildAdded = function (msg) {
msg.child.addClass(CHILD_CLASS);
};
/**
* A message handler invoked on a `'child-removed'` message.
*/
BoxPanel.prototype.onChildRemoved = function (msg) {
msg.child.removeClass(CHILD_CLASS);
};
return BoxPanel;

@@ -253,2 +268,3 @@ })(phosphor_widget_1.Panel);

arrays.insert(sizers, index, new phosphor_boxengine_1.BoxSizer());
BoxLayoutPrivate.prepareGeometry(child);
this.parent.node.appendChild(child.node);

@@ -490,4 +506,11 @@ if (this.parent.isAttached)

/**
* Reset the layout geometry for the given child widget.
* Prepare a child widget for absolute layout geometry.
*/
function prepareGeometry(widget) {
widget.node.style.position = 'absolute';
}
BoxLayoutPrivate.prepareGeometry = prepareGeometry;
/**
* Reset the layout geometry of a child widget.
*/
function resetGeometry(widget) {

@@ -500,2 +523,3 @@ var rect = rectProperty.get(widget);

rect.height = NaN;
style.position = '';
style.top = '';

@@ -502,0 +526,0 @@ style.left = '';

8

package.json
{
"name": "phosphor-boxpanel",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "A Phosphor layout panel which arranges its children into a single row or column.",

@@ -13,3 +13,3 @@ "main": "lib/index.js",

"phosphor-properties": "^2.0.0",
"phosphor-widget": "^1.0.0-beta.6"
"phosphor-widget": "^1.0.0-beta.8"
},

@@ -22,3 +22,2 @@ "devDependencies": {

"expect.js": "^0.3.1",
"glob-copy": "^0.1.0",
"karma": "^0.13.9",

@@ -42,5 +41,4 @@ "karma-browserify": "^4.3.0",

"build:test": "tsc --project test/src",
"build:css": "node scripts/copycss.js",
"build:example": "tsc --project example && browserify -t browserify-css example/index.js -o example/bundle.js",
"build": "npm run build:src && npm run build:test && npm run build:css",
"build": "npm run build:src && npm run build:test",
"docs": "rimraf docs/api && typedoc --options scripts/tdoptions.json",

@@ -47,0 +45,0 @@ "postinstall": "npm dedupe",

@@ -0,0 +0,0 @@ phosphor-boxpanel

Sorry, the diff of this file is not supported yet

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