Skip to content

Commit 1a14858

Browse files
Update distributions to 1.1.0
1 parent 4a9feb7 commit 1a14858

File tree

5 files changed

+11
-18
lines changed

5 files changed

+11
-18
lines changed

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def __getOptimizedCompilerArgs():
153153
compilerArgs = [
154154
'--compilation_level ADVANCED_OPTIMIZATIONS',
155155
'--warning_level VERBOSE',
156+
'--output_wrapper "(function(){%output%})();"',
156157
'--jscomp_warning accessControls',
157158
'--jscomp_warning ambiguousFunctionDecl',
158159
'--jscomp_warning checkDebuggerStatement',

demos/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<html>
22
<head>
33
<meta charset="utf-8">
4-
5-
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
64
<script src="../contrib/closure-library/closure/goog/base.js"></script>
75
<script src="../src/deps.js"></script>
86
<script>
@@ -17,9 +15,9 @@
1715
padding: 0;
1816
}
1917
</style>
20-
<script src="index.js"></script>
2118
</head>
2219
<body>
2320
<div id="container"></div>
21+
<script src="index.js"></script>
2422
</body>
2523
</html>

demos/index.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
var stage;
2-
$(function() {
3-
stage = acgraph.create('container');
4-
var text = acgraph.text(100, 100, "Hello World!").fontSize('24pt');
5-
var bounds = text.getBounds();
6-
stage.rect(bounds.left, bounds.top, bounds.width, bounds.height).fill('red 0.5');
7-
stage.addChild(text);
8-
});
1+
var stage = acgraph.create('container');
2+
var text = acgraph.text(100, 100, "Hello World!").fontSize('24pt');
3+
var bounds = text.getBounds();
4+
stage.rect(bounds.left, bounds.top, bounds.width, bounds.height).fill('red 0.5');
5+
stage.addChild(text);

demos/index.min.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<html>
22
<head>
33
<meta charset="utf-8">
4-
5-
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
6-
<script src="../out/graphics.min.js"></script>
7-
84
<style>
95
html, body, #container {
106
width: 100%;
@@ -13,9 +9,10 @@
139
padding: 0;
1410
}
1511
</style>
16-
<script src="index.js"></script>
1712
</head>
1813
<body>
1914
<div id="container"></div>
15+
<script src="../out/graphics.min.js"></script>
16+
<script src="index.js"></script>
2017
</body>
2118
</html>

dist/graphics.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)