| Index: src/diagrams/tutorials/fetchdata/json-list.graffle
|
| diff --git a/src/diagrams/tutorials/fetchdata/json-list.graffle b/src/diagrams/tutorials/fetchdata/json-list.graffle
|
| index fcd3ad1b28645cfc4b7dd4b3f9a8fc2f13c1f2de..4d39278781c439e1d8d95215649c39fef3190fbe 100644
|
| --- a/src/diagrams/tutorials/fetchdata/json-list.graffle
|
| +++ b/src/diagrams/tutorials/fetchdata/json-list.graffle
|
| @@ -7,7 +7,7 @@
|
| <key>ApplicationVersion</key>
|
| <array>
|
| <string>com.omnigroup.OmniGrafflePro</string>
|
| - <string>139.16.0.171715</string>
|
| + <string>139.18.0.187838</string>
|
| </array>
|
| <key>AutoAdjust</key>
|
| <true/>
|
| @@ -53,7 +53,7 @@
|
| <array>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{114, 94}, {501, 158}}</string>
|
| + <string>{{221, 109}, {501, 158}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>FitText</key>
|
| @@ -105,18 +105,18 @@
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \deftab720
|
| \pard\pardeftab720
|
|
|
| -\f0\fs24 \cf0 import 'dart:json' as json;\
|
| +\f0\fs24 \cf0 import 'dart:convert';\
|
| var wordList = query('#wordlist');\
|
| ...\
|
| requestComplete(HttpRequest request) \{\
|
| ...\
|
| - List<String> portmanteaux = json.parse(request.responseText);\
|
| + List<String> portmanteaux = JSON.decode(request.responseText);\
|
| for (int i = 0; i < portmanteaux.length; i++) \{\
|
| wordList.children.add(new LIElement()..text = portmanteaux[i]);\
|
| \}\
|
| @@ -140,8 +140,8 @@ requestComplete(HttpRequest request) \{\
|
| <integer>34216</integer>
|
| <key>Points</key>
|
| <array>
|
| - <string>{92.250994429391994, 256.125}</string>
|
| - <string>{133.98647570687859, 112}</string>
|
| + <string>{197, 124.05802783284042}</string>
|
| + <string>{224, 123.70478827015557}</string>
|
| </array>
|
| <key>Style</key>
|
| <dict>
|
| @@ -163,7 +163,7 @@ requestComplete(HttpRequest request) \{\
|
| </dict>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{39, 256.125}, {101, 19}}</string>
|
| + <string>{{53, 109}, {144, 32}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>FitText</key>
|
| @@ -209,16 +209,17 @@ requestComplete(HttpRequest request) \{\
|
| <key>Text</key>
|
| <dict>
|
| <key>Align</key>
|
| - <integer>0</integer>
|
| + <integer>2</integer>
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
|
| {\colortbl;\red255\green255\blue255;}
|
| -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qr
|
|
|
| -\f0\fs24 \cf0 import json library}</string>
|
| +\f0\fs24 \cf0 import dart:convert library\
|
| +to get JSON functions}</string>
|
| <key>VerticalPad</key>
|
| <integer>2</integer>
|
| </dict>
|
| @@ -227,7 +228,7 @@ requestComplete(HttpRequest request) \{\
|
| </dict>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{117, 98}, {191, 14}}</string>
|
| + <string>{{224, 113}, {158, 14}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>ID</key>
|
| @@ -318,7 +319,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
|
| {\colortbl;\red255\green255\blue255;\red128\green0\blue0;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -384,7 +385,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
|
| {\colortbl;\red255\green255\blue255;\red128\green0\blue0;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -408,8 +409,8 @@ requestComplete(HttpRequest request) \{\
|
| <integer>34211</integer>
|
| <key>Points</key>
|
| <array>
|
| - <string>{241.37571869115453, 275.125}</string>
|
| - <string>{354.34349274076197, 180}</string>
|
| + <string>{319.57011231901618, 285}</string>
|
| + <string>{468.70112319016181, 195}</string>
|
| </array>
|
| <key>Style</key>
|
| <dict>
|
| @@ -431,7 +432,7 @@ requestComplete(HttpRequest request) \{\
|
| </dict>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{39, 275.125}, {381, 20}}</string>
|
| + <string>{{107, 285}, {392, 20}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>FitText</key>
|
| @@ -481,12 +482,12 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue-Light;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
|
|
| -\f0\fs26 \cf0 parses the JSON string, creates a List, and populates it with strings}</string>
|
| +\f0\fs26 \cf0 decodes the JSON string, creates a List, and populates it with strings}</string>
|
| <key>VerticalPad</key>
|
| <integer>2</integer>
|
| </dict>
|
| @@ -495,7 +496,7 @@ requestComplete(HttpRequest request) \{\
|
| </dict>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{143, 166}, {431, 14}}</string>
|
| + <string>{{250, 181}, {449, 14}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>ID</key>
|
| @@ -578,7 +579,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 CourierNewPSMT;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \deftab720
|
| @@ -789,7 +790,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue-Light;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -934,7 +935,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue-Light;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -1002,7 +1003,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue-Light;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -1059,7 +1060,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -1073,7 +1074,7 @@ requestComplete(HttpRequest request) \{\
|
| </dict>
|
| <dict>
|
| <key>Bounds</key>
|
| - <string>{{112, 73}, {253, 20}}</string>
|
| + <string>{{219, 88}, {253, 20}}</string>
|
| <key>Class</key>
|
| <string>ShapedGraphic</string>
|
| <key>FitText</key>
|
| @@ -1116,7 +1117,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>Pad</key>
|
| <integer>2</integer>
|
| <key>Text</key>
|
| - <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
|
| + <string>{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
|
| \cocoascreenfonts1{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;}
|
| {\colortbl;\red255\green255\blue255;}
|
| \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
| @@ -1176,7 +1177,7 @@ requestComplete(HttpRequest request) \{\
|
| <key>MasterSheets</key>
|
| <array/>
|
| <key>ModificationDate</key>
|
| - <string>2013-02-14 00:24:47 +0000</string>
|
| + <string>2013-10-10 17:02:53 +0000</string>
|
| <key>Modifier</key>
|
| <string>Mary Campione</string>
|
| <key>NotesVisible</key>
|
|
|