Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

96 lines (69 sloc) 3.232 kB
<!DOCTYPE html>
<html>
<head>
<!-- <link rel="stylesheet" href="compiled/css/font/font-awesome.css" type="text/css" media="screen" title="no title" charset="utf-8"> -->
<link rel="stylesheet" href="vendor/jquery.contextMenu/jquery.contextMenu.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="compiled/css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
<title>Recursive Drawing</title>
</head>
<body>
<script type="text/html" id="component-template">
<div class="component" data-bind="css: {highlighted: $root.isHighlighted(componentPath), top: componentPath.length == 0}">
<div class="mini">
<div data-bind="if: componentPath.length > 0">
<div class="disclosure" data-bind="css: {collapsed: rootDefinition.ui.isCollapsed(componentPath), expanded: rootDefinition.ui.isExpanded(componentPath)}, click: rootDefinition.ui.toggleExpanded"></div>
</div>
<canvas data-bind="canvas: rootDefinition, componentPath: componentPath"></canvas>
</div>
</div>
<div data-bind="if: rootDefinition.ui.isExpanded(componentPath)">
<div class="children" data-bind="foreach: $root.children(rootDefinition, componentPath)">
<div data-bind="template: {name: 'component-template', data: {rootDefinition: $parent.rootDefinition, componentPath: $parent.componentPath.concat($data)}}"></div>
</div>
</div>
</script>
<script type="text/html" id="main-template">
<div id="workspace">
<canvas id="workspaceCanvas" data-bind="canvas: focus()"></canvas>
<canvas id="drawFurther" data-bind="css: {hidden: mouseOver()}"></canvas>
<canvas id="forSaving"></canvas>
<div class="filler"></div>
</div>
<div id="sidebar">
<div id="definitions" data-bind="foreach: definitions">
<div class="definition mini" data-bind="css: {focused: $data === $root.focus()}">
<canvas data-bind="canvas: $data"></canvas>
<div class="filler"></div>
</div>
</div>
<button class="button" id="addDefinition">+</button>
</div>
<div id="sidebarRight">
<div id="components" data-bind="css: {hidden: $root.focus().components().length == 0}">
<div data-bind="template: { name: 'component-template', data: {rootDefinition: $root.focus(), componentPath: []} }"></div>
</div>
</div>
<div id="dragHint">
Drag
</div>
<div id="ghostHint" class="mini" data-bind="visible: ghostHint">
<canvas id="ghostHintCanvas"></canvas>
</div>
</script>
<div data-bind="template: {name: 'main-template', data: $data}"></div>
<script src="vendor/numeric-1.0.2.min.js"></script>
<script src="vendor/underscore-min.js"></script>
<script src="vendor/keymaster.min.js"></script>
<script src="vendor/rAF.js"></script>
<script src="vendor/jquery-1.7.2.min.js"></script>
<script src="vendor/jquery.mousewheel.js"></script>
<script src="vendor/jquery.contextMenu/jquery.contextMenu.js"></script>
<script src="vendor/jquery.contextMenu/jquery.ui.position.js"></script>
<script src="vendor/knockout-2.0.0.js"></script>
<script src="vendor/stats.js"></script>
<script src="compiled/app.js"></script>
<script>
require("app")();
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.