Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>getBoxQuads designer select-all drag benchmark</title>
<style>
:root {
color-scheme: light;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
@jogibear9988
jogibear9988 / gist:fab3ab3f4529874c91f07d0d3768d0b7
Created August 22, 2026 07:17
CSSOM View GeometryUtils – Developer Trial Instructions

CSSOM View GeometryUtils – Developer Trial Instructions

The CSSOM View GeometryUtils APIs are currently available in Chromium behind the Experimental Web Platform features flag.

Enable the feature

  1. Open chrome://flags/#enable-experimental-web-platform-features in Chrome Canary.
  2. Set Experimental Web Platform features to Enabled.
  3. Restart Chrome.
@jogibear9988
jogibear9988 / gist:9d7bc56709ca9e2ef783b1f07705911a
Created August 22, 2026 07:16
CSSOM View GeometryUtils – Developer Trial Instructions
# CSSOM View GeometryUtils – Developer Trial Instructions
The CSSOM View GeometryUtils APIs are currently available in Chromium behind the **Experimental Web Platform features** flag.
## Enable the feature
1. Open `chrome://flags/#enable-experimental-web-platform-features` in Chrome Canary.
2. Set **Experimental Web Platform features** to **Enabled**.
3. Restart Chrome.
@jogibear9988
jogibear9988 / getboxquads-optimization-stage-benchmark.html
Last active August 21, 2026 16:40
getboxquads-optimization-stage-benchmark.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>GeometryUtils optimization stage benchmark</title>
<style>
body { font: 14px sans-serif; margin: 20px; }
#results { white-space: pre-wrap; }
#fixture { contain: layout style paint; }
</style>
<div id="fixture"></div>
<pre id="results">ready</pre>
<script style="position:absolute;left:176px;top:-13px;">
(() => {
const svg = (content) =>
`<svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">${content}</svg>`;
const text = (value, options = "") =>
`<text x="50" y="50" text-anchor="middle" dominant-baseline="middle" ${options}>${value ?? ""}</text>`;
class UiPlace extends HTMLElement {
static get observedAttributes() {
This file has been truncated, but you can view the full file.
<script>
(() => {
const svg = (content) =>
`<svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">${content}</svg>`;
const text = (value, options = "") =>
`<text x="50" y="50" text-anchor="middle" dominant-baseline="middle" ${options}>${value ?? ""}</text>`;
class UiPlace extends HTMLElement {
static get observedAttributes() {
@jogibear9988
jogibear9988 / gist:8420264d0911ce6c5aab0ac5cda0744e
Last active July 30, 2026 14:27
CSSOM View geometry utilities explainer

CSSOM View geometry utilities explainer

Problem

Web applications that draw overlays, selections, inspection UI, or designer handles need precise element geometry after layout, scrolling, fragmentation, writing modes, and transforms have been applied.

Today they usually approximate this in JavaScript by walking ancestor chains and composing matrices. This is costly for many elements and can diverge from browser layout and painting behavior.

Proposal

import { html } from '@polymer/polymer/lib/utils/html-tag';
import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners';
import { PolymerElement } from '@polymer/polymer/polymer-element';
import { dom } from '@fortawesome/fontawesome-svg-core/index.es';
import { ImageDTO } from '../../../api/typescripttypes/MCC.Common.ServiceInterfaces.DTO';
import '../../../helper/stylesheetHelper.js';
import { checkSecurityAnswerCode } from '../../checkAnswerCode';
import { UUID } from '../../../libs/uuid/uuid';
import { cropperScriptName } from '../../../externalScripNames';
import { MccImage } from '../../mcc-image';
@jogibear9988
jogibear9988 / index.html
Created April 21, 2019 07:28
Electron ES6 Imports
you need to add
<base href="app://./" /> to your head section
@jogibear9988
jogibear9988 / DependenciesVisualizer.linq
Last active August 17, 2018 10:43 — forked from plaurin/DependenciesVisualizer.linq
LinqPad query to generate a DMGL of projects, libraries and NuGet packages dependencies
<Query Kind="Program" />
private string[] projectExtensionExclusions = new[] { ".vdproj", ".ndproj", ".wdproj", ".shfbproj" };
private string rootFolder = @"F:\csharp\git\mcc5\MCC.V1.0";
private string outputFolder = @"F:\csharp\git\mcc5\";
private string nugetFolder = @"C:\Users\jkuehner\.nuget\packages\";
private int intend = 4;
void Main()