@@ -20,28 +20,18 @@ var ADocEditor = function (customConfig) {
...
@@ -20,28 +20,18 @@ var ADocEditor = function (customConfig) {
fontFamily:'Arial',
fontFamily:'Arial',
bold:false,
bold:false,
italic:false,
italic:false,
fontColor:"#0007"
fontColor:"#1e1f77"
},
},
}
}
varconfig=null;
varconfig=null;
varcanvasList=[]
varcanvasList=[]
vardataSet=[
vardataSet=[
{
{id:1,plainContent:""}
id:`${++counter}`,
type:"text",
plainContent:"Did you ever hear about the Great Ice Age or the Pleistocene Epoch? Less than one million years ago, in fact, some 12,000 years ago, an ice sheet many thousands of feet thick rode over Burke Mountain in a southeastward direction.",
},
// {
// id: `${++counter}`,
// type: "text",
// plainContent: "Did you ever hear about the Great Ice Age or the Pleistocene Epoch? Less than one million years ago, in fact, some 12,000 years ago, an ice sheet many thousands of feet thick rode over Burke Mountain in a southeastward direction."
// }
]
]
varcaretData={
varcaretData={
activeData:dataSet[0],
activeData:dataSet[0],
index:dataSet[0].plainContent.length,
index:0,
interval:null,
interval:null,
intervalDuration:800,
intervalDuration:800,
blink:false,
blink:false,
...
@@ -77,6 +67,7 @@ var ADocEditor = function (customConfig) {
...
@@ -77,6 +67,7 @@ var ADocEditor = function (customConfig) {
}
}
functionreRenderPages(dataList,blinking=false){
functionreRenderPages(dataList,blinking=false){
console.log('rendering',dataList)
if(renderInProgress)return
if(renderInProgress)return
renderInProgress=true
renderInProgress=true
...
@@ -88,15 +79,18 @@ var ADocEditor = function (customConfig) {
...
@@ -88,15 +79,18 @@ var ADocEditor = function (customConfig) {
"plainContent":"Did you ever hear about the Great Ice Age or the Pleistocene Epoch? Less than one million years ago, in fact, some 12,000 years ago, an ice sheet many thousands of feet thick rode over Burke Mountain in a southeastward direction.",
plainContent:"Did you ever hear about the Great Ice Age or the Pleistocene Epoch? Less than one million years ago, in fact, some 12,000 years ago, an ice sheet many thousands of feet thick rode over Burke Mountain in a southeastward direction.",
"formatedText":[
{
},
"char":"D",
// {
"style":{
// id: `2`,
"fontSize":28,
// type: "text",
"fontFamily":"Arial",
// plainContent: "The drug seekers would come into the emergency room and scream about how much pain they were in. When you told them that you would start elevating their pain with Tylenol or Advil instead of a narcotic they became nasty and combative. They would start telling you what drug and dose they had to have to make their pain tolerable.",