mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 20:30:15 +01:00
This commit is contained in:
parent
151262861b
commit
13a4083f81
3 changed files with 15 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ export class Graph extends Model {
|
|||
<span>${window.siyuan.languages.quote}</span>
|
||||
<input data-type="blockquote" type="checkbox" class="b3-switch"${window.siyuan.config.graph.global.type.blockquote ? " checked" : ""}/>
|
||||
</label>
|
||||
<label>
|
||||
<span>${window.siyuan.languages.callout}</span>
|
||||
<input data-type="callout" type="checkbox" class="b3-switch"${window.siyuan.config.graph.global.type.callout ? " checked" : ""}/>
|
||||
</label>
|
||||
<label>
|
||||
<span>${window.siyuan.languages.superBlock}</span>
|
||||
<input data-type="super" type="checkbox" class="b3-switch"${window.siyuan.config.graph.global.type.super ? " checked" : ""}/>
|
||||
|
|
@ -192,6 +196,10 @@ export class Graph extends Model {
|
|||
<span>${window.siyuan.languages.quote}</span>
|
||||
<input data-type="blockquote" type="checkbox" class="b3-switch"${window.siyuan.config.graph.local.type.blockquote ? " checked" : ""}/>
|
||||
</label>
|
||||
<label>
|
||||
<span>${window.siyuan.languages.callout}</span>
|
||||
<input data-type="callout" type="checkbox" class="b3-switch"${window.siyuan.config.graph.local.type.callout ? " checked" : ""}/>
|
||||
</label>
|
||||
<label>
|
||||
<span>${window.siyuan.languages.superBlock}</span>
|
||||
<input data-type="super" type="checkbox" class="b3-switch"${window.siyuan.config.graph.local.type.super ? " checked" : ""}/>
|
||||
|
|
@ -401,6 +409,7 @@ export class Graph extends Model {
|
|||
(this.panelElement.querySelector("[data-type='heading']") as HTMLInputElement).checked = conf.type.heading;
|
||||
(this.panelElement.querySelector("[data-type='arrow']") as HTMLInputElement).checked = conf.d3.arrow;
|
||||
(this.panelElement.querySelector("[data-type='blockquote']") as HTMLInputElement).checked = conf.type.blockquote;
|
||||
(this.panelElement.querySelector("[data-type='callout']") as HTMLInputElement).checked = conf.type.callout;
|
||||
(this.panelElement.querySelector("[data-type='code']") as HTMLInputElement).checked = conf.type.code;
|
||||
this.searchGraph(false);
|
||||
}
|
||||
|
|
@ -421,6 +430,7 @@ export class Graph extends Model {
|
|||
tag: (this.panelElement.querySelector("[data-type='tag']") as HTMLInputElement).checked,
|
||||
heading: (this.panelElement.querySelector("[data-type='heading']") as HTMLInputElement).checked,
|
||||
blockquote: (this.panelElement.querySelector("[data-type='blockquote']") as HTMLInputElement).checked,
|
||||
callout: (this.panelElement.querySelector("[data-type='callout']") as HTMLInputElement).checked,
|
||||
code: (this.panelElement.querySelector("[data-type='code']") as HTMLInputElement).checked,
|
||||
};
|
||||
const d3 = {
|
||||
|
|
|
|||
4
app/src/types/config.d.ts
vendored
4
app/src/types/config.d.ts
vendored
|
|
@ -803,6 +803,10 @@ declare namespace Config {
|
|||
* Display quote block
|
||||
*/
|
||||
blockquote: boolean;
|
||||
/**
|
||||
* Display callout
|
||||
*/
|
||||
callout: boolean;
|
||||
/**
|
||||
* Display code block
|
||||
*/
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -717,6 +717,7 @@ interface IGraphCommon {
|
|||
};
|
||||
type: {
|
||||
blockquote: boolean
|
||||
callout: boolean
|
||||
code: boolean
|
||||
heading: boolean
|
||||
list: boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue