Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
8055bc95
Commit
8055bc95
authored
Dec 12, 2016
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE mobile] added menu "Insert Shape"
parent
409121c2
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
562 additions
and
5 deletions
+562
-5
apps/common/mobile/resources/img/shapes/shape-01.svg
apps/common/mobile/resources/img/shapes/shape-01.svg
+11
-0
apps/common/mobile/resources/img/shapes/shape-02.svg
apps/common/mobile/resources/img/shapes/shape-02.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-03.svg
apps/common/mobile/resources/img/shapes/shape-03.svg
+11
-0
apps/common/mobile/resources/img/shapes/shape-04.svg
apps/common/mobile/resources/img/shapes/shape-04.svg
+12
-0
apps/common/mobile/resources/img/shapes/shape-05.svg
apps/common/mobile/resources/img/shapes/shape-05.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-06.svg
apps/common/mobile/resources/img/shapes/shape-06.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-07.svg
apps/common/mobile/resources/img/shapes/shape-07.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-08.svg
apps/common/mobile/resources/img/shapes/shape-08.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-09.svg
apps/common/mobile/resources/img/shapes/shape-09.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-10.svg
apps/common/mobile/resources/img/shapes/shape-10.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-11.svg
apps/common/mobile/resources/img/shapes/shape-11.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-12.svg
apps/common/mobile/resources/img/shapes/shape-12.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-13.svg
apps/common/mobile/resources/img/shapes/shape-13.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-14.svg
apps/common/mobile/resources/img/shapes/shape-14.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-15.svg
apps/common/mobile/resources/img/shapes/shape-15.svg
+8
-0
apps/common/mobile/resources/img/shapes/shape-16.svg
apps/common/mobile/resources/img/shapes/shape-16.svg
+8
-0
apps/common/mobile/resources/img/shapes/shape-17.svg
apps/common/mobile/resources/img/shapes/shape-17.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-18.svg
apps/common/mobile/resources/img/shapes/shape-18.svg
+7
-0
apps/common/mobile/resources/img/shapes/shape-19.svg
apps/common/mobile/resources/img/shapes/shape-19.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-20.svg
apps/common/mobile/resources/img/shapes/shape-20.svg
+12
-0
apps/common/mobile/resources/img/shapes/shape-21.svg
apps/common/mobile/resources/img/shapes/shape-21.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-22.svg
apps/common/mobile/resources/img/shapes/shape-22.svg
+9
-0
apps/common/mobile/resources/img/shapes/shape-23.svg
apps/common/mobile/resources/img/shapes/shape-23.svg
+13
-0
apps/common/mobile/resources/img/shapes/shape-24.svg
apps/common/mobile/resources/img/shapes/shape-24.svg
+12
-0
apps/spreadsheeteditor/mobile/app-dev.js
apps/spreadsheeteditor/mobile/app-dev.js
+3
-3
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
...readsheeteditor/mobile/app/controller/add/AddContainer.js
+1
-1
apps/spreadsheeteditor/mobile/app/controller/add/AddShape.js
apps/spreadsheeteditor/mobile/app/controller/add/AddShape.js
+231
-0
apps/spreadsheeteditor/mobile/app/template/AddShape.template
apps/spreadsheeteditor/mobile/app/template/AddShape.template
+1
-1
apps/spreadsheeteditor/mobile/app/view/add/AddShape.js
apps/spreadsheeteditor/mobile/app/view/add/AddShape.js
+97
-0
No files found.
apps/common/mobile/resources/img/shapes/shape-01.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<path
id=
"XMLID_2_"
class=
"st0"
d=
"M9.5,9v46h46V9H9.5z M55,54.5H10v-45h45V54.5z M32,41.5h1v-18h9.5v-1h-20v1H32V41.5z"
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-02.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M54.8,9.3l0.4,0.4l-46,46l-0.4-0.4L54.8,9.3z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-03.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<polygon
id=
"XMLID_3_"
class=
"st0"
points=
"55,9 49.5,11 51.6,12 9.3,54.3 9.7,54.7 52,12.4 53.1,14.5 "
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-04.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<polygon
id=
"XMLID_3_"
class=
"st0"
points=
"53.8,14 55.5,9 50.5,10.8 52.4,11.7 12.7,51.4 11.7,49.5 10,54.5 15,52.7 13.1,51.8
52.8,12.1 "
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-05.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M9.5,8.5H56V55H9.5V8.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-06.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M17,8.5h31.5L56,16v31.5L48.5,55H17l-7.5-7.5V16L17,8.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-07.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M19,8.5h26.5c5.5,0,10,4.5,10,10V45c0,5.5-4.5,10-10,10H19c-5.5,0-10-4.5-10-10V18.5C9,13,13.5,8.5,19,8.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-08.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M32.2,8.5c12.8,0,23.2,10.4,23.2,23.2C55.5,44.6,45.1,55,32.2,55S9,44.6,9,31.8C9,18.9,19.4,8.5,32.2,8.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-09.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M32.8,9L56,55.5H9.5L32.8,9z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-10.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M9.5,9L56,55.5H9.5L9.5,9z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-11.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M19,9l26.5,0l15,46.5H4L19,9z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-12.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M8.8,32.3L32.2,8.8l23.5,23.5L32.2,55.7L8.8,32.3z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-13.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M33,9l23,23.3L33,55.5v-13H9.5v-20H33V9z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-14.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M61,32.3L43,55.5v-13H22.5v13l-18-23.2L22.5,9v13.5H43V9L61,32.3z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-15.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<g>
<polygon
id=
"XMLID_2_"
points=
"56,30 56,25 25,25 25,14 9.5,27.3 25,40.5 25,30 51,30 51,50 56,50 56,30 "
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-16.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<g
id=
"XMLID_3_"
>
<polygon
id=
"XMLID_2_"
points=
"9.5,30 9.5,25 40.5,25 40.5,14 56,27.3 40.5,40.5 40.5,30 14.5,30 14.5,50 9.5,50 9.5,30 "
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-17.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M9.5,8.5H56V40L32.8,55L9.5,40V8.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-18.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<path
d=
"M32.7,52.6l17.3-16.5c0.2-0.2,5.9-5.4,5.9-11.6c0-7.5-4.6-12-12.4-12c-4.5,0-8.8,3.5-10.8,5.6c-2-2-6.3-5.6-10.8-5.6
c-7.8,0-12.4,4.5-12.4,12c0,6.2,5.7,11.3,5.9,11.5L32.7,52.6z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-19.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M9,29.5h46.5v5H9V29.5z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-20.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<polygon
id=
"XMLID_2_"
class=
"st0"
points=
"55.5,30 35,30 35,9.5 30,9.5 30,30 9.5,30 9.5,35 30,35 30,55.5 35,55.5 35,35 55.5,35
"
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-21.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M14.5,9H61L51,55.5H4.5L14.5,9z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-22.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M9,11h46.5v36.5H30l-6,6l-5.9-6H9V11z"
/>
</svg>
apps/common/mobile/resources/img/shapes/shape-23.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<g>
<path
id=
"XMLID_2_"
class=
"st0"
d=
"M32.8,13C19.9,13,9.5,20.7,9.5,30.2c0,6,4.1,11.2,10.2,14.3c-0.1,0.6-0.3,1.2-0.5,2
C18.4,49.2,17,51,17,51s3.1-0.7,5.5-2.4c1.2-0.8,2.2-1.5,3-1.9c2.3,0.6,4.7,0.9,7.3,0.9c12.8,0,23.2-7.7,23.2-17.2S45.6,13,32.8,13
z"
/>
</g>
</svg>
apps/common/mobile/resources/img/shapes/shape-24.svg
0 → 100644
View file @
8055bc95
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
viewBox=
"0 0 64 64"
style=
"enable-background:new 0 0 64 64;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill-rule:evenodd;clip-rule:evenodd;}
</style>
<path
class=
"st0"
d=
"M55.5,38.1c0,5.1-4.1,9.2-9.2,9.2c-1.4,0-2.7-0.3-3.9-0.9c-2,3.1-5.5,5.2-9.5,5.2c-3.8,0-7.2-1.9-9.2-4.8
c-1.3,1.2-3,2-4.9,2c-3.9,0-7-3.2-7-7.1c0-2.5,1.3-4.6,3.1-5.9c-3.4-0.8-6-3.9-6-7.5c0-4.3,3.5-7.8,7.7-7.8c0.8,0,1.5,0.1,2.1,0.3
c0-0.1,0-0.2,0-0.3c0-4.7,3.8-8.5,8.5-8.5c3.7,0,6.9,2.4,8,5.8c2.1-2.7,5.3-4.4,8.9-4.4c6.2,0,11.3,5.1,11.3,11.3
c0,2.7-0.9,5.2-2.5,7.1C54.5,33.5,55.5,35.7,55.5,38.1z"
/>
</svg>
apps/spreadsheeteditor/mobile/app-dev.js
View file @
8055bc95
...
...
@@ -132,7 +132,7 @@ require([
// ,'EditHyperlink'
,
'
AddContainer
'
// ,'AddTable'
//
,'AddShape'
,
'
AddShape
'
// ,'AddImage'
// ,'AddOther'
]
...
...
@@ -192,7 +192,7 @@ require([
,
'
spreadsheeteditor/mobile/app/controller/CellEditor
'
,
'
spreadsheeteditor/mobile/app/controller/Statusbar
'
,
'
spreadsheeteditor/mobile/app/controller/Settings
'
,
'
spreadsheeteditor/mobile/app/controller/edit/EditContainer
'
,
'
spreadsheeteditor/mobile/app/controller/edit/EditContainer
'
// ,'spreadsheeteditor/mobile/app/controller/edit/EditText'
// ,'spreadsheeteditor/mobile/app/controller/edit/EditParagraph'
// ,'spreadsheeteditor/mobile/app/controller/edit/EditTable'
...
...
@@ -202,7 +202,7 @@ require([
// ,'spreadsheeteditor/mobile/app/controller/edit/EditHyperlink'
,
'
spreadsheeteditor/mobile/app/controller/add/AddContainer
'
// ,'spreadsheeteditor/mobile/app/controller/add/AddTable'
//
,'spreadsheeteditor/mobile/app/controller/add/AddShape'
,
'
spreadsheeteditor/mobile/app/controller/add/AddShape
'
// ,'spreadsheeteditor/mobile/app/controller/add/AddImage'
// ,'spreadsheeteditor/mobile/app/controller/add/AddOther'
],
function
()
{
...
...
apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js
View file @
8055bc95
...
...
@@ -121,7 +121,7 @@ define([
addViews
.
push
({
caption
:
me
.
textShape
,
id
:
'
add-shape
'
,
layout
:
me
.
_dummyEditController
().
ge
tLayout
()
layout
:
SSE
.
getController
(
'
AddShape
'
).
getView
(
'
AddShape
'
).
roo
tLayout
()
});
addViews
.
push
({
...
...
apps/spreadsheeteditor/mobile/app/controller/add/AddShape.js
0 → 100644
View file @
8055bc95
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
/**
* AddShape.js
* Document Editor
*
* Created by Maxim Kadushkin on 12/07/2016
* Copyright (c) 2016 Ascensio System SIA. All rights reserved.
*
*/
define
([
'
core
'
,
'
spreadsheeteditor/mobile/app/view/add/AddShape
'
],
function
(
core
)
{
'
use strict
'
;
SSE
.
Controllers
.
AddShape
=
Backbone
.
Controller
.
extend
(
_
.
extend
((
function
()
{
var
_styles
=
[];
return
{
models
:
[],
collections
:
[],
views
:
[
'
AddShape
'
],
initialize
:
function
()
{
Common
.
NotificationCenter
.
on
(
'
addcontainer:show
'
,
_
.
bind
(
this
.
initEvents
,
this
));
// Fill shapes
function
randomColor
()
{
return
'
#
'
+
Math
.
floor
(
Math
.
random
()
*
16777215
).
toString
(
16
);
}
_styles
=
[
{
title
:
'
Text
'
,
thumb
:
'
shape-01.svg
'
,
type
:
'
textRect
'
},
{
title
:
'
Line
'
,
thumb
:
'
shape-02.svg
'
,
type
:
'
line
'
},
{
title
:
'
Line with arrow
'
,
thumb
:
'
shape-03.svg
'
,
type
:
'
lineWithArrow
'
},
{
title
:
'
Line with two arrows
'
,
thumb
:
'
shape-04.svg
'
,
type
:
'
lineWithTwoArrows
'
},
{
title
:
'
Rect
'
,
thumb
:
'
shape-05.svg
'
,
type
:
'
rect
'
},
{
title
:
'
Hexagon
'
,
thumb
:
'
shape-06.svg
'
,
type
:
'
hexagon
'
},
{
title
:
'
Round rect
'
,
thumb
:
'
shape-07.svg
'
,
type
:
'
roundRect
'
},
{
title
:
'
Ellipse
'
,
thumb
:
'
shape-08.svg
'
,
type
:
'
ellipse
'
},
{
title
:
'
Triangle
'
,
thumb
:
'
shape-09.svg
'
,
type
:
'
triangle
'
},
{
title
:
'
Triangle
'
,
thumb
:
'
shape-10.svg
'
,
type
:
'
rtTriangle
'
},
{
title
:
'
Trapezoid
'
,
thumb
:
'
shape-11.svg
'
,
type
:
'
trapezoid
'
},
{
title
:
'
Diamond
'
,
thumb
:
'
shape-12.svg
'
,
type
:
'
diamond
'
},
{
title
:
'
Right arrow
'
,
thumb
:
'
shape-13.svg
'
,
type
:
'
rightArrow
'
},
{
title
:
'
Left-right arrow
'
,
thumb
:
'
shape-14.svg
'
,
type
:
'
leftRightArrow
'
},
{
title
:
'
Left arrow callout
'
,
thumb
:
'
shape-15.svg
'
,
type
:
'
leftArrowCallout
'
},
{
title
:
'
Right arrow callout
'
,
thumb
:
'
shape-16.svg
'
,
type
:
'
rightArrowCallout
'
},
{
title
:
'
Flow chart off page connector
'
,
thumb
:
'
shape-17.svg
'
,
type
:
'
flowChartOffpageConnector
'
},
{
title
:
'
Heart
'
,
thumb
:
'
shape-18.svg
'
,
type
:
'
heart
'
},
{
title
:
'
Math minus
'
,
thumb
:
'
shape-19.svg
'
,
type
:
'
mathMinus
'
},
{
title
:
'
Math plus
'
,
thumb
:
'
shape-20.svg
'
,
type
:
'
mathPlus
'
},
{
title
:
'
Parallelogram
'
,
thumb
:
'
shape-21.svg
'
,
type
:
'
parallelogram
'
},
{
title
:
'
Wedge rect callout
'
,
thumb
:
'
shape-22.svg
'
,
type
:
'
wedgeRectCallout
'
},
{
title
:
'
Wedge ellipse callout
'
,
thumb
:
'
shape-23.svg
'
,
type
:
'
wedgeEllipseCallout
'
},
{
title
:
'
Cloud callout
'
,
thumb
:
'
shape-24.svg
'
,
type
:
'
cloudCallout
'
}
];
var
elementsInRow
=
4
;
var
groups
=
_
.
chain
(
_styles
).
groupBy
(
function
(
element
,
index
){
return
Math
.
floor
(
index
/
elementsInRow
);
}).
toArray
().
value
();
Common
.
SharedSettings
.
set
(
'
shapes
'
,
groups
);
Common
.
NotificationCenter
.
trigger
(
'
shapes:load
'
,
groups
);
},
setApi
:
function
(
api
)
{
this
.
api
=
api
;
},
onLaunch
:
function
()
{
this
.
createView
(
'
AddShape
'
).
render
();
},
initEvents
:
function
()
{
var
me
=
this
;
$
(
'
#add-shape li
'
).
single
(
'
click
'
,
_
.
buffered
(
me
.
onShapeClick
,
100
,
me
));
},
onShapeClick
:
function
(
e
)
{
var
$target
=
$
(
e
.
currentTarget
);
if
(
$target
&&
this
.
api
)
{
this
.
api
.
addShapeOnSheet
(
$target
.
data
(
'
type
'
));
}
SSE
.
getController
(
'
AddContainer
'
).
hideModal
();
},
// Public
getStyles
:
function
()
{
return
_styles
;
}
}
})(),
SSE
.
Controllers
.
AddShape
||
{}))
});
\ No newline at end of file
apps/spreadsheeteditor/mobile/app/template/AddShape.template
View file @
8055bc95
...
...
@@ -5,7 +5,7 @@
<ul class="row">
<% _.each(row, function(shape) { %>
<li data-type="<%= shape.type %>">
<div class="thumb" style="-webkit-mask-image:url('
../mobile/resources/img/shapes
/<%= shape.thumb %>')"></div>
<div class="thumb" style="-webkit-mask-image:url('
<%= imgpath %>
/<%= shape.thumb %>')"></div>
</li>
<% }); %>
</ul>
...
...
apps/spreadsheeteditor/mobile/app/view/add/AddShape.js
0 → 100644
View file @
8055bc95
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
/**
* AddShape.js
* Document Editor
*
* Created by Maxim Kadushkin on 12/07/2016
* Copyright (c) 2016 Ascensio System SIA. All rights reserved.
*
*/
define
([
'
text!spreadsheeteditor/mobile/app/template/AddShape.template
'
,
'
backbone
'
],
function
(
addTemplate
,
Backbone
)
{
'
use strict
'
;
SSE
.
Views
.
AddShape
=
Backbone
.
View
.
extend
(
_
.
extend
((
function
()
{
// private
return
{
// el: '.view-main',
template
:
_
.
template
(
addTemplate
),
events
:
{
},
initialize
:
function
()
{
Common
.
NotificationCenter
.
on
(
'
addcontainer:show
'
,
_
.
bind
(
this
.
initEvents
,
this
));
Common
.
NotificationCenter
.
on
(
'
shapes:load
'
,
_
.
bind
(
this
.
render
,
this
));
},
initEvents
:
function
()
{
this
.
initControls
();
},
// Render layout
render
:
function
()
{
this
.
layout
=
$
(
'
<div/>
'
).
append
(
this
.
template
({
android
:
Common
.
SharedSettings
.
get
(
'
android
'
),
phone
:
Common
.
SharedSettings
.
get
(
'
phone
'
),
imgpath
:
'
../../common/mobile/resources/img/shapes
'
,
shapes
:
Common
.
SharedSettings
.
get
(
'
shapes
'
)
}));
return
this
;
},
rootLayout
:
function
()
{
if
(
this
.
layout
)
{
return
this
.
layout
.
find
(
'
#add-shapes-root
'
)
.
html
();
}
return
''
;
},
initControls
:
function
()
{
//
}
}
})(),
SSE
.
Views
.
AddShape
||
{}))
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment