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

rc-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tooltip - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

HISTORY.md
# History
----
## 1.1.0 / 2015-05-14
## 1.1.1 / 2015-05-14
add defaultVisible and onVisibleChange

@@ -90,14 +90,18 @@ /** @jsx React.DOM */

var tipNode = tooltip.getRootNode();
var points = ['cr', 'cl'];
var placement = this.props.placement;
if (placement === 'right') {
points = ['cl', 'cr'];
} else if (placement === 'top') {
points = ['bc', 'tc'];
} else if (placement === 'bottom') {
points = ['tc', 'bc'];
if (placement && placement.points) {
domAlign(tipNode, rootNode, placement);
} else {
var points = ['cr', 'cl'];
if (placement === 'right') {
points = ['cl', 'cr'];
} else if (placement === 'top') {
points = ['bc', 'tc'];
} else if (placement === 'bottom') {
points = ['tc', 'bc'];
}
domAlign(tipNode, rootNode, {
points: points
});
}
domAlign(tipNode, rootNode, {
points: points
});
}

@@ -104,0 +108,0 @@ });

{
"name": "rc-tooltip",
"version": "1.1.0",
"version": "1.1.1",
"description": "tooltip ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -109,5 +109,5 @@ # rc-tooltip

<td>placement</td>
<td>String</td>
<td>String|Object</td>
<td></td>
<td>one of ['left','right','top','bottom']</td>
<td>one of ['left','right','top','bottom'] or alignConfig of [dom-align](https://github.com/yiminghe/dom-align)</td>
</tr>

@@ -114,0 +114,0 @@ <tr>

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