mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
update build and changelog
This commit is contained in:
parent
6f0fcb64f5
commit
de8f4d1fe3
@ -1,5 +1,9 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 0.6.1
|
||||||
|
* Fixed issue with color picker not working on a page that has scrolled. #37
|
||||||
|
* Fixed issue with sliders created with min()/max() not remembering their name or to listen. #107
|
||||||
|
|
||||||
### 0.6.0
|
### 0.6.0
|
||||||
* Ported to ES6
|
* Ported to ES6
|
||||||
* Exported using Universal Module Definition (UMD) for max compatibility (Commonjs, Requirejs, AMD, global var)
|
* Exported using Universal Module Definition (UMD) for max compatibility (Commonjs, Requirejs, AMD, global var)
|
||||||
|
@ -2096,10 +2096,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
function onMouseDrag(e) {
|
function onMouseDrag(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
var offset = _dom2.default.getOffset(_this.__background);
|
var bgRect = _this.__background.getBoundingClientRect();
|
||||||
var width = _dom2.default.getWidth(_this.__background);
|
|
||||||
|
|
||||||
_this.setValue(map(e.clientX, offset.left, offset.left + width, _this.__min, _this.__max));
|
_this.setValue(map(e.clientX, bgRect.left, bgRect.right, _this.__min, _this.__max));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2442,10 +2441,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
function setSV(e) {
|
function setSV(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
var w = _dom2.default.getWidth(_this.__saturation_field);
|
var fieldRect = _this.__saturation_field.getBoundingClientRect();
|
||||||
var o = _dom2.default.getOffset(_this.__saturation_field);
|
var s = (e.clientX - fieldRect.left) / (fieldRect.right - fieldRect.left);
|
||||||
var s = (e.clientX - o.left + document.body.scrollLeft) / w;
|
var v = 1 - (e.clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
||||||
var v = 1 - (e.clientY - o.top + document.body.scrollTop) / w;
|
|
||||||
|
|
||||||
if (v > 1) {
|
if (v > 1) {
|
||||||
v = 1;
|
v = 1;
|
||||||
@ -2470,9 +2468,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|||||||
function setH(e) {
|
function setH(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
var s = _dom2.default.getHeight(_this.__hue_field);
|
var fieldRect = _this.__hue_field.getBoundingClientRect();
|
||||||
var o = _dom2.default.getOffset(_this.__hue_field);
|
var h = 1 - (e.clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top);
|
||||||
var h = 1 - (e.clientY - o.top + document.body.scrollTop) / s;
|
|
||||||
|
|
||||||
if (h > 1) {
|
if (h > 1) {
|
||||||
h = 1;
|
h = 1;
|
||||||
|
File diff suppressed because one or more lines are too long
4
build/dat.gui.min.js
vendored
4
build/dat.gui.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user