UNPKG

immaterial-design-ripple

Version:
932 lines (645 loc) 39.4 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <base data-ice="baseUrl" href="../"> <title data-ice="title">Function | API Document</title> <link type="text/css" rel="stylesheet" href="css/style.css"> <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css"> <script src="script/prettify/prettify.js"></script> <script src="script/manual.js"></script> </head> <body class="layout-container" data-ice="rootContainer"> <header> <a href="./">Home</a> <a href="identifiers.html">Reference</a> <a href="source.html">Source</a> <a data-ice="repoURL" href="https://github.com/immaterial-design/immaterial-design-ripple" class="repo-url-github">Repository</a> <div class="search-box"> <span> <img src="./image/search.png"> <span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span> </span> <ul class="search-result"></ul> </div> </header> <nav class="navigation" data-ice="nav"><div> <ul> <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/index.js~ImdRipple.html">ImdRipple</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createContext2d">createContext2d</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-createRenderSchedule">createRenderSchedule</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getImageData">getImageData</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getPixelColor">getPixelColor</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-getTimingFunction">getTimingFunction</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-promiseEvent">promiseEvent</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-requestAnimationFrame">requestAnimationFrame</a></span></span></li> <li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-transparentize">transparentize</a></span></span></li> </ul> </div> </nav> <div class="content" data-ice="content"><h1 data-ice="title">Function</h1> <div data-ice="summaries"><table class="summary" data-ice="summary"> <thead><tr><td data-ice="title" colspan="3">Static Public Summary</td></tr></thead> <tbody> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-createContext2d">createContext2d</a></span></span><span data-ice="signature">(width: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, height: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">CanvasRenderingContext2D</a></span></span> </p> </div> <div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x5927;&#x304D;&#x3055;&#x306E;context2d&#x3092;&#x8FD4;&#x3059;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-createRenderSchedule">createRenderSchedule</a></span></span><span data-ice="signature">(x: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, y: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, width: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, height: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></span> </p> </div> <div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x5927;&#x304D;&#x3055;&#x306E;imageData&#x3092;&#x4F5C;&#x6210;&#x3057; &#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x3068;&#x3057;&#x3066;&#x8868;&#x793A;&#x3059;&#x308B;&#x30D5;&#x30EC;&#x30FC;&#x30E0;&#x756A;&#x53F7;&#x3092;&#x8A08;&#x7B97;&#x3059;&#x308B; x,y&#x3092;&#x59CB;&#x70B9;&#x3068;&#x3059;&#x308B;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-getImageData">getImageData</a></span></span><span data-ice="signature">(canvas: <span>HTMLCanvasElement</span>): <span>ImageData</span></span> </p> </div> <div> <div data-ice="description"><p>context&#x3068;&#x540C;&#x3058;&#x5927;&#x304D;&#x3055;&#x306E;&#x7A7A;&#x306E;imageData&#x3092;&#x8FD4;&#x3059;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-getPixelColor">getPixelColor</a></span></span><span data-ice="signature">(colorName: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></span> </p> </div> <div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;colorName&#x306E;rgba&#x3092;&#x8FD4;&#x3059;&#xFF08;CanvasRenderingContext2D&#x7D4C;&#x7531;&#xFF09;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-getTimingFunction">getTimingFunction</a></span></span><span data-ice="signature">(name: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></span> </p> </div> <div> <div data-ice="description"><p>easingJs&#x3067;&#x5B9A;&#x7FA9;&#x3055;&#x308C;&#x305F;&#x95A2;&#x6570;&#x540D;&#x3067;&#x3042;&#x308C;&#x3070;&#x3001;&#x305D;&#x306E;&#x95A2;&#x6570;&#x3092;&#x8FD4;&#x3057; &#x5F15;&#x6570;&#x304C;&#x95A2;&#x6570;&#x3067;&#x3042;&#x308C;&#x3070;&#x3001;&#x305D;&#x306E;&#x307E;&#x307E;&#x8FD4;&#x3059; &#x305D;&#x308C;&#x4EE5;&#x5916;&#x306F;null</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-promiseEvent">promiseEvent</a></span></span><span data-ice="signature">(target: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, eventName: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span>EventTarget</span>&gt;</span> </p> </div> <div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x8981;&#x7D20;&#x306E;&#x30A4;&#x30D9;&#x30F3;&#x30C8;&#x3092;&#x5F85;&#x3064;&#x30D7;&#x30ED;&#x30DF;&#x30B9;&#x3092;&#x8FD4;&#x3059;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-requestAnimationFrame">requestAnimationFrame</a></span></span><span data-ice="signature">(callback: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span>): <span>*</span></span> </p> </div> <div> <div data-ice="description"><p>&#x5229;&#x7528;&#x53EF;&#x80FD;&#x306A;&#x975E;&#x540C;&#x671F;&#x95A2;&#x6570;&#x3067;callback&#x3092;&#x5B9F;&#x884C;&#x3059;&#x308B;</p> </div> </div> </td> <td> </td> </tr> <tr data-ice="target"> <td> <span class="access" data-ice="access">public</span> <span class="override" data-ice="override"></span> </td> <td> <div> <p> <span data-ice="name"><span><a href="function/index.html#static-function-transparentize">transparentize</a></span></span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span>&gt;</span> </p> </div> <div> <div data-ice="description"><p>canvas&#x3092;&#x900F;&#x660E;&#x5316;&#x3001;opacity:0&#x3067;canvas&#x3092;&#x7834;&#x68C4;</p> </div> </div> </td> <td> </td> </tr> </tbody> </table> </div> <div data-ice="details"><h2 data-ice="title">Static Public </h2> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-createContext2d"> <span class="access" data-ice="access">public</span> <span data-ice="name">createContext2d</span><span data-ice="signature">(width: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, height: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">CanvasRenderingContext2D</a></span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber45">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {createContext2d} from &apos;<span><a href="file/src/utility.js.html#lineNumber45">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x5927;&#x304D;&#x3055;&#x306E;context2d&#x3092;&#x8FD4;&#x3059;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">width</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>context&#x306E;&#x5E45;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">height</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>context&#x306E;&#x9AD8;&#x3055;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">options</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td> <td data-ice="appendix"><ul><li>optional</li></ul></td> <td data-ice="description"></td> </tr> <tr data-ice="property" data-depth="1"> <td data-ice="name" data-depth="1">options.pixelated</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td> <td data-ice="appendix"><ul><li>optional</li> <li>default: true</li></ul></td> <td data-ice="description"><p>&#x30A2;&#x30F3;&#x30C1;&#x30A8;&#x30A4;&#x30EA;&#x30A2;&#x30B9;&#x3092;&#x5207;&#x308B;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">CanvasRenderingContext2D</a></span></td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-createRenderSchedule"> <span class="access" data-ice="access">public</span> <span data-ice="name">createRenderSchedule</span><span data-ice="signature">(x: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, y: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, width: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, height: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber162">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {createRenderSchedule} from &apos;<span><a href="file/src/utility.js.html#lineNumber162">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x5927;&#x304D;&#x3055;&#x306E;imageData&#x3092;&#x4F5C;&#x6210;&#x3057; &#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x3068;&#x3057;&#x3066;&#x8868;&#x793A;&#x3059;&#x308B;&#x30D5;&#x30EC;&#x30FC;&#x30E0;&#x756A;&#x53F7;&#x3092;&#x8A08;&#x7B97;&#x3059;&#x308B; x,y&#x3092;&#x59CB;&#x70B9;&#x3068;&#x3059;&#x308B;</p> <p>&#x8FD4;&#x3055;&#x308C;&#x308B;&#x914D;&#x5217;&#x306E;&#x5024;&#x306F;&#x5927;&#x304D;&#x3055;&#x304B;&#x3089;pixelSize&#x3092;&#x5272;&#x3063;&#x305F;&#x3082;&#x306E;&#x3002;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">x</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x306E;&#x59CB;&#x70B9;x</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">y</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x306E;&#x59CB;&#x70B9;y</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">width</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x306E;&#x5E45;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">height</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x6CE2;&#x5F62;&#x30A2;&#x30CB;&#x30E1;&#x30FC;&#x30B7;&#x30E7;&#x30F3;&#x306E;&#x9AD8;&#x3055;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">options</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td> <td data-ice="appendix"><ul><li>optional</li></ul></td> <td data-ice="description"></td> </tr> <tr data-ice="property" data-depth="1"> <td data-ice="name" data-depth="1">options.pixelSize</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"><ul><li>optional</li></ul></td> <td data-ice="description"><p>&#x30D4;&#x30AF;&#x30BB;&#x30EB;&#xFF11;&#x7C92;&#x306E;&#x5927;&#x304D;&#x3055;</p> </td> </tr> <tr data-ice="property" data-depth="1"> <td data-ice="name" data-depth="1">options.bitCrash</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"><ul><li>optional</li> <li>default: null</li></ul></td> <td data-ice="description"><p>&#x5883;&#x754C;&#x306B;&#x30CE;&#x30A4;&#x30BA;&#x3092;&#x5165;&#x308C;&#x308B;&#x3001;&#x5024;&#x306F;&#x30CE;&#x30A4;&#x30BA;&#x306E;&#x5F37;&#x3055;</p> </td> </tr> <tr data-ice="property" data-depth="1"> <td data-ice="name" data-depth="1">options.timingFunction</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span></td> <td data-ice="appendix"><ul><li>optional</li> <li>default: &apos;easeInQuint&apos;</li></ul></td> <td data-ice="description"><p>&#x30D5;&#x30EC;&#x30FC;&#x30E0;&#x756A;&#x53F7;&#x306E;&#x30A4;&#x30FC;&#x30B8;&#x30F3;&#x30B0;&#x95A2;&#x6570;&#x540D;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></td> <td class="return-desc" data-ice="returnDescription"><p>RenderSchedule.easedBy &#x30D5;&#x30EC;&#x30FC;&#x30E0;&#x756A;&#x53F7;&#x306E;&#x8ABF;&#x6574;&#x306B;&#x4F7F;&#x7528;&#x3057;&#x305F;&#x95A2;&#x6570;</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-getImageData"> <span class="access" data-ice="access">public</span> <span data-ice="name">getImageData</span><span data-ice="signature">(canvas: <span>HTMLCanvasElement</span>): <span>ImageData</span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber73">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {getImageData} from &apos;<span><a href="file/src/utility.js.html#lineNumber73">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>context&#x3068;&#x540C;&#x3058;&#x5927;&#x304D;&#x3055;&#x306E;&#x7A7A;&#x306E;imageData&#x3092;&#x8FD4;&#x3059;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">canvas</td> <td data-ice="type"><span>HTMLCanvasElement</span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x5927;&#x304D;&#x3055;&#x306E;&#x57FA;&#x6E96;&#x3068;&#x306A;&#x308B;canvas</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span>ImageData</span></td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-getPixelColor"> <span class="access" data-ice="access">public</span> <span data-ice="name">getPixelColor</span><span data-ice="signature">(colorName: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber230">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {getPixelColor} from &apos;<span><a href="file/src/utility.js.html#lineNumber230">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;colorName&#x306E;rgba&#x3092;&#x8FD4;&#x3059;&#xFF08;CanvasRenderingContext2D&#x7D4C;&#x7531;&#xFF09;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">colorName</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>CanvasRenderingContext2D.fillStyle&#x306E;&#x5024;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></td> <td class="return-desc" data-ice="returnDescription"><p>color [r,g,b,a]</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-getTimingFunction"> <span class="access" data-ice="access">public</span> <span data-ice="name">getTimingFunction</span><span data-ice="signature">(name: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber128">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {getTimingFunction} from &apos;<span><a href="file/src/utility.js.html#lineNumber128">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>easingJs&#x3067;&#x5B9A;&#x7FA9;&#x3055;&#x308C;&#x305F;&#x95A2;&#x6570;&#x540D;&#x3067;&#x3042;&#x308C;&#x3070;&#x3001;&#x305D;&#x306E;&#x95A2;&#x6570;&#x3092;&#x8FD4;&#x3057; &#x5F15;&#x6570;&#x304C;&#x95A2;&#x6570;&#x3067;&#x3042;&#x308C;&#x3070;&#x3001;&#x305D;&#x306E;&#x307E;&#x307E;&#x8FD4;&#x3059; &#x305D;&#x308C;&#x4EE5;&#x5916;&#x306F;null</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">name</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>EasingJs&#x306E;&#x95A2;&#x6570;&#x540D;&#x304B;&#x3001;&#x72EC;&#x81EA;&#x3067;&#x95A2;&#x6570;&#x3092;&#x5B9A;&#x7FA9;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span> | <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span></td> <td class="return-desc" data-ice="returnDescription"><p>timingFunction (t,b,c,d)&#x3092;&#x53D7;&#x3051;&#x53D6;&#x308B;&#x30A4;&#x30FC;&#x30B8;&#x30F3;&#x30B0;&#x95A2;&#x6570;&#x3002;&#x672A;&#x5B9A;&#x7FA9;&#x306E;&#x95A2;&#x6570;&#x540D;&#x306A;&#x3089;null</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-promiseEvent"> <span class="access" data-ice="access">public</span> <span data-ice="name">promiseEvent</span><span data-ice="signature">(target: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, eventName: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span>EventTarget</span>&gt;</span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber24">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {promiseEvent} from &apos;<span><a href="file/src/utility.js.html#lineNumber24">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>&#x6307;&#x5B9A;&#x3057;&#x305F;&#x8981;&#x7D20;&#x306E;&#x30A4;&#x30D9;&#x30F3;&#x30C8;&#x3092;&#x5F85;&#x3064;&#x30D7;&#x30ED;&#x30DF;&#x30B9;&#x3092;&#x8FD4;&#x3059;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">target</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x30A4;&#x30D9;&#x30F3;&#x30C8;&#x3092;&#x53D6;&#x5F97;&#x3059;&#x308B;&#x8981;&#x7D20;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">eventName</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">String</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x53D6;&#x5F97;&#x3059;&#x308B;&#x30A4;&#x30D9;&#x30F3;&#x30C8;&#x540D;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span>EventTarget</span>&gt;</td> <td class="return-desc" data-ice="returnDescription"><p>deferredEvent &#x53D6;&#x5F97;&#x3057;&#x305F;&#x30A4;&#x30D9;&#x30F3;&#x30C8;</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-requestAnimationFrame"> <span class="access" data-ice="access">public</span> <span data-ice="name">requestAnimationFrame</span><span data-ice="signature">(callback: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span>): <span>*</span></span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber12">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {requestAnimationFrame} from &apos;<span><a href="file/src/utility.js.html#lineNumber12">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>&#x5229;&#x7528;&#x53EF;&#x80FD;&#x306A;&#x975E;&#x540C;&#x671F;&#x95A2;&#x6570;&#x3067;callback&#x3092;&#x5B9F;&#x884C;&#x3059;&#x308B;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">callback</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a></span></td> <td data-ice="appendix"><ul><li>optional</li></ul></td> <td data-ice="description"></td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span>*</span></td> <td class="return-desc" data-ice="returnDescription"><p>undefined</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> <div class="detail" data-ice="detail"> <h3 data-ice="anchor" id="static-function-transparentize"> <span class="access" data-ice="access">public</span> <span data-ice="name">transparentize</span><span data-ice="signature">(element: <span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span>, options: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span>): <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span>&gt;</span> <span class="right-info"> <span data-ice="source"><span><a href="file/src/utility.js.html#lineNumber92">source</a></span></span> </span> </h3> <div data-ice="importPath" class="import-path"><pre class="prettyprint"><code data-ice="importPathCode">import {transparentize} from &apos;<span><a href="file/src/utility.js.html#lineNumber92">immaterial-design-ripple/src/utility.js</a></span>&apos;</code></pre></div> <div data-ice="description"><p>canvas&#x3092;&#x900F;&#x660E;&#x5316;&#x3001;opacity:0&#x3067;canvas&#x3092;&#x7834;&#x68C4;</p> </div> <div data-ice="properties"><div data-ice="properties"> <h4 data-ice="title">Params:</h4> <table class="params"> <thead> <tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr> </thead> <tbody> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">element</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element">Element</a></span></td> <td data-ice="appendix"></td> <td data-ice="description"><p>&#x900F;&#x660E;&#x5316;&#x3055;&#x305B;&#x3001;&#x7834;&#x68C4;&#x3059;&#x308B;&#x8981;&#x7D20;</p> </td> </tr> <tr data-ice="property" data-depth="0"> <td data-ice="name" data-depth="0">options</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></span></td> <td data-ice="appendix"><ul><li>optional</li></ul></td> <td data-ice="description"></td> </tr> <tr data-ice="property" data-depth="1"> <td data-ice="name" data-depth="1">options.opacityStep</td> <td data-ice="type"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">Number</a></span></td> <td data-ice="appendix"><ul><li>optional</li> <li>default: 0.02</li></ul></td> <td data-ice="description"><p>1&#x30D5;&#x30EC;&#x30FC;&#x30E0;&#x306E;&#x900F;&#x660E;&#x5316;&#x9032;&#x884C;&#x5EA6;</p> </td> </tr> </tbody> </table> </div> </div> <div class="return-params" data-ice="returnParams"> <h4>Return:</h4> <table> <tr> <td class="return-type" data-ice="returnType"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a></span>&lt;<span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></span>&gt;</td> <td class="return-desc" data-ice="returnDescription"><p>animation &#x8981;&#x7D20;&#x7834;&#x68C4;&#x6642;&#x306B;fullfill</p> </td> </tr> </table> <div data-ice="returnProperties"> </div> </div> </div> </div> </div> <footer class="footer"> Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(0.4.7)</span></a> </footer> <script src="script/search_index.js"></script> <script src="script/search.js"></script> <script src="script/pretty-print.js"></script> <script src="script/inherited-summary.js"></script> <script src="script/test-summary.js"></script> <script src="script/inner-link.js"></script> <script src="script/patch-for-local.js"></script> </body> </html>