Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
8ad58f1a
Commit
8ad58f1a
authored
Aug 04, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
textObject.jsリファクタリング
parent
1da5c4e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
abvw/common/js/textObject.js
+4
-1
abvw/js/contentview_CreateObjects.js
+1
-1
No files found.
abvw/common/js/textObject.js
View file @
8ad58f1a
...
@@ -5,10 +5,13 @@
...
@@ -5,10 +5,13 @@
* Copyright (C) Agentec Co, Ltd. All rights reserved.
* Copyright (C) Agentec Co, Ltd. All rights reserved.
*/
*/
//グローバルの名前空間用のオブジェクトを用意する
var
TEXTOBJECT
=
{};
/**
/**
* get HTML Text Image URL
* get HTML Text Image URL
*/
*/
function
getTextObjectImage
(
width
,
height
,
htmlData
)
{
TEXTOBJECT
.
getTextObjectImage
=
function
(
width
,
height
,
htmlData
)
{
var
canvas
=
document
.
createElement
(
'canvas'
);
var
canvas
=
document
.
createElement
(
'canvas'
);
canvas
.
width
=
width
;
canvas
.
width
=
width
;
...
...
abvw/js/contentview_CreateObjects.js
View file @
8ad58f1a
...
@@ -645,7 +645,7 @@ object3d.prototype = new PageObject();
...
@@ -645,7 +645,7 @@ object3d.prototype = new PageObject();
/* mediaType = 7 write text object*/
/* mediaType = 7 write text object*/
var
text
=
function
(
mediaType
,
actionType
,
id
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
content
,
objectId
)
{
var
text
=
function
(
mediaType
,
actionType
,
id
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
content
,
objectId
)
{
//var imageUrl = displayText(x,y,w,h,id,content);
//var imageUrl = displayText(x,y,w,h,id,content);
var
imageUrl
=
getTextObjectImage
(
w
,
h
,
content
);
var
imageUrl
=
TEXTOBJECT
.
getTextObjectImage
(
w
,
h
,
content
);
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
null
,
objectId
);
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
null
,
objectId
);
this
.
action
=
function
()
{
this
.
action
=
function
()
{
};
};
...
...
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