Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: polymer_0.5.0/bower_components/paper-slider/paper-slider.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_0.5.0/bower_components/paper-slider/paper-slider.html
diff --git a/bower_components/paper-slider/paper-slider.html b/polymer_0.5.0/bower_components/paper-slider/paper-slider.html
similarity index 93%
rename from bower_components/paper-slider/paper-slider.html
rename to polymer_0.5.0/bower_components/paper-slider/paper-slider.html
index e3a57a685a5a011d7ecdd11b440d261ac1fcbb28..14381f2cd977c6fa277afdd7973e0726967e9506 100644
--- a/bower_components/paper-slider/paper-slider.html
+++ b/polymer_0.5.0/bower_components/paper-slider/paper-slider.html
@@ -43,9 +43,9 @@ To change the slider pin color:
background-color: #0f9d58;
}
-To change the slider pin's value:
+To change the slider pin's font color:
- paper-slider::shadow #sliderKnobInner::after {
+ paper-slider::shadow #sliderKnob > #sliderKnobInner::after {
color: #0f9d58
}
@@ -91,7 +91,7 @@ To change the slider secondary progress bar color:
</div>
</template>
- <div id="sliderKnob" on-down="{{expandKnob}}" on-up="{{resetKnob}}"
+ <div id="sliderKnob" on-down="{{knobdown}}" on-up="{{resetKnob}}"
on-trackstart="{{trackStart}}" on-trackx="{{trackx}}" on-trackend="{{trackEnd}}"
on-transitionend="{{knobTransitionEnd}}"
center-justified center horizontal layout>
@@ -116,6 +116,12 @@ To change the slider secondary progress bar color:
*
* @event core-change
*/
+
+ /**
+ * Fired when the slider's immediateValue changes.
+ *
+ * @event immediate-value-change
+ */
/**
* Fired when the slider's value changes due to user interaction.
@@ -184,6 +190,8 @@ To change the slider secondary progress bar color:
* @default 0
*/
+ maxMarkers: 100,
+
observe: {
'step snaps': 'update'
},
@@ -225,6 +233,7 @@ To change the slider secondary progress bar color:
if (!this.dragging) {
this.value = this.immediateValue;
}
+ this.fire('immediate-value-change');
},
expandKnob: function() {
@@ -281,8 +290,14 @@ To change the slider secondary progress bar color:
this.value = this.immediateValue;
this.fire('change');
},
+
+ knobdown: function(e) {
+ e.preventDefault();
+ this.expandKnob();
+ },
bardown: function(e) {
+ e.preventDefault();
this.transiting = true;
this._w = this.$.sliderBar.offsetWidth;
var rect = this.$.sliderBar.getBoundingClientRect();
@@ -299,7 +314,11 @@ To change the slider secondary progress bar color:
},
updateMarkers: function() {
- this.markers = [], l = (this.max - this.min) / this.step;
+ this.markers = [];
+ var l = (this.max - this.min) / this.step;
+ if (!this.snaps && l > this.maxMarkers) {
+ return;
+ }
for (var i = 0; i < l; i++) {
this.markers.push('');
}
« no previous file with comments | « polymer_0.5.0/bower_components/paper-slider/paper-slider.css ('k') | polymer_0.5.0/bower_components/paper-spinner/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698