Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digilib-pivaj
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel ANTELME
digilib-pivaj
Commits
2a8fdfe6
Commit
2a8fdfe6
authored
10 years ago
by
hertzhaft
Browse files
Options
Downloads
Patches
Plain Diff
measure: center line grid
parent
6ab50000
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webapp/src/main/webapp/jquery/jquery.digilib.measure.js
+9
-5
9 additions, 5 deletions
webapp/src/main/webapp/jquery/jquery.digilib.measure.js
with
9 additions
and
5 deletions
webapp/src/main/webapp/jquery/jquery.digilib.measure.js
+
9
−
5
View file @
2a8fdfe6
...
...
@@ -1034,7 +1034,7 @@
var
widgets
=
data
.
measureWidgets
;
var
type
=
getActiveShapeType
(
data
);
var
display
=
data
.
settings
.
shapeInfo
[
type
].
display
;
var
state
=
display
!==
'
length
'
&&
display
!==
'
radius
'
;
var
state
=
display
!==
'
length
'
&&
display
!==
'
radius
'
&&
display
!==
'
spacing
'
;
widgets
.
value1
.
prop
(
'
disabled
'
,
state
);
widgets
.
type
.
text
(
display
);
};
...
...
@@ -1346,7 +1346,7 @@
var
$g
=
$
(
fn
.
svgElement
(
'
g
'
,
{
id
:
shape
.
id
+
'
-g
'
}));
var
$defs
=
$
(
fn
.
svgElement
(
'
defs
'
));
var
$pat
=
$
(
fn
.
svgElement
(
'
pattern
'
,
{
id
:
gridID
,
height
:
'
10%
'
,
width
:
'
10%
'
,
patternUnits
:
'
objectBoundingBox
'
}));
var
$path
=
$
(
fn
.
svgElement
(
'
path
'
,
{
d
:
"
M100,0 L0,0 0,100
"
,
fill
:
'
none
'
,
stroke
:
props
.
stroke
,
'
stroke-width
'
:
'
1
'
}));
var
$path
=
$
(
fn
.
svgElement
(
'
path
'
,
{
d
:
"
M100
0
,0 L0,0 0,100
0
"
,
fill
:
'
none
'
,
stroke
:
props
.
stroke
,
'
stroke-width
'
:
'
1
'
}));
var
$r
=
$
(
fn
.
svgElement
(
'
rect
'
,
{
id
:
shape
.
id
+
'
-rect
'
,
stroke
:
props
.
stroke
,
fill
:
'
url(#
'
+
gridID
+
'
)
'
}));
$g
.
append
(
$defs
.
append
(
$pat
.
append
(
$path
))).
append
(
$r
).
append
(
$s
);
$g
.
place
=
function
()
{
...
...
@@ -1354,9 +1354,13 @@
var
p
=
props
.
screenpos
;
var
d
=
p
[
0
].
distance
(
p
[
1
]);
var
angle
=
mRound
(
p
[
0
].
deg
(
p
[
1
]));
var
rotate
=
'
rotate(
'
+
angle
+
'
'
+
p
[
0
].
x
+
'
'
+
p
[
0
].
y
+
'
)
'
;
$r
.
attr
({
x
:
p
[
0
].
x
,
y
:
p
[
0
].
y
,
height
:
d
,
width
:
d
,
transform
:
rotate
});
$pat
.
attr
({
patternTransform
:
rotate
});
var
scale
=
10
;
var
fac
=
Math
.
ceil
((
1
-
scale
)
/
2
);
var
x
=
p
[
0
].
x
+
fac
*
d
;
var
y
=
p
[
0
].
y
+
(
fac
-
1
)
*
d
;
var
transform
=
'
rotate(
'
+
angle
+
'
'
+
p
[
0
].
x
+
'
'
+
p
[
0
].
y
+
'
)
'
;
$r
.
attr
({
x
:
x
,
y
:
y
,
height
:
d
*
scale
,
width
:
d
*
scale
,
transform
:
transform
});
$pat
.
attr
({
patternTransform
:
transform
});
};
return
$g
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment