function dbget(table, ind, key) {
return new Promise((resolve) => {
let openRequest = indexedDB.open('FV', 6);
openRequest.onsuccess = function() {
let db = openRequest.result;
let transaction = db.transaction(table, 'readonly');
let labs = transaction.objectStore(table);
let index = labs.index(ind);
let request = index.getAll(key);
request.onsuccess = function() {
let res = request.result;
resolve(res);
};
};
});
}
Это только один пример, а ведь есть еще и rotate, для которого нужно еще изменять skew, trasnlate....
gl_FragColor = vec4(color, 0.4 * start);
gl_FragColor = vec4(1.0, 1.0, 0.0, 1.0);
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" style="width:0;height:0;position:absolute;">
<defs>
<linearGradient id="fpaint0_linear" x1=".055" y1="32.033" x2="55.946" y2="32.033" gradientUnits="userSpaceOnUse">
<stop stop-color="#944DEB" />
<stop offset="1" stop-color="#4F76DC" />
</linearGradient>
</defs>
</svg>
<svg class="icon icon-garant" fill="url(#fpaint0_linear)">
<use href="spriteraw.svg#garant" ></use>
</svg>
</body>
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<symbol viewBox="0 0 56 64" id="garant" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.888.215l25.575 ..."/>
</symbol>
</svg>