[{"data":1,"prerenderedAt":591},["ShallowReactive",2],{"docs-menu":3,"docs-page:\u002Fdocs\u002Fguides\u002Fsaving-and-opening":193},[4,11,108,143],{"title":5,"path":6,"stem":7,"order":8,"summary":9,"exact":10},"Documentation","\u002Fdocs","docs\u002Findex",0,"How to build drawings with Wirepaint's node graph.",true,{"title":12,"order":13,"summary":14,"path":15,"stem":16,"children":17,"page":107,"exact":10},"Guides",1,null,"\u002Fdocs\u002Fguides","docs\u002Fguides",[18,23,29,35,41,47,53,59,65,71,77,83,89,95,101],{"title":19,"path":20,"stem":21,"order":13,"summary":22,"exact":10},"Getting started","\u002Fdocs\u002Fguides\u002Fgetting-started","docs\u002Fguides\u002Fgetting-started","The Playground's areas, and what each one is for.",{"title":24,"path":25,"stem":26,"order":27,"summary":28,"exact":10},"Navigating the editor","\u002Fdocs\u002Fguides\u002Fnavigating-the-editor","docs\u002Fguides\u002Fnavigating-the-editor",2,"Panning, zooming, selecting, moving and deleting in the graph editor.",{"title":30,"path":31,"stem":32,"order":33,"summary":34,"exact":10},"Adding nodes","\u002Fdocs\u002Fguides\u002Fadding-nodes","docs\u002Fguides\u002Fadding-nodes",3,"The add-node menu, its categories and search, and suggested nodes for a dropped link.",{"title":36,"path":37,"stem":38,"order":39,"summary":40,"exact":10},"Connecting pins","\u002Fdocs\u002Fguides\u002Fconnecting-pins","docs\u002Fguides\u002Fconnecting-pins",4,"Drawing wires between pins, replacing and moving them, and which pins fit together.",{"title":42,"path":43,"stem":44,"order":45,"summary":46,"exact":10},"Context menus","\u002Fdocs\u002Fguides\u002Fcontext-menus","docs\u002Fguides\u002Fcontext-menus",5,"The right-click actions for nodes, wires and empty canvas.",{"title":48,"path":49,"stem":50,"order":51,"summary":52,"exact":10},"Property inspector","\u002Fdocs\u002Fguides\u002Fproperty-inspector","docs\u002Fguides\u002Fproperty-inspector",6,"Editing a node's inputs: numbers, switches, text, drop-down lists and object fields.",{"title":54,"path":55,"stem":56,"order":57,"summary":58,"exact":10},"Live preview","\u002Fdocs\u002Fguides\u002Flive-preview","docs\u002Fguides\u002Flive-preview",7,"The drawing's page and its size, what lies outside it, panning and zooming, and downloading the image as SVG.",{"title":60,"path":61,"stem":62,"order":63,"summary":64,"exact":10},"Errors","\u002Fdocs\u002Fguides\u002Ferrors","docs\u002Fguides\u002Ferrors",8,"How the Playground shows a node that fails, and what it means for the drawing.",{"title":66,"path":67,"stem":68,"order":69,"summary":70,"exact":10},"Subgraphs","\u002Fdocs\u002Fguides\u002Fsubgraphs","docs\u002Fguides\u002Fsubgraphs",9,"Create subgraphs, edit their bodies and signatures, and use them as functions for Map, Filter, Reduce and Repeat.",{"title":72,"path":73,"stem":74,"order":75,"summary":76,"exact":10},"Saving and opening","\u002Fdocs\u002Fguides\u002Fsaving-and-opening","docs\u002Fguides\u002Fsaving-and-opening",10,"Keep your work in a file with the File menu, and open it again later.",{"title":78,"path":79,"stem":80,"order":81,"summary":82,"exact":10},"Freezing nodes","\u002Fdocs\u002Fguides\u002Ffreezing-nodes","docs\u002Fguides\u002Ffreezing-nodes",11,"Keep a node's result as it is, whatever happens to its inputs.",{"title":84,"path":85,"stem":86,"order":87,"summary":88,"exact":10},"Text","\u002Fdocs\u002Fguides\u002Ftext","docs\u002Fguides\u002Ftext",12,"Add text to a drawing, pick its font, and place it.",{"title":90,"path":91,"stem":92,"order":93,"summary":94,"exact":10},"Effects","\u002Fdocs\u002Fguides\u002Feffects","docs\u002Fguides\u002Feffects",13,"Shadows, blur, glow, grain, wobbly outlines, color changes, opacity and blend modes on any object.",{"title":96,"path":97,"stem":98,"order":99,"summary":100,"exact":10},"Undo and redo","\u002Fdocs\u002Fguides\u002Fundo-and-redo","docs\u002Fguides\u002Fundo-and-redo",14,"Take back an edit, or put it back, with the Edit menu or Ctrl+Z.",{"title":102,"path":103,"stem":104,"order":105,"summary":106,"exact":10},"Frames","\u002Fdocs\u002Fguides\u002Fframes","docs\u002Fguides\u002Fframes",15,"Draw titled frames around nodes to organize a graph.",false,{"title":109,"order":27,"summary":14,"path":110,"stem":111,"children":112,"page":107,"exact":10},"Concepts","\u002Fdocs\u002Fconcepts","docs\u002Fconcepts",[113,118,123,128,133,138],{"title":114,"path":115,"stem":116,"order":13,"summary":117,"exact":10},"Dataflow and the Output node","\u002Fdocs\u002Fconcepts\u002Fdataflow","docs\u002Fconcepts\u002Fdataflow","How a graph is evaluated, starting from the Output node, and what that means for what you build.",{"title":119,"path":120,"stem":121,"order":27,"summary":122,"exact":10},"Pin types and colors","\u002Fdocs\u002Fconcepts\u002Fpin-types","docs\u002Fconcepts\u002Fpin-types","What a pin's type says, which wires fit, and how colors and handle shapes show it.",{"title":124,"path":125,"stem":126,"order":33,"summary":127,"exact":10},"Generic pins","\u002Fdocs\u002Fconcepts\u002Fgeneric-pins","docs\u002Fconcepts\u002Fgeneric-pins","Pins whose type is set by what you connect, such as the T of the array nodes.",{"title":129,"path":130,"stem":131,"order":39,"summary":132,"exact":10},"Units and coordinates","\u002Fdocs\u002Fconcepts\u002Funits-and-coordinates","docs\u002Fconcepts\u002Funits-and-coordinates","Page coordinates, angles in radians, local and page positions, and the ranges of t, colors and lerps.",{"title":134,"path":135,"stem":136,"order":45,"summary":137,"exact":10},"Determinism and random","\u002Fdocs\u002Fconcepts\u002Fdeterminism","docs\u002Fconcepts\u002Fdeterminism","Why a graph always draws the same thing, how the random nodes fit in, and how to reroll them with seeds.",{"title":139,"path":140,"stem":141,"order":51,"summary":142,"exact":10},"Subgraphs and functions","\u002Fdocs\u002Fconcepts\u002Fsubgraphs","docs\u002Fconcepts\u002Fsubgraphs","Functions are graphs of their own, used as nodes or passed to Map, Filter, Reduce and Repeat.",{"title":144,"order":33,"summary":14,"path":145,"stem":146,"children":147,"page":107,"exact":10},"Examples","\u002Fdocs\u002Fexamples","docs\u002Fexamples",[148,153,158,163,168,173,178,183,188],{"title":149,"path":150,"stem":151,"order":13,"summary":152,"exact":10},"Blending two circles","\u002Fdocs\u002Fexamples\u002Fblending-circles","docs\u002Fexamples\u002Fblending-circles","A row of circles that grows and changes color, from two circles and Lerp.",{"title":154,"path":155,"stem":156,"order":27,"summary":157,"exact":10},"A whirl of squares","\u002Fdocs\u002Fexamples\u002Fwhirl-of-squares","docs\u002Fexamples\u002Fwhirl-of-squares","Squares that turn and shrink one step at a time, with Rotate and Scale.",{"title":159,"path":160,"stem":161,"order":33,"summary":162,"exact":10},"A hexagram from a circle","\u002Fdocs\u002Fexamples\u002Fhexagram","docs\u002Fexamples\u002Fhexagram","Two triangles made from points sampled on a circle, with Sample, Make Polygon and Rotate.",{"title":164,"path":165,"stem":166,"order":39,"summary":167,"exact":10},"Triangles on a grid","\u002Fdocs\u002Fexamples\u002Ftriangles-on-a-grid","docs\u002Fexamples\u002Ftriangles-on-a-grid","A triangle at every point of a grid, each turned a little more, with Orthogonal Grid, Map and a function made with New function…",{"title":169,"path":170,"stem":171,"order":45,"summary":172,"exact":10},"A glowing ball in a gradient frame","\u002Fdocs\u002Fexamples\u002Fgradients","docs\u002Fexamples\u002Fgradients","A ball filled with a radial gradient inside a square with a linear gradient outline, both from the same two color stops.",{"title":174,"path":175,"stem":176,"order":51,"summary":177,"exact":10},"Voronoi tessellation","\u002Fdocs\u002Fexamples\u002Fvoronoi","docs\u002Fexamples\u002Fvoronoi","Organic cell patterns from random points, evened out with Relax Points, and drawn with gaps using Scale and Map.",{"title":179,"path":180,"stem":181,"order":57,"summary":182,"exact":10},"Paper cut-out","\u002Fdocs\u002Fexamples\u002Fpaper-cut-out","docs\u002Fexamples\u002Fpaper-cut-out","Layered paper hills and a sun with wobbly edges, grain and soft shadows, made with the Displace, Noise and Drop Shadow effect nodes.",{"title":184,"path":185,"stem":186,"order":63,"summary":187,"exact":10},"Sierpinski triangle","\u002Fdocs\u002Fexamples\u002Fsierpinski-triangle","docs\u002Fexamples\u002Fsierpinski-triangle","A triangle made of three half-size triangles, each made the same way: a subgraph that calls itself, stopped by a Switch.",{"title":189,"path":190,"stem":191,"order":69,"summary":192,"exact":10},"Metaballs and contour lines","\u002Fdocs\u002Fexamples\u002Fmetaballs","docs\u002Fexamples\u002Fmetaballs","Gooey blobs from charges on a jittered grid, ringed by contour lines, with Zip Point Scalars, Metaballs and Isolines.",{"id":194,"title":72,"body":195,"description":201,"extension":587,"meta":588,"navigation":10,"order":75,"path":73,"seo":589,"stem":74,"summary":76,"__hash__":590},"docs\u002Fdocs\u002Fguides\u002Fsaving-and-opening.md",{"type":196,"value":197,"toc":575},"minimark",[198,202,209,214,222,292,299,304,307,326,329,332,335,345,351,365,369,372,390,393,397,407,416,425,431,441,444,447,480,486,493,496,499,524,528,531,537,540,544],[199,200,201],"p",{},"The Playground doesn't save on its own: a drawing lives in the page until\nyou save it to a file. Reloading or leaving the page loses anything\nunsaved.",[199,203,204],{},[205,206],"img",{"alt":207,"src":208},"The File menu open in the Playground header, with New, Open…, Save, Save As… and Import SVG…, next to the Edit menu, the file name and the \"Unsaved changes\" label","\u002Fdocs\u002Fguides\u002Fsaving-file-menu.png",[210,211,213],"h2",{"id":212},"the-file-menu","The File menu",[199,215,216,217,221],{},"The ",[218,219,220],"strong",{},"File"," menu, at the top left of the Playground, has these commands:",[223,224,225,232,246,258,270,282],"ul",{},[226,227,228,231],"li",{},[218,229,230],{},"New"," starts an empty drawing: a graph with only its Output node, on a\n1000 × 800 page.",[226,233,234,237,238,241,242,245],{},[218,235,236],{},"Open…"," (",[218,239,240],{},"Ctrl+O",", ",[218,243,244],{},"⌘O"," on macOS) picks a file and opens it in\nplace of the current drawing. The editor goes back to the root graph.",[226,247,248,251,252,257],{},[218,249,250],{},"Recent Files"," opens a file you opened or saved lately again (see\n",[253,254,256],"a",{"href":255},"#recent-files","Recent files",").",[226,259,260,237,263,241,266,269],{},[218,261,262],{},"Save",[218,264,265],{},"Ctrl+S",[218,267,268],{},"⌘S"," on macOS) saves the drawing to its file.",[226,271,272,237,275,241,278,281],{},[218,273,274],{},"Save As…",[218,276,277],{},"Ctrl+Shift+S",[218,279,280],{},"⇧⌘S"," on macOS) saves it to a new\nfile, which becomes the drawing's file.",[226,283,284,287,288,257],{},[218,285,286],{},"Import SVG…"," adds SVG files to the drawing (see\n",[253,289,291],{"href":290},"#importing-svg-files","Importing SVG files",[199,293,294,295,298],{},"The name of the drawing's file shows next to the File and Edit menus, or\n",[218,296,297],{},"Untitled"," for a drawing that hasn't been saved or opened yet.",[300,301,303],"h3",{"id":302},"saving-to-the-same-file","Saving to the same file",[199,305,306],{},"How saving works depends on the browser:",[223,308,309,315],{},[226,310,311,314],{},[218,312,313],{},"Chrome, Edge and other Chromium browsers"," save straight to the file.\nOpen… and Save As… show the system's file dialog, and the Playground\nremembers the file: each Save writes over it, with no new download. Save\non a drawing without a file asks where to save it first, like Save As….\nThe browser may ask once whether the Playground can edit the file.",[226,316,317,320,321,325],{},[218,318,319],{},"Firefox, Safari and other browsers"," download the drawing instead,\nnamed after the file it was opened from, else ",[322,323,324],"code",{},"drawing.graph.json",". The\nbrowser puts it with your other downloads, or asks where, depending on its\nsettings. Each save is a new download, and Save As… does the same as\nSave: rename the files to keep several versions.",[199,327,328],{},"If a Chromium browser refuses the file dialog or access to the file, the\nPlayground downloads the drawing instead too.",[199,330,331],{},"The shortcuts work anywhere in the Playground except while typing in a\nfield, such as a node's name or a value in the inspector. They replace the\nbrowser's own \"save page\" and \"open file\".",[300,333,256],{"id":334},"recent-files",[199,336,337,338,341,342,344],{},"In Chromium browsers, ",[218,339,340],{},"File › Recent Files"," lists the last 10 files you\nopened or saved with the file dialog, most recent first, with when you last\ndid. They're kept in the browser, so they're still there on your next\nvisit. Choosing one opens it like ",[218,343,236],{},", without the dialog; the\nbrowser may first ask whether the Playground can edit the file again.",[199,346,347],{},[205,348],{"alt":349,"src":350},"The File menu's Recent Files submenu, listing two graph files with the date and time each was last opened, and Clear recent files","\u002Fdocs\u002Fguides\u002Fsaving-recent-files.png",[199,352,353,354,357,358,361,362,364],{},"If a file was moved, renamed or deleted since, the Playground says so and\noffers ",[218,355,356],{},"Remove from list",". ",[218,359,360],{},"Clear recent files",", at the bottom of the\nlist, empties it; the files themselves aren't touched. Files opened or\nsaved by download, in other browsers, aren't listed, and those browsers\ndon't show ",[218,363,250],{},".",[210,366,368],{"id":367},"what-a-file-holds","What a file holds",[199,370,371],{},"A file holds everything that makes up the drawing:",[223,373,374,377,384,387],{},[226,375,376],{},"the root graph and every subgraph, with their signatures;",[226,378,379,380,383],{},"each node's values, parameters, position in the editor and name, and the\nsaved value of ",[253,381,382],{"href":79},"frozen nodes",";",[226,385,386],{},"the wires, in the order they were made, so generic pins and Output slots\ncome back exactly as they were;",[226,388,389],{},"the page size.",[199,391,392],{},"It doesn't hold how you were looking at it: the pan and zoom, the open\nsubgraph, the selection, the Image drawer's display options and the panel\nsizes stay as they are in the browser.",[210,394,396],{"id":395},"unsaved-changes","Unsaved changes",[199,398,399,400,402,403,406],{},"While the drawing has changes since it was last saved, opened or started,\n",[218,401,396],{}," shows after the file name. Any edit counts,\nincluding moving or renaming nodes and changing the page size. Looking\naround doesn't: panning, zooming, selecting and opening subgraphs.\n",[253,404,405],{"href":97},"Undoing"," back to the saved drawing clears it.",[199,408,409,410,412,413,415],{},"Files hold the drawing, not its undo history: after ",[218,411,236],{}," (or ",[218,414,230],{},")\nthere's nothing to undo.",[199,417,418,419,421,422,424],{},"With unsaved changes, ",[218,420,230],{}," and ",[218,423,236],{}," ask first:",[199,426,427],{},[205,428],{"alt":429,"src":430},"The \"Discard unsaved changes?\" dialog, with Cancel and Discard changes buttons","\u002Fdocs\u002Fguides\u002Fsaving-discard.png",[199,432,433,436,437,440],{},[218,434,435],{},"Cancel"," keeps the drawing as it is; ",[218,438,439],{},"Discard changes"," goes ahead.\nWithout unsaved changes they don't ask. Reloading or leaving the page with\nunsaved changes shows the browser's own warning.",[210,442,291],{"id":443},"importing-svg-files",[199,445,446],{},"An existing SVG file, such as a logo, an icon or a drawing made in another\neditor, can go into the drawing as one object. There are three ways to\nimport one:",[223,448,449,460,466],{},[226,450,451,454,455,459],{},[218,452,453],{},"File › Import SVG…"," picks one or more files. Each becomes an\n",[253,456,458],{"href":457},"\u002Fdocs\u002Fnodes\u002Fcore\u002Fsvg-image","SVG Image"," node in the graph you have open,\nat the centre of the editor's view.",[226,461,462,465],{},[218,463,464],{},"Drag and drop"," SVG files from your file manager onto the graph editor:\nthe nodes land where you drop them.",[226,467,468,471,472,475,476,479],{},[218,469,470],{},"Choose file…"," in the property inspector of an SVG Image node (for\nexample one added with ",[218,473,474],{},"Shift+A","). With a file already there, the\nbutton reads ",[218,477,478],{},"Replace file…",": the node keeps its wires, position,\nrotation and scale, and only the drawing changes.",[199,481,482],{},[205,483],{"alt":484,"src":485},"An imported SVG Image node selected, connected to the Output, with its file shown in the property inspector and the drawing in the preview","\u002Fdocs\u002Fguides\u002Fsaving-svg-import.png",[199,487,488,489,492],{},"The node is named after the file and selected. Connect its ",[322,490,491],{},"image"," output\nto the Output (or into a Group, or through a Translate or Rotate node) to\ndraw it. The inspector shows the file's name, its size and how much space it\ntakes in the drawing's file.",[199,494,495],{},"An imported SVG is one object: it can be moved, rotated and scaled, but not\nchanged or taken apart into shapes. It's drawn the way a browser shows an\nSVG picture, so scripts in the file don't run, and anything it loads from\nelsewhere (linked images, web fonts) doesn't show. The file's content is\nsaved inside the drawing's file, so the drawing opens without it.",[199,497,498],{},"A file isn't imported, with a message saying why, when it:",[223,500,501,504,521],{},[226,502,503],{},"isn't an SVG file, or isn't valid XML;",[226,505,506,507,510,511,421,514,517,518,383],{},"has no size: its ",[322,508,509],{},"\u003Csvg>"," element needs a ",[322,512,513],{},"width",[322,515,516],{},"height"," (not in\npercentages) or a ",[322,519,520],{},"viewBox",[226,522,523],{},"is larger than 1 MB.",[210,525,527],{"id":526},"files-that-cant-be-opened","Files that can't be opened",[199,529,530],{},"A file that isn't a Playground drawing, is damaged or was edited by hand\ninto something invalid isn't opened. A message lists what's wrong, and the\ncurrent drawing stays as it was.",[199,532,533],{},[205,534],{"alt":535,"src":536},"An error message: \"Cannot open the file. The file is version 9, newer than this app supports (up to 1); it was probably saved by a newer version of the app\"","\u002Fdocs\u002Fguides\u002Fsaving-open-error.png",[199,538,539],{},"A file saved by a newer version of the Playground may use things this\nversion doesn't know: the message says so. Files saved since frozen nodes\nwere added (version 2 of the file format) can't be opened by older\nversions of the Playground; older files still open.",[210,541,543],{"id":542},"see-also","See also",[223,545,546,551,556,561,566,570],{},[226,547,548,550],{},[253,549,19],{"href":20},": the Playground's areas.",[226,552,553,555],{},[253,554,66],{"href":67},": what a file keeps besides the root\ngraph.",[226,557,558,560],{},[253,559,54],{"href":55},": the page size, and downloading\nthe image as SVG.",[226,562,563,565],{},[253,564,458],{"href":457},": the node an imported file\nbecomes.",[226,567,568,364],{},[253,569,96],{"href":97},[226,571,572,574],{},[253,573,78],{"href":79},": values kept in the file.",{"title":576,"searchDepth":27,"depth":27,"links":577},"",[578,582,583,584,585,586],{"id":212,"depth":27,"text":213,"children":579},[580,581],{"id":302,"depth":33,"text":303},{"id":334,"depth":33,"text":256},{"id":367,"depth":27,"text":368},{"id":395,"depth":27,"text":396},{"id":443,"depth":27,"text":291},{"id":526,"depth":27,"text":527},{"id":542,"depth":27,"text":543},"md",{},{"title":72,"description":201},"dwNEBHeUj0flXL0XeWeKp3oWmyBL6jXhw65fb8F4dyo",1795082912341]