-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild the GUI to be compatible with the plugin
rebuild the GUI to be compatible with the plugin
- Loading branch information
Showing
22 changed files
with
744 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# GUI help for signalk-raymarine-autopilot | ||
# GUI help for signalk-autopilot | ||
|
||
![GUI help](./GUI-help.png "GUI help") | ||
![GUI help](./public/img/GUI-help.png "GUI help") | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(function(global) { | ||
/* | ||
Simple functions to scale content to fit it's parent | ||
Author: Liudmil Mitev | ||
License: WTFPL | ||
Demo: https://jsfiddle.net/oxzxyxqn/7/ | ||
*/ | ||
function scaleAmountNeededToFit(el, margin = 0) { | ||
const parentSize = { | ||
width: el.parentElement.clientWidth - margin * 2, | ||
height: el.parentElement.clientHeight - margin * 2 | ||
}; | ||
|
||
return Math.min(parentSize.width / el.clientWidth, | ||
parentSize.height / el.clientHeight); | ||
} | ||
|
||
function fitToParent(element, margin) { | ||
const scale = scaleAmountNeededToFit(element, margin); | ||
element.style.transformOrigin = "0 0"; | ||
element.style.transform = `translate(${margin}px, ${margin}px) scale(${scale})`; | ||
} | ||
|
||
global.fitToParent = fitToParent; | ||
})(this); |
Oops, something went wrong.