🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
🧐 Source maps
import { | |
convertGradientHandlesToTransform, | |
convertTransformToGradientHandles | |
} from "./setPropertyFill" | |
describe("convertGradientHandlesToTransform", () => { | |
it("identity matrix", () => { | |
expect( | |
convertGradientHandlesToTransform([ | |
{ |
const detachAndFlatten = (pageName) => { | |
const detach = (c) => figma.union([c], c.parent) | |
const page = figma.root.children.find(c => c.name === pageName) | |
const frames = page.children.filter(c => c.type === "FRAME") | |
for (let frame of frames) { | |
for (let c of frame.children) { | |
if (c.type === "INSTANCE") { | |
c = detach(c) | |
} else { |
import * as React from "react"; | |
import { PropertyControls, ControlType } from "framer"; | |
// Step 1: Import all exported values and put them on designComponents variable | |
import * as designComponents from "./canvas"; | |
// Step 2. Filter out the functions only (skip the __info__ variable) | |
// In the future this might need better typechecking might canvas.ts change | |
const components = Object.keys(designComponents).filter( | |
k => typeof designComponents[k] == "function" |
Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
I tried to run https://dev.to/andraconnect/augmented-reality-in-10-lines-of-html and https://github.com/jeromeetienne/ar.js from my own computer and got the following error:
Can't access user media :()
This error comes from:
https://github.com/jeromeetienne/jsartoolkit-experiments/blob/master/basic.html Line 100: navigator.getUserMedia
Most Japanese websites use default font sets provided on Windows or Mac. The latest ones are Meiryo and Hiragino Kaku Gothic Pro. For older versions such like Windows XP, it is good to add former default fonts MS Gothic(or MS Mincho)/Osaka.
Some old browsers could not understand those font names in English, some others do not recognize the names in Japanese, so it is safe to write both in Japanese and English.
Meiryo and Hiragino's order is, because Mac users may have Meiryo from MS-Office, and Hiragino is more familiar and matching well on Mac, better by starting Hiragino series.
So the current recommended practice is like this,
font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Osaka, "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
license: mit |
If you use atom... download & install the following packages:
# Create a promise: | |
myCoolPromise = new Promise (resolve, reject) -> | |
# do a thing | |
success = true | |
if success | |
resolve 'stuff worked' | |
else | |
reject Error 'it broke' |