Notebook - Welcome to Notebook

Contact/Report Bugs
You can contact me at: bkenwright@xbdev.net












style body min height 600px box wrapper overflow visible position absolute transform origin 50 50 user select none width 200px height 100px left 110px top 110px dot r 10px fill 1E88E5 position absolute border radius 100px stroke orange user select none transition delay 0 2s opacity 0 fill 1E88E5 r 5 stroke color blue stroke red box wrapper hover dot box wrapper hover rotate link transition delay 0 0s opacity 1 dot hover fill 0D47A1 rotate link position absolute r 1px height 15px background color 1E88E5 cx 20px cy calc 50 0 5px z index 1 opacity 0 transition delay 0 2s dot left top cx 5px cy 5px cursor nw resize dot left bottom cx 5px cy calc 100 5px cursor sw resize dot right top cx calc 100 5px cy 5px cursor ne resize dot right bottom cx calc 100 5px cy calc 100 5px cursor se resize dot top mid cx calc 50 0px cy 5px cursor n resize dot left mid cx 5px cy calc 50 0px cursor w resize dot right mid cx calc 100 5px cy calc 50 0px cursor e resize dot bottom mid cx calc 50 0px cy calc 100 5px cursor s resize dot rotate cx calc 50 0px cy calc 0 20px cursor url https findicons com files icons 1620 crystal project 16 rotate ccw png auto rectbounds fill none r 5 stroke width 2 stroke color blue stroke red style svg id svgcontainer style width 100 height 500px border 1px solid blue g id shapegroup style border 1px solid blue path class path d M 100 100 Q 50 150 200 200 stroke black fill transparent stroke width 6 rect class rectbounds rect circle class dot center circle circle class dot rotate circle svg id rect0 x 50 y 40 width 100 height 100 style overflow visible class subsvg g class svggroup rect class rectbounds rect circle class dot rotate circle circle class dot left top circle circle class dot left bottom circle circle class dot top mid circle circle class dot bottom mid circle circle class dot left mid circle circle class dot right mid circle circle class dot right bottom circle circle class dot right top circle g svg g svg script function addDrag elm let elmt elm let initX initY mousePressX mousePressY let delta x 0 y 0 function repositionElement xx yy let el elmt el offset x xx el offset y yy el setAttribute transform translate el offset x el offset y translate el center x el center y rotate el rotation translate el center x el center y drag support elmt addEventListener mousedown function event if event target classList contains dot true return let path elmt querySelector path let bb path getBBox initX elmt offset x elmt translateX br left bb x parseInt elmt getAttribute x this offsetLeft initY elmt offset y elmt translateY br top bb y parseInt elmt getAttribute y this offsetTop mousePressX event clientX mousePressY event clientY function eventMoveHandler event repositionElement initX event clientX mousePressX initY event clientY mousePressY window addEventListener mousemove eventMoveHandler false window addEventListener mouseup function eventEndHandler window removeEventListener mousemove eventMoveHandler false window removeEventListener mouseup eventEndHandler false false function addRotate elm let elmt elm handle rotation let rotatedot elmt querySelector rotate rotatedot addEventListener mousedown function event initX parseInt rotatedot getAttribute cx this offsetLeft initY parseInt rotatedot getAttribute cy this offsetTop mousePressX event clientX mousePressY event clientY let arrow elmt querySelector box let arrowRects elmt getBoundingClientRect let arrowX arrowRects left arrowRects width 2 let arrowY arrowRects top arrowRects height 2 function eventMoveHandler event let angle Math atan2 event clientY arrowY event clientX arrowX Math PI 2 rotateBox angle 180 Math PI let angledeg angle 180 Math PI let el elmt el rotation angledeg el setAttribute transform translate el offset x el offset y translate el center x el center y rotate el rotation translate el center x el center y window addEventListener mousemove eventMoveHandler false window addEventListener mouseup function eventEndHandler window removeEventListener mousemove eventMoveHandler false window removeEventListener mouseup eventEndHandler false false end addRotate function addResize elm let elmt elm function getDot dname let dotEl elmt querySelector dname if dotEl const svgns http www w3 org 2000 svg dotEl document createElementNS svgns circle dotEl classList add dot dotEl classList add dname elmt children 0 appendChild dotEl return dotEl let dotRotate elmt querySelector dot rotate rotatedot setAttribute cx 50 rotatedot setAttribute cy 20px handle resize let rightMid getDot right mid let leftMid getDot left mid let topMid getDot top mid let bottomMid getDot bottom mid let leftTop getDot left top let rightTop getDot right top let rightBottom getDot right bottom let leftBottom getDot left bottom moveDots elmt rightMid style background color green rightMid addEventListener mousedown e resizeHandler e false false true false leftMid addEventListener mousedown e resizeHandler e true false true false topMid addEventListener mousedown e resizeHandler e false true false true bottomMid addEventListener mousedown e resizeHandler e false false false true leftTop addEventListener mousedown e resizeHandler e true true true true rightTop addEventListener mousedown e resizeHandler e false true true true rightBottom addEventListener mousedown e resizeHandler e false false true true leftBottom addEventListener mousedown e resizeHandler e true false true true function resize w h elmt setAttribute width w w px elmt setAttribute height h style height h px function getCurrentRotation el let st window getComputedStyle el null let tm st getPropertyValue webkit transform st getPropertyValue moz transform st getPropertyValue ms transform st getPropertyValue o transform st getPropertyValue transform none if tm none let values tm split 1 split 0 split let angle Math round Math atan2 values 1 values 0 180 Math PI return angle 0 angle 360 angle if typeof el rotation undefined return el rotation return 0 function resizeHandler event left false top false xResize false yResize false initX elmt offsetLeft initY elmt offsetTop initX parseInt elmt getAttribute x this offsetLeft initY parseInt elmt getAttribute y this offsetTop mousePressX event clientX mousePressY event clientY initW elmt offsetWidth initH elmt offsetHeight initW parseInt elmt getAttribute width this offsetLeft initH parseInt elmt getAttribute height this offsetTop initCX initX initW 0 5 initCY initY initH 0 5 initRotate getCurrentRotation elmt let initRadians initRotate Math PI 180 let cosFraction Math cos initRadians let sinFraction Math sin initRadians function eventMoveHandler event let wDiff event clientX mousePressX let hDiff event clientY mousePressY let rotatedWDiff cosFraction wDiff sinFraction hDiff let rotatedHDiff cosFraction hDiff sinFraction wDiff if xResize yResize rotatedHDiff 0 if yResize xResize rotatedWDiff 0 let newW initW rotatedWDiff let newH initH rotatedHDiff let newCX initX initW rotatedWDiff 0 5 let newCY initY initH rotatedHDiff 0 5 let dw initW newW let dh initH newH let xx0 initCX cosFraction initW sinFraction initH 0 5 let yy0 initCY cosFraction initH sinFraction initW 0 5 let xx newCX cosFraction newW sinFraction newH 0 5 let yy newCY cosFraction newH sinFraction newW 0 5 let dx xx xx0 let dy yy yy0 let newX initX dx let newY initY dy if top newY dh newH 2 dh if left newX dw newW 2 dw elmt setAttribute x newX elmt setAttribute y newY elmt setAttribute width newW elmt setAttribute height newH elmt style left newX px elmt style top newY px elmt style width newW px elmt style height newH px moveDots elmt end eventMoveHandler window addEventListener mousemove eventMoveHandler false window addEventListener mouseup function eventEndHandler window removeEventListener mousemove eventMoveHandler false window removeEventListener mouseup eventEndHandler false end addResize function init el let svg document getElementById svgcontainer let elRect el getBoundingClientRect let svgRect svg getBoundingClientRect let path el querySelector path let rectbounds el querySelector rectbounds let center el querySelector center let br el getBoundingClientRect let bb path getBBox rectbounds setAttribute x bb x rectbounds setAttribute y bb y rectbounds setAttribute width bb width rectbounds setAttribute height bb height center setAttribute cx bb x bb width 0 5 center setAttribute cy bb y bb height 0 5 el center x bb x bb width 0 5 y bb y bb height 0 5 el offset x 0 y 0 el rotation 0 let dotRotate el querySelector dot rotate dotRotate setAttribute cx bb x bb width 0 5 dotRotate setAttribute cy bb y 20 console log el center el center el setAttribute transform translate el center x el center y rotate 15 translate 240 150 moveDots document getElementById shapegroup addDrag document getElementById shapegroup addRotate document getElementById shapegroup addResize document getElementById shapegroup init document getElementById shapegroup console log ready script

elector dot rotate rotatedot setAttribute cx 50 rotatedot setAttribute cy 20px handle resize let rightMid getDot right mid let leftMid getDot left mid let topMid getDot top mid let bottomMid getDot bottom mid let leftTop getDot left top let rightTop getDot right top let rightBottom getDot right bottom let leftBottom getDot left bottom moveDots elmt rightMid style background color green rightMid addEventListener mousedown e resizeHandler e false false true false leftMid addEventListener mousedown e resizeHandler e true false true false topMid addEventListener mousedown e resizeHandler e false true false true bottomMid addEventListener mousedown e resizeHandler e false false false true leftTop addEventListener mousedown e resizeHandler e true true true true rightTop addEventListener mousedown e resizeHandler e false true true true rightBottom addEventListener mousedown e resizeHandler e false false true true leftBottom addEventListener mousedown e resizeHandler e true false true true function resize w h elmt setAttribute width w w px elmt setAttribute height h style height h px function getCurrentRotation el let st window getComputedStyle el null let tm st getPropertyValue webkit transform st getPropertyValue moz transform st getPropertyValue ms transform st getPropertyValue o transform st getPropertyValue transform none if tm none let values tm split 1 split 0 split let angle Math round Math atan2 values 1 values 0 180 Math PI return angle 0 angle 360 angle if typeof el rotation undefined return el rotation return 0 function resizeHandler event left false top false xResize false yResize false initX elmt offsetLeft initY elmt offsetTop initX parseInt elmt getAttribute x this offsetLeft initY parseInt elmt getAttribute y this offsetTop mousePressX event clientX mousePressY event clientY initW elmt offsetWidth initH elmt offsetHeight initW parseInt elmt getAttribute width this offsetLeft initH parseInt elmt getAttribute height this offsetTop initCX initX initW 0 5 initCY initY initH 0 5 initRotate getCurrentRotation elmt let initRadians initRotate Math PI 180 let cosFraction Math cos initRadians let sinFraction Math sin initRadians function eventMoveHandler event let wDiff event clientX mousePressX let hDiff event clientY mousePressY let rotatedWDiff cosFraction wDiff sinFraction hDiff let rotatedHDiff cosFraction hDiff sinFraction wDiff if xResize yResize rotatedHDiff 0 if yResize xResize rotatedWDiff 0 let newW initW rotatedWDiff let newH initH rotatedHDiff let newCX initX initW rotatedWDiff 0 5 let newCY initY initH rotatedHDiff 0 5 let dw initW newW let dh initH newH let xx0 initCX cosFraction initW sinFraction initH 0 5 let yy0 initCY cosFraction initH sinFraction initW 0 5 let xx newCX cosFraction newW sinFraction newH 0 5 let yy newCY cosFraction newH sinFraction newW 0 5 let dx xx xx0 let dy yy yy0 let newX initX dx let newY initY dy if top newY dh newH 2 dh if left newX dw newW 2 dw elmt setAttribute x newX elmt setAttribute y newY elmt setAttribute width newW elmt setAttribute height newH elmt style left newX px elmt style top newY px elmt style width newW px elmt style height newH px moveDots elmt end eventMoveHandler window addEventListener mousemove eventMoveHandler false window addEventListener mouseup function eventEndHandler window removeEventListener mousemove eventMoveHandler false window removeEventListener mouseup eventEndHandler false end addResize function init el let svg document getElementById svgcontainer let elRect el getBoundingClientRect let svgRect svg getBoundingClientRect let path el querySelector path let rectbounds el querySelector rectbounds let center el querySelector center let br el getBoundingClientRect let bb path getBBox rectbounds setAttribute x bb x rectbounds setAttribute y bb y rectbounds setAttribute width bb width rectbounds setAttribute height bb height center setAttribute cx bb x bb width 0 5 center setAttribute cy bb y bb height 0 5 el center x bb x bb width 0 5 y bb y bb height 0 5 el offset x 0 y 0 el rotation 0 let dotRotate el querySelector dot rotate dotRotate setAttribute cx bb x bb width 0 5 dotRotate setAttribute cy bb y 20 console log el center el center el setAttribute transform translate el center x el center y rotate 15 translate 240 150 moveDots document getElementById shapegroup addDrag document getElementById shapegroup addRotate document getElementById shapegroup addResize document getElementById shapegroup init document getElementById shapegroup console log ready script

3dplot
a4print
about
acejs
acejs2
acejs3
aessecurity
angularjs
animbackgroundimage
aseformat
assert
asteroidsjs
backgrounds01
backgrounds02
backgrounds03
barnsleyfern
base26
base64
bib
binary
bodypix
bouncy
box2dweb
breakoutjs
browserversion
buslanes
busybutton
bvhreader
calendar
canvas
canvas2
canvas3
canvasmandelbrot
canvasmandelbrot2
canvasnumbers
canvaszoom
capsule
changingimages
chatgptusingopenai
chatgptusingopenai2
chatgptusingopenai3
checkboxtoggle
chinesetiles
classes
classfeatures
clipboardbutton
clonenode
codedropdown
codemirror
codemirror2
collada
colorpick
columnresizer
contextmenu
convnet
cookiebanner
countdown
countdown2
countdown3
crop
css3dbarchart
css3dbarchart2
css3dbook
css3dscene
csscube
csscube2
csscube3
csscubevideos
cssfilelist
csshas
csspulse
cssresizeaspect
cssspin
csszooming
csvtoarray
customcheckbox
d3datamap
d3js
d3js10
d3js11
d3js2
d3js3
d3js4
d3js5
d3js6
d3js7
d3js8
d3js9
d3jsanimatedgrid
d3jsarctransition
d3jsarctransition2
d3jsaxis
d3jsaxischanging
d3jsbars
d3jsbrushing
d3jsbuslanes
d3jsbuslanes2
d3jscalendar
d3jscheat
d3jsclock
d3jscloudmap
d3jscogs
d3jscolors
d3jscovid
d3jscovid2
d3jscovid3
d3jsdashboard
d3jsdashboard2
d3jsdashboard3
d3jsdatakeyfunction
d3jsdensity
d3jsdragresizing
d3jsdragresizing2
d3jseach
d3jsease
d3jsevents
d3jsflower
d3jsforcegroups
d3jsforces
d3jsforces2
d3jsfractaltree
d3jsgeo
d3jsgroupbars
d3jsgroups
d3jsheatmap
d3jshex
d3jshierarchies
d3jshierarchies2
d3jshistogram
d3jshistogram2
d3jshistogram3
d3jshistogram4
d3jsinterpolate
d3jsjoin
d3jskmean
d3jskmean2
d3jsline
d3jsline2
d3jsline3
d3jsline4
d3jslinetransition
d3jslinetransition0
d3jslinetransition2
d3jsmaplocations
d3jsmaps
d3jsmaps2
d3jsmaps3
d3jsmisc
d3jsmisc2
d3jsmodule
d3jsmodulecolor
d3jsmultistyles
d3jsnobel
d3jsoverlappinggraphs
d3jspanel
d3jspie
d3jspieinterpolate
d3jssankey
d3jssankey2
d3jsscatter
d3jsshapes
d3jsslider
d3jsspending
d3jsspending2
d3jsspiralplot
d3jsspirograph
d3jssquare
d3jsstack
d3jsstackedbar
d3jsstackedbar2
d3jssunburst
d3jssunmoon
d3jssvglines
d3jssymbols
d3jstimelines
d3jsuk
d3jsvoronoi
d3scatterplot
d3timeline
d3timeline2
datalist
datamuse
date
dblclickhighlight
deviceorientation
dictionaryapi
dockermenu
doodlepad
downloadgif
dragdroplistitems
dragrotateresizediv
dragrotateresizediv2
dragrotateresizediv3
dragrotateresizediv4
dragrotateresizefontsize
dragselectbrush
drawlinesdiv
dropdown
dualquaternionimages
dynamicgrid
easefunctions
easeinterpolate3dplots
echart
echart2
echart3
encapsulation
epubviewer
errorstack
excalidraw
excalidraw2
excalidraw3
excalidraw5
expandable
faker
fetchplus
fileupload
fixedtopbar
fonts
fonts2
footerbar
fractalmaze
fractalmaze2
fractalnoiseimage
fractals
fractals2
fractaltree
freesvg
fresnel
froggerjs
gantt
gifgiphyapi
gifhex
gltffromscratch
gradients
griditems
griditems2
griditems3
griditems4
gridworms
heat
hexview
hexview2
highlight
icons
icons2
iframes
ik
imagetracertosvg
imgur
inputfile
invadersjs
ipynb
ipynb2
ipynb3
ipynb4
isbn13
isbn2
jpghex
jquery
jquery2
jqueryui
jqueryui2
jsdraganddrop
jslint
jsobfuscate
jsraytracer
jstree
jstree2
jszip
jszipimages
jszipread
keyframes
l2dwidget
lda
leftmenu
less
less2
lineargradientimage
linenumbers
loadimagefromfile
makepdf
maps
markdown
markdown2
markdownalerts
markdownalerts2
markdownbookmarks
markovimage
markovpixelblocks
mathjax
matrices
matsandvects
mazegamejs
md2tex
metrotiles
metrowindows
milestones
misc
misc2
modules
myipdetails
neataptic
networkstructures
networkstructures2
number
obj
objtojson
openaiimages
opencv
opencv2
opencv3
opencv4
opencv5
outline
p2
p5fractalleaf
p5fractalshape
p5js
p5js2
p5js3
p5jsanimatedcover
p5mengercube
p5snowflakes
palindrome
panel
parallax
paste
paste2
pasteimgfromurl
pdfjs
pdfjs2
pdfkit
pdfkit2
pdfkit3
pdfkit4
pdfkit5
pdfkit6
pdfmake
pdfmake2
pdfmake3
pdfmake4
pdfmake5
pdfmake6
perlin
perlin2
perlin3
perspective
pexels
playground
plotly
plotlynoise
plotlyranddist
plyloader
plyloader2
pngtxtencoder
pongjs
pptxgenjs
prettycode
prism
prn
problems
progress
pseudorandom
px2svg
python
quotes
racergame
random
randomprofilepatterns
randomstring
rating
rayambient
raymonte
raymonteprogressive
raymonteprogressive2
raymontewarmstart
reexpcross
reexpcross2
regex
regexbib
regexpfixbib
regexpmultiline
repeatwordsregexp
resizabletable
resizabletable2
revealjs
revealjs2
revealjsmulti
ritalanguage
ritalanguage2
ritalanguage3
rotateimg
rough
rsapublicprivatekeys
rss
rss2
sankey
scrappingsvg
scrolltext
scrolltext2
scrollwidth
sdfboxinboxtwist
sdfhollowbox
setintervalexception
shareurl
shuffle
sidecomment
similarity
simplehighlighter
simpleplatformgamejs
sinecanvas
sliderpopout
slides
smileys
snowfall
snowman
sound
soundsignal
sphererayintersection
springs
sqljs
steganography
stereogram
stringmatching
svg
svgchaos
svgdragresize
svgdragresize2
svgdragresize3
svgdragrotate
svgdrawing
svglines
svglines2
svglines3
svglines4
svglines5
svglinesmandelbrot
svgpathsdragrotate
svgpathsdragrotateresize
svgpie
svgpie2
svgpie3
svgpiepath
svgpiepath2
svgrandomfaces
symbols
synaptic
synaptic2
synonyms
tablerotatecells
tablerotatecells2
tablerotatecells3
tablerotatecells3b
tablerotatecells4
tables
tablezebra
tabularjs
tabularjs2
tabulatordownload
tagcanvas
tensorflowgan
tensorflowjs
tensorflowjsbasic
tensorflowjscnn
tensorflowjssinewave
tensorflowjssound
tensorflowmobilenet
tetrahedronfractal
tetrahedronfractalfolding
tetris
textarea
textareaauto
textareadiv
textareadiv2
textmaskimage
theirorthere
thesaurus
threejs
threejs2
threejs3
threejs4
threejsgltf
threejstokyo
tiles
toaster
tooltip
transition
transitionexpandabledropdown
treeview
treeview2
tricks
tshirt
tshirt2
tshirt3
turningpages
unsplash
urlblob
urlblob2
userdefinepoints
vector
videos
videos2
visualsort
vue
w2ui
w2uientertextdialog
webcam
webgl
webgl2
webgl3
webgl4
webgl5
webglbasic1
webglbasic2
webglcube
webglfov
webglfrustum
webgljson
webglleaves
webgllighting
webglorthographic
webglpoints1
webglpoints2
webglpoints3
webglsquare
webgltexture1
webgltexture2
webgltexture3
webgltransforms
webgltriangle
webgpu
webgpu10
webgpu11
webgpu12
webgpu13
webgpu14
webgpu15
webgpu16
webgpu17
webgpu2
webgpu3
webgpu4
webgpu5
webgpu6
webgpu7
webgpu8
webgpu9
webgpubars
webgpubuffers
webgpubuffers2
webgpucellnoise
webgpuclouds
webgpuclydescope
webgpucompute
webgpucubemap
webgpucubemap2
webgpudeferred
webgpudepth
webgpudof
webgpudrops
webgpuetha
webgpufire
webgpufractalcubes
webgpuglassrain
webgpugltf
webgpugltf2
webgpugrass
webgpugrid
webgpukernel
webgpukleinian
webgpulabupdates
webgpulighting
webgpumandelbrot
webgpumeta3d
webgpumetaballs
webgpumouse
webgpunoise
webgpunormalmapping
webgpuobj
webgpuparallax
webgpuparallax2
webgpuparallax3
webgpuparallaxshadow
webgpuparallaxshadow2
webgpupixel
webgpuquad
webgpuray1
webgpuraytracing
webgpuraytracing2
webgpushadowmaps
webgpushadowmaps2
webgpusierpinski2d
webgpusierpinski3d
webgpusinusoid
webgpussao
webgpustadiumobj
webgpuswirl
webgputestpipe3
webgputoon
webgputopology
webgputt
webgpuvolcloud
webgpuwater
webgpuwireframe
webgpuwireframe2
webpcanvas
webworkers
webxr
webxr2
wiggly
wikipedia