2 Polymer('paper-shadow',{
7 * The z-depth of this shadow, from 0-5. Setting this property
8 * after element creation has no effect. Use `setZ()` instead.
17 * Set this to true to animate the shadow when setting a new
29 * Set the z-depth of the shadow. This should be used after element
30 * creation instead of setting the z property directly.
33 * @param {Number} newZ
35 setZ: function(newZ
) {
36 if (this.z
!== newZ
) {
37 this.$['shadow-bottom'].classList
.remove('paper-shadow-bottom-z-' + this.z
);
38 this.$['shadow-bottom'].classList
.add('paper-shadow-bottom-z-' + newZ
);
39 this.$['shadow-top'].classList
.remove('paper-shadow-top-z-' + this.z
);
40 this.$['shadow-top'].classList
.add('paper-shadow-top-z-' + newZ
);