Skip to content

Instantly share code, notes, and snippets.

View vasiliishvakin's full-sized avatar

Vasilii Shvakin vasiliishvakin

View GitHub Profile
@vasiliishvakin
vasiliishvakin / touch-zoom-events-example.html
Created February 8, 2024 12:47
touch-zoom-events-example.html
<!DOCTYPE html>
<html>
<header>
<title>Test</title>
<style>
.touchTest {
width: 800px;
height: 600px;
background-color: red;
const canvas = new fabric.Canvas('canvas');
const text = new fabric.Text("Curved text", { left: 50, top: 50 });
canvas.add(text);
let curveAngle = 90;
const lineLength = text.width;
// Calculate the radius based on the curve angle and line length
const curveRadius = (lineLength * lineLength) / (8 * Math.abs(Math.sin(curveAngle * Math.PI / 180 / 2)));
{"name":"PHP_JS","settings":"{\"settings\":\"{\\r\\n \\\"files.eol\\\": \\\"\\\\n\\\",\\r\\n \\\"workbench.colorTheme\\\": \\\"One Monokai\\\",\\r\\n \\\"editor.fontFamily\\\": \\\"firacode, 'Input Mono Regular', Consolas, 'Courier New', monospace\\\",\\r\\n \\\"editor.fontLigatures\\\": false,\\r\\n \\\"remote.SSH.remotePlatform\\\": {\\r\\n \\\"localhost\\\": \\\"linux\\\"\\r\\n },\\r\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"laravel-pint.enable\\\": true,\\r\\n \\\"editor.formatOnSave\\\": true,\\r\\n \\\"editor.matchBrackets\\\": \\\"never\\\",\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\",\\r\\n \\\"redhat.telemetry.enabled\\\": true,\\r\\n \\\"files.autoSave\\\": \\\"onFocusChange\\\",\\r\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\r\\n \\\"dotenv.enableAutocloaking\\\": false,\\r\\n \\\"[php]\\\": {},\\r\\n \\\"[dockerfile]\\\": {\\r\\n \\\"editor.defa
(() => {
// Create the area object
const areaObject = new fabric.Rect({
width: 200,
height: 200,
fill: "transparent",
stroke: "red",
strokeWidth: 2,
selectable: false,
original: { isBase: true },
{"name":"PHP_JS","settings":"{\"settings\":\"{\\r\\n \\\"files.eol\\\": \\\"\\\\n\\\",\\r\\n \\\"workbench.colorTheme\\\": \\\"One Monokai\\\",\\r\\n \\\"editor.fontFamily\\\": \\\"firacode, 'Input Mono Regular', Consolas, 'Courier New', monospace\\\",\\r\\n \\\"editor.fontLigatures\\\": false,\\r\\n \\\"remote.SSH.remotePlatform\\\": {\\r\\n \\\"localhost\\\": \\\"linux\\\"\\r\\n },\\r\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"laravel-pint.enable\\\": true,\\r\\n \\\"editor.formatOnSave\\\": true,\\r\\n \\\"editor.matchBrackets\\\": false,\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\",\\r\\n \\\"redhat.telemetry.enabled\\\": true,\\r\\n \\\"files.autoSave\\\": \\\"onFocusChange\\\",\\r\\n \\\"security.workspace.trust.untrustedFiles\\\": \\\"open\\\",\\r\\n \\\"dotenv.enableAutocloaking\\\": false,\\r\\n \\\"[php]\\\": {},\\r\\n \\\"[dockerfile]\\\": {\\r\\n \\\"editor.defaultForma
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOmIDULb86Rm0Pbt+3AVsK7ydts3hUgxx0QIObyZtX7q d5:45:c7:fc:ad:8c:4b:5d:8f:bb:4e:88:1d:d1:64:a4
slice(format(1 + round(toNumber(slice(format(timestamp(now())), 8, 9) + slice(format(timestamp(now())), 1, 2) + slice(format(timestamp(now())), 7, 8)) * (toNumber(replaceAll(id(), "[^0-9]", "")) % 900000 / 10 + 1) * cbrt(abs(timestamp(prop("Created")) / (toNumber(replaceAll(id(), "[^0-9]", "")) % 90000 / 10))))), 8, 11)
-----BEGIN PGP MESSAGE-----
jA0ECQMCyxF4r80GtxP/0sBPAR4cOiyS/EoIboyvzscAUJC6uLhBgqzNl4mtOlhe
sasdK/6NrlEi9Pg6o4ppU/4p1rv1u2WIjAUx4y59Tnb5l/MtcU0PmbdxccrqfHQ8
l5krCVx/O3DrAxgqwwxpfO55Cq/dJbqOpiKhv8MZwXcydt78cTZdbumC2DVUHn83
VdAE6dRMh5zuKxwcq86NXWRk2N0GE3+Ri5k9RGzMsZiLGn68r4ObR5qrS+uykoNk
FAmcGBc3anNs9E3EFhUzKvfDKtlwQLe9VJCXxjOLMYd5JLS455MENnFGU5cpgjvu
bqVG0zDLjn9xYmYHM9MTdXdaqkJ6QEpmzMvC81J9sqAfvLaV0PxaU5tU+QyDaP2Y
mQ==
=VqkA
-----BEGIN PGP MESSAGE-----
jA0ECQMC3VRfoQyxZtv/0rIBHYttAqgOvjxic5ALMfhMVNvtVy6X2MFL9pecgBWg
/GhRquT75j+U5o/nfUkxtwTghMOIQEwDyAn4J0vRlIywfGe45Yps5ZliY+m1Q0yv
iXWQAAhBshsAONgoP6dd66qroqBvsg1rpnRcb8S0iQWCOIjwrZCdRAZdYvfBViT0
wnctuj98TAJ6A9W8RflUlUpxMRjNBSO1YI788yMzxQ5fI/ZXlJDfmcVeFSvLmG7c
DU6/
=Y073
-----END PGP MESSAGE-----

zstd

tinc

pve-migrate-restic