Skip to content

Instantly share code, notes, and snippets.

View sandor's full-sized avatar

Sandor Rozsa sandor

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AngularJS and FabricJS</title>
<!-- Insert this line above script imports -->
<script>
if (typeof module === 'object') {
.rul_cornerTL,
.rul_cornerTR {
border-bottom: 1px solid rgba(206, 219, 236, .5)
}
.rul_cornerBL,
.rul_cornerTL {
border-right: 1px solid rgba(206, 219, 236, .5)
}
.rul_cornerBL,
/*
* @info
* Theme implementing macOS Human Interface Guidelines.
* @doc
* https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/OSXHIGuidelines/
* @license
* You are allowed to link and use the Xel macOS theme ONLY in apps that are distributed as macOS app bundles.
* Usage of this theme on non-Apple platforms (including web apps) is PROHIBITED.
* Xel authors do not claim any legal rights to the MacOS design language, also known as Human Interface
<script>(function() {"use strict";var _Mathabs=Math.abs,_NumberparseInt=Number.parseInt,_NumberparseFloat=Number.parseFloat,_NumberisNaN=Number.isNaN,_NumberisFinite=Number.isFinite,_Mathround=Math.round,_Mathsqrt=Math.sqrt,_Mathpow=Math.pow,_Mathtan=Math.tan,_Mathsin=Math.sin,_Mathcos=Math.cos,_MathPI=Math.PI,_Mathmax=Math.max,_Mathmin=Math.min,_createClass=function(){function o(n,u){for(var m=0,k;m<u.length;m++)k=u[m],k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(n,k.key,k)}return function(n,u,m){return u&&o(n.prototype,u),m&&o(n,m),n}}(),_slicedToArray=function(){function o(n,u){var m=[],k=!0,w=!1,_;try{for(var A=n[Symbol.iterator](),C;!(k=(C=A.next()).done)&&(m.push(C.value),!(u&&m.length===u));k=!0);}catch(S){w=!0,_=S}finally{try{!k&&A["return"]&&A["return"]()}finally{if(w)throw _}}return m}return function(n,u){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return o(n,u);throw new TypeError("Invalid attempt to destructure non-iterable ins
<!DOCTYPE html>
<html lang="en" ng-app="kitchensink">
<head>
<meta charset="utf-8">
<title>Copy and Paste | Fabric.js 2.0 Demos</title>
<link rel="stylesheet" href="../css/master.css">
<link rel="stylesheet" href="../css/ads.css">
<link rel="stylesheet" href="../css/prism.css">
<!DOCTYPE html>
<html lang="en" ng-app="kitchensink">
<head>
<meta charset="utf-8">
<title>Copy and Paste | Fabric.js 2.0 Demos</title>
<link rel="stylesheet" href="../css/master.css">
<link rel="stylesheet" href="../css/ads.css">
<link rel="stylesheet" href="../css/prism.css">
@sandor
sandor / xel.min.js
Last active September 20, 2017 18:31
(function () {
'use strict';
// @copyright
// © 2016-2017 Jarosław Foksa
//
// Pointer events polyfills
//
/*
* @info
* Theme implementing macOS Human Interface Guidelines.
* @doc
* https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/OSXHIGuidelines/
* @license
* You are allowed to link and use the Xel macOS theme ONLY in apps that are distributed as macOS app bundles.
* Usage of this theme on non-Apple platforms (including web apps) is PROHIBITED.
* Xel authors do not claim any legal rights to the MacOS design language, also known as Human Interface
(function(global) {
function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function pad(str, length) {
while (str.length < length) {
str = '0' + str;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.