pathfinder-ui
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -5,6 +5,6 @@ | ||
$mdThemingProvider.theme('default') | ||
.primaryPalette('pink') | ||
.accentPalette('orange') | ||
.primaryPalette('indigo') | ||
.accentPalette('light-green') | ||
.warnPalette('red'); | ||
}) | ||
@@ -13,7 +13,8 @@ | ||
var margin = {top: 20, right: 120, bottom: 20, left:100}, | ||
width = $(window).width() * .7; | ||
// width = $(document).width() - margin.right - margin.left, | ||
height = $(document).height() - margin.top - margin.bottom; | ||
var margin = {top: 20, right: 120, bottom: 20, left:100}; | ||
var width = $(window).width() * .7; | ||
var height = $(document).height(); | ||
var i = 0, | ||
@@ -48,3 +49,3 @@ duration = 500, | ||
d3.select(element[0]).append('button') | ||
.attr('class','md-primary md-button md-default-theme md-raised') | ||
.attr('class','md-primary md-button md-default-theme') | ||
.attr('id', 'collapseBtn') | ||
@@ -75,6 +76,6 @@ .text("Collapse all") | ||
} | ||
update(d); | ||
//svg.attr("transform", "translate(-20,-20)scale(1)"); | ||
update(d) | ||
}) | ||
}) | ||
})//Closes the .onClick | ||
@@ -90,3 +91,3 @@ | ||
root = treeData.routes; | ||
root.x0 = height / 2; | ||
root.x0 = 200; | ||
root.y0 = 0; | ||
@@ -96,3 +97,3 @@ | ||
d3.select(self.frameElement).style("height", "800px"); | ||
//d3.select(self.frameElement).style("height", "800px"); | ||
@@ -117,3 +118,3 @@ function update(source) { | ||
//new height of the graph is n * (longest children string of nodes) | ||
var newHeight = d3.max(levelWidth) * 60; // 25 pixels child | ||
var newHeight = d3.max(levelWidth) * 80; | ||
tree = tree.size([newHeight, width]); | ||
@@ -132,2 +133,3 @@ | ||
// Enter any new nodes at the parent's previous position. | ||
@@ -166,3 +168,3 @@ var nodeEnter = node.enter().append("g") | ||
//Line 1 for endpoint nodes | ||
//Text Line 1 for endpoint nodes | ||
nodeEnter.append('g') | ||
@@ -181,3 +183,3 @@ .append('text') | ||
//Line 2 for endpoint nodes | ||
//Text Line 2 for endpoint nodes | ||
nodeEnter.append('g') | ||
@@ -184,0 +186,0 @@ .append('text') |
@@ -39,3 +39,2 @@ app.factory('HistoryFactory', function($http, DataFactory){ | ||
getHistory: function() { | ||
console.log("ran getHistory"); | ||
return history; | ||
@@ -42,0 +41,0 @@ } |
@@ -19,3 +19,3 @@ var example = require('./example'); | ||
routes: generateRouteTree(app), | ||
appId: packageJsonName, | ||
appId: packageJsonName + '-pf', | ||
routeTable: table | ||
@@ -29,2 +29,3 @@ }; | ||
var topLevelRouteStack = app._router.stack; | ||
table = [] | ||
var routeObj = { | ||
@@ -31,0 +32,0 @@ url: packageJsonName, |
{ | ||
"name": "pathfinder-ui", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "preferGlobal": false, |
@@ -9,10 +9,12 @@ Pathfinder-UI | ||
NPM install the module. | ||
```bash | ||
npm install pathfinder-ui --save | ||
``` | ||
``` | ||
NPM install the module. | ||
## Usage | ||
Require the module in your app. | ||
```js | ||
@@ -22,23 +24,15 @@ var pathfinderUI = require('pathfinder-ui') | ||
Require the module in your app. | ||
Put our pathfinder-ui routing where you keep your middleware. | ||
```js | ||
app.use('yourCustomPath', pathfinderUI.router) | ||
app.use('/foo', barmiddleware ) | ||
app.get('/*', foo) | ||
app.use('/pathfinder', function(req, res, next){ | ||
pathfinderUI(app) | ||
next() | ||
}, pathfinderUI.router) | ||
``` | ||
Put the pathfinder-ui routing middleware before your routes. | ||
pathfinderUI(app) grabs your express routes and passes the data into the pathfinder module. | ||
```js | ||
app.use('/foo', barmiddleware ) | ||
app.get('/*', foo) | ||
pathfinderUI(app); | ||
``` | ||
You access the interface by going to localhost:PORT/pathfinder | ||
This function grabs your express routes and passes the data into the module. | ||
Put this line after all of your routes/routers/middlewares. | ||
You access the interface by going to localhost:PORT/yourCustomPath | ||
<!-- ## Tests | ||
@@ -45,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
94675
42