mirror of
https://github.com/ljcoder2015/obsidian-excel.git
synced 2026-07-22 08:30:28 +00:00
feat: 1.3.1
This commit is contained in:
parent
0524346add
commit
cc3545ada1
4 changed files with 8 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "excel",
|
||||
"name": "Excel",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Create spreadsheets and easily embed them in Markdown",
|
||||
"author": "ljcoder",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const tmpObsidianWYSIWYG = async (
|
|||
ctx: MarkdownPostProcessorContext
|
||||
) => {
|
||||
const file = plugin.app.vault.getAbstractFileByPath(ctx.sourcePath);
|
||||
console.log("tmpObsidianWYSIWYG");
|
||||
// console.log("tmpObsidianWYSIWYG");
|
||||
if (!(file instanceof TFile)) return;
|
||||
if (!plugin.isExcelFile(file)) return;
|
||||
|
||||
|
|
@ -194,7 +194,7 @@ const processReadingMode = async (
|
|||
//is awaited, otherwise excalidraw images would not display in the Kanban plugin
|
||||
embeddedItems.forEach(async (maybeDrawing, index) => {
|
||||
//check to see if the file in the src attribute exists
|
||||
console.log(maybeDrawing);
|
||||
// console.log(maybeDrawing);
|
||||
const fname = maybeDrawing.getAttribute("src")?.split("#")[0];
|
||||
if (!fname) return true;
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export default class ExcelPlugin extends Plugin {
|
|||
this.app.workspace.onLayoutReady(() => {
|
||||
let leaf: WorkspaceLeaf;
|
||||
let markdownLeaf = this.app.workspace.getLeavesOfType("markdown")
|
||||
console.log("switchToExcelAfterLoad", markdownLeaf);
|
||||
// console.log("switchToExcelAfterLoad", markdownLeaf);
|
||||
for (leaf of markdownLeaf) {
|
||||
if (
|
||||
leaf.view instanceof MarkdownView &&
|
||||
|
|
@ -113,7 +113,7 @@ export default class ExcelPlugin extends Plugin {
|
|||
this.register(
|
||||
around(Workspace.prototype, {
|
||||
getActiveViewOfType(old) {
|
||||
console.log("Workspace.prototype", old);
|
||||
// console.log("Workspace.prototype", old);
|
||||
return dedupe(key, old, function (...args) {
|
||||
const result = old && old.apply(this, args);
|
||||
const maybeSheetView =
|
||||
|
|
@ -133,7 +133,7 @@ export default class ExcelPlugin extends Plugin {
|
|||
//stolen from hover editor
|
||||
around(WorkspaceLeaf.prototype, {
|
||||
getRoot(old) {
|
||||
console.log("stolen from hover editor");
|
||||
// console.log("stolen from hover editor");
|
||||
return function () {
|
||||
const top = old.call(this);
|
||||
return top.getRoot === this.getRoot
|
||||
|
|
@ -202,7 +202,7 @@ export default class ExcelPlugin extends Plugin {
|
|||
detach(next) {
|
||||
return function () {
|
||||
const state = this.view?.getState();
|
||||
console.log('state--', state.file)
|
||||
// console.log('state--', state.file)
|
||||
if (
|
||||
state?.file &&
|
||||
self.excelFileModes[this.id || state.file]
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export const getExcelAreaData = (
|
|||
rowLen,
|
||||
eri - sri + 1 + cell.merge[0]
|
||||
);
|
||||
console.log(rowLen);
|
||||
// console.log(rowLen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue