This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LocklessQueue.swift | |
// Famera | |
// | |
// Created by Andrew Pouliot on 11/11/20. | |
// Copyright © 2020 Famera. All rights reserved. | |
// | |
import Foundation | |
import CoreMedia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = figma.getLocalPaintStyles() | |
.map(c => { | |
const {name, paints} = c | |
const paint = paints[0] | |
if (isSolidPaint(paint)) { | |
const {opacity, color} = paint | |
const {r,g,b} = color | |
return {name, color: {red: r, green: g, blue: b, alpha: opacity} } | |
} else { | |
return undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type 'Interpolation<[pan: number, tilt: number], [x: number, y: number, z: number, order?: string | undefined]>' is not assignable to type '[x: number, y: number, z: number, order?: string | undefined] | { x: number | FluidValue<number, any>; y: number | FluidValue<number, any>; z: number | FluidValue<number, any>; ... 14 more ...; _onChange: {}; } | [x: ...] | undefined'. | |
Type 'Interpolation<[pan: number, tilt: number], [x: number, y: number, z: number, order?: string | undefined]>' is not assignable to type '[x: number | FluidValue<number, any>, y: number | FluidValue<number, any>, z: number | FluidValue<number, any>, order?: string | FluidValue<string, any> | undefined]'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-var-requires */ | |
const { ReplaceSource } = require("webpack-sources") | |
/// This is a workaround for a bug in Figma plugins where they don't like the text "import(" | |
class FigmaWorkaroundPlugin { | |
// based on BannerPlugin https://github.com/webpack/webpack/blob/05ebf5bba670152101d1cc0f42f165b9fd295164/lib/BannerPlugin.js | |
process(file) { | |
if (file.source().includes("import(")) { | |
const replace = new ReplaceSource(file, "fix import( in Figma plugins FigmaWorkaroundPlugin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Trying to debug why this is slow | |
# root rule | |
root ::= jsxElement | |
# Main JSX Element | |
jsxElement ::= | |
"<" jsxElementName jsxAttributesOpt ">" jsxChildrenOpt "</" jsxElementName ">" | |
# JSX Self-Closing Element |
OlderNewer